Socket
Socket
Sign inDemoInstall

enhanced-resolve

Package Overview
Dependencies
Maintainers
1
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 0.4.10 to 0.4.11

25

lib/resolve.js

@@ -774,6 +774,23 @@ /*

for(var i = 0; i < packageMains.length; i++) {
var field = packageMains[i];
if(content[field]) {
mainModule = content[field];
break;
if(Array.isArray(packageMains[i])) {
var current = content;
for(var j = 0; j < packageMains[i].length - 1; j++) {
var field = packageMains[i][j];
current = content[field];
if(current === null || typeof current !== "object") {
current = null;
break;
}
}
if(current) {
mainModule = current;
i = packageMains.length;
break;
}
} else {
var field = packageMains[i];
if(content[field]) {
mainModule = content[field];
break;
}
}

@@ -780,0 +797,0 @@ }

2

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

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

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