object-rewrite
Advanced tools
Comparing version 4.3.2 to 4.3.3
@@ -12,10 +12,15 @@ "use strict"; | ||
}; | ||
const inactivePlugins = [...plugins]; | ||
const requiredFields = new Set(fields); | ||
requiredFields.forEach(field => { | ||
plugins.forEach(plugin => { | ||
for (let j = 0; j < inactivePlugins.length; j += 1) { | ||
const plugin = inactivePlugins[j]; | ||
if (plugin.targets.includes(field) || (plugin.type !== 'INJECT' || plugin.targetRel === '*') && (`${field}.` === plugin.target || field.startsWith(plugin.target))) { | ||
plugin.requires.forEach(f => requiredFields.add(f)); | ||
pluginsByType[plugin.type].push(plugin); | ||
inactivePlugins.splice(j, 1); | ||
j -= 1; | ||
} | ||
}); | ||
} | ||
}); | ||
@@ -22,0 +27,0 @@ const injectedFields = new Set(); |
{ | ||
"name": "object-rewrite", | ||
"version": "4.3.2", | ||
"version": "4.3.3", | ||
"description": "Rewrite Object(s) in place using plugins.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
22937
397