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.1 to 4.8.2

30

lib/dependencies.js

@@ -9,15 +9,27 @@ "use strict";

const assignDependencies = (target, ...sources) => {
if (sources.length === 0) {
return target;
}
for (const source of sources) {
for (const tag of Object.keys(source)) {
const list = [];
if (typeof source === 'object' && source !== null) {
for (const tag of Object.keys(source)) {
if (typeof tag === 'string') {
const list = [];
if (target[tag]) {
list.push(...target[tag]);
}
if (target[tag]) {
list.push(...target[tag]);
}
if (source[tag]) {
list.push(...source[tag]);
if (source[tag]) {
list.push(...source[tag]);
}
target[tag] = Array.from(new Set(list));
} else {
console.warn('dependency "tag" must be of type string');
}
}
target[tag] = Array.from(new Set(list));
} else {
console.warn('"dependencies" must be an object.');
}

@@ -24,0 +36,0 @@ }

{
"name": "mjml-validator",
"description": "mjml-validator",
"version": "4.8.1",
"version": "4.8.2",
"main": "lib/index.js",

@@ -30,3 +30,3 @@ "files": [

},
"gitHead": "45507ebde835129ba62671d341e76bc9892552c9"
"gitHead": "67cb33b5edd2b1d80436a72c213d2e815a685cd5"
}
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