Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

enhanced-resolve

Package Overview
Dependencies
13
Maintainers
4
Versions
129
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.2.0

lib/RestrictionsPlugin.js

6

lib/ResolverFactory.js

@@ -31,2 +31,3 @@ /*

const AppendPlugin = require("./AppendPlugin");
const RestrictionsPlugin = require("./RestrictionsPlugin");
const ResultPlugin = require("./ResultPlugin");

@@ -81,2 +82,4 @@ const ModuleAppendPlugin = require("./ModuleAppendPlugin");

const restrictions = options.restrictions || [];
// Use this cache object to unsafely cache the successful requests

@@ -311,2 +314,5 @@ let unsafeCache = options.unsafeCache || false;

// resolved
if (restrictions.length > 0) {
plugins.push(new RestrictionsPlugin(resolver.hooks.resolved, restrictions));
}
plugins.push(new ResultPlugin(resolver.hooks.resolved));

@@ -313,0 +319,0 @@

2

package.json
{
"name": "enhanced-resolve",
"version": "4.1.1",
"version": "4.2.0",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "Offers a async require.resolve function. It's highly configurable.",

@@ -68,2 +68,3 @@ # enhanced-resolve

| resolveToContext | false | Resolve to a context instead of a file |
| restrictions | [] | A list of resolve restrictions |
| fileSystem | | The file system which should be used |

@@ -70,0 +71,0 @@ | resolver | undefined | A prepared Resolver to which the plugins are attached |

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc