Socket
Socket
Sign inDemoInstall

mjml-validator

Package Overview
Dependencies
Maintainers
6
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-validator - npm Package Compare versions

Comparing version 4.8.0 to 4.8.1

2

lib/rules/validAttributes.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc