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.11.2 to 1.11.3

README.md

12

index.js

@@ -56,3 +56,3 @@ // builtin

if (replacements[key] === false) {
val = __dirname + '/empty.js';
val = path.normalize(__dirname + '/empty.js');
}

@@ -303,11 +303,13 @@ else {

var shims = load_shims_sync(paths, opts.browser);
var resid = path.resolve(opts.basedir || path.dirname(opts.filename), id);
if (shims[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 shims[id];
if (shims[xid][0] === '/') {
return resv.sync(shims[xid], build_resolve_opts(opts, base));
}
// module -> alt-module shims
id = shims[id];
id = shims[xid];
}

@@ -314,0 +316,0 @@

{
"name": "browser-resolve",
"version": "1.11.2",
"version": "1.11.3",
"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