You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

posthtml-component

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-component - npm Package Compare versions

Comparing version

to
1.0.0-RC.2

2

package.json
{
"name": "posthtml-component",
"version": "1.0.0-RC.1",
"version": "1.0.0-RC.2",
"description": "PostHTML Components Blade-like with slots, attributes as props and custom tag",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -79,3 +79,3 @@ 'use strict';

// the default attributes and return an array of attributes. Example:
// { TAG: (attrsibutes) => { attributes[] = 'attribute-name'; return attributes; } }
// { TAG: (attributes) => { attributes[] = 'attribute-name'; return attributes; } }
options.elementAttributes = isPlainObject(options.elementAttributes) ? options.elementAttributes : {};

@@ -82,0 +82,0 @@ options.safelistAttributes = Array.isArray(options.safelistAttributes) ? options.safelistAttributes : [];

@@ -55,3 +55,3 @@ 'use strict';

if (!isEmpty(options.elementAttributes)) {
each(options.elementAttributes, (tagName, modifier) => {
each(options.elementAttributes, (modifier, tagName) => {
if (typeof modifier === 'function' && isString(tagName)) {

@@ -58,0 +58,0 @@ tagName = tagName.toUpperCase();