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

enhanced-resolve

Package Overview
Dependencies
Maintainers
4
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enhanced-resolve - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc