@jsenv/module-resolution
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -185,4 +185,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); | ||
@@ -189,0 +194,0 @@ } |
@@ -184,4 +184,9 @@ var __dmail_assert__ = function (exports) { | ||
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); | ||
@@ -188,0 +193,0 @@ } |
{ | ||
"name": "@jsenv/module-resolution", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"license": "MIT", | ||
@@ -42,3 +42,3 @@ "repository": { | ||
"@jsenv/href": "1.0.0", | ||
"@jsenv/import-map": "1.1.0" | ||
"@jsenv/import-map": "1.2.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
181339
941
+ Added@jsenv/import-map@1.2.0(transitive)
- Removed@jsenv/import-map@1.1.0(transitive)
Updated@jsenv/import-map@1.2.0