mjml-validator
Advanced tools
Comparing version 4.8.0 to 4.8.1
@@ -28,3 +28,3 @@ "use strict"; | ||
const availableAttributes = [...Object.keys(Component.allowedAttributes || {}), ...WHITELIST]; | ||
const unknownAttributes = Object.keys(attributes).filter(attribute => !availableAttributes.includes(attribute)); | ||
const unknownAttributes = Object.keys(attributes || {}).filter(attribute => !availableAttributes.includes(attribute)); | ||
@@ -31,0 +31,0 @@ if (unknownAttributes.length === 0) { |
@@ -28,3 +28,3 @@ "use strict"; | ||
for (const [attr, value] of Object.entries(attributes)) { | ||
for (const [attr, value] of Object.entries(attributes || {})) { | ||
const attrType = Component.allowedAttributes && Component.allowedAttributes[attr]; | ||
@@ -31,0 +31,0 @@ |
{ | ||
"name": "mjml-validator", | ||
"description": "mjml-validator", | ||
"version": "4.8.0", | ||
"version": "4.8.1", | ||
"main": "lib/index.js", | ||
@@ -30,3 +30,3 @@ "files": [ | ||
}, | ||
"gitHead": "6037a02810ea9a0cb62965ba81712fdf536b958b" | ||
"gitHead": "45507ebde835129ba62671d341e76bc9892552c9" | ||
} |
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
30510