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.1.0 to 1.2.0

7

dist/commonjs/main.js

@@ -215,4 +215,9 @@ 'use strict';

after = matchResult.after;
var replacement = imports[pathnamePattern];
if (replacement.startsWith("file://")) {
return "".concat(before).concat(replacement).concat(after);
}
var moduleOrigin = hrefToOrigin(href);
var replacement = imports[pathnamePattern];
return "".concat(moduleOrigin).concat(before).concat(replacement).concat(after);

@@ -219,0 +224,0 @@ }

2

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

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

@@ -77,5 +77,9 @@ /**

const { before, after } = matchResult
const moduleOrigin = hrefToOrigin(href)
const replacement = imports[pathnamePattern]
if (replacement.startsWith("file://")) {
return `${before}${replacement}${after}`
}
const moduleOrigin = hrefToOrigin(href)
return `${moduleOrigin}${before}${replacement}${after}`

@@ -82,0 +86,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