posthtml-component
Advanced tools
Comparing version
{ | ||
"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(); |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
121656
07
16.67%