Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-rewrite - npm Package Compare versions

Comparing version 4.3.2 to 4.3.3

9

lib/module/rewriter/compile-meta.js

@@ -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",

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