@erickmerchant/framework
Advanced tools
Comparing version 41.2.1 to 41.2.2
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "41.2.1", | ||
"version": "41.2.2", | ||
"description": "A front-end framework.", | ||
@@ -29,7 +29,6 @@ "homepage": "https://github.com/erickmerchant/framework#readme", | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@erickmerchant/eslint-config": "^2.0.0", | ||
"@erickmerchant/prettier-config": "^1.2.0", | ||
"delay": "^4.4.0", | ||
"delay": "^5.0.0", | ||
"jsdom": "^16.4.0", | ||
@@ -36,0 +35,0 @@ "uvu": "^0.5.0" |
@@ -42,18 +42,22 @@ const escape = (str) => | ||
const reducedAttributes = attributes.reduce((acc, curr) => { | ||
if (curr.key) { | ||
if (curr.key.startsWith('on')) return acc | ||
const reducedAttributes = Array.from({ | ||
*[Symbol.iterator]() { | ||
for (const attribute of attributes) { | ||
if (attribute.key) { | ||
if (attribute.key.startsWith('on')) continue | ||
acc.push(curr) | ||
} else { | ||
for (const [key, value] of Object.entries(variables[curr.value])) { | ||
if (key.startsWith('on')) continue | ||
yield attribute | ||
} else { | ||
for (const [key, value] of Object.entries( | ||
variables[attribute.value] | ||
)) { | ||
if (key.startsWith('on')) continue | ||
acc.push({key, value}) | ||
yield {key, value} | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
return acc | ||
}, []) | ||
for (const attr of reducedAttributes) { | ||
@@ -60,0 +64,0 @@ let value = attr.value |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18979
621