@jsenv/import-map
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -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 @@ } |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97208
645