Socket
Socket
Sign inDemoInstall

browser-resolve

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-resolve - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

.npmignore

20

index.js

@@ -73,2 +73,10 @@ // builtin

});
[ '.js', '.json' ].forEach(function (ext) {
Object.keys(shims).forEach(function (key) {
if (!shims[key + ext]) {
shims[key + ext] = shims[key];
}
});
});
}

@@ -233,10 +241,14 @@

if (shims[id]) {
var resid = path.resolve(opts.basedir || path.dirname(opts.filename), id);
if (shims[id] || shims[resid]) {
var xid = shims[id] ? id : resid;
// if the shim was is an absolute path, it was fully resolved
if (shims[id][0] === '/') {
return cb(null, shims[id], opts.package);
if (shims[xid][0] === '/') {
return resv(shims[xid], build_resolve_opts(opts, base), function(err, full, pkg) {
cb(null, full, pkg);
});
}
// module -> alt-module shims
id = shims[id];
id = shims[xid];
}

@@ -243,0 +255,0 @@

2

package.json
{
"name": "browser-resolve",
"version": "1.10.1",
"version": "1.11.0",
"description": "resolve which handles browser field support in package.json",

@@ -5,0 +5,0 @@ "main": "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