mjml-validator
Advanced tools
Comparing version 4.8.1 to 4.8.2
@@ -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" | ||
} |
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
30866
668