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

@jsenv/import-map

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/import-map - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

16

dist/commonjs/main.js

@@ -187,3 +187,3 @@ 'use strict';

var scopeImports = scopes[matchingPathnamePattern];
return applyImports({
var scopeRemapping = applyImports({
href: href,

@@ -193,9 +193,19 @@ imports: scopeImports // scopePattern: matchingPathnamePattern,

});
if (scopeRemapping !== null) {
return scopeRemapping;
}
}
}
return applyImports({
var topLevelimportRemapping = applyImports({
href: href,
imports: imports
});
if (topLevelimportRemapping !== null) {
return topLevelimportRemapping;
}
return href;
};

@@ -227,3 +237,3 @@

return href;
return null;
};

@@ -230,0 +240,0 @@

2

package.json
{
"name": "@jsenv/import-map",
"version": "1.2.0",
"version": "2.0.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

@@ -54,3 +54,3 @@ /**

return applyImports({
const scopeRemapping = applyImports({
href,

@@ -60,6 +60,14 @@ imports: scopeImports,

})
if (scopeRemapping !== null) {
return scopeRemapping
}
}
}
return applyImports({ href, imports })
const topLevelimportRemapping = applyImports({ href, imports })
if (topLevelimportRemapping !== null) {
return topLevelimportRemapping
}
return href
}

@@ -89,3 +97,3 @@

return href
return null
}

@@ -92,0 +100,0 @@

Sorry, the diff of this file is not supported yet

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