@jsenv/import-map
Advanced tools
Comparing version 6.5.0 to 6.5.1
@@ -713,3 +713,3 @@ 'use strict'; | ||
if (hrefUseFileProtocol(importer)) { | ||
if (hrefUseFileProtocol(importer) && !isOriginRelativeSpecifier(specifier)) { | ||
const url = resolveUrl(specifier, importer); | ||
@@ -771,2 +771,6 @@ | ||
const isOriginRelativeSpecifier = specifier => { | ||
return specifier[0] === "/" && specifier[1] !== "/"; | ||
}; | ||
const hrefUseFileProtocol = specifier => specifier.startsWith("file://"); | ||
@@ -773,0 +777,0 @@ |
{ | ||
"name": "@jsenv/import-map", | ||
"description": "Helpers to implement importMap", | ||
"version": "6.5.0", | ||
"version": "6.5.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -64,3 +64,3 @@ import { operatingSystemPathToPathname } from "@jsenv/operating-system-path" | ||
if (hrefUseFileProtocol(importer)) { | ||
if (hrefUseFileProtocol(importer) && !isOriginRelativeSpecifier(specifier)) { | ||
const url = resolveUrl(specifier, importer) | ||
@@ -133,2 +133,6 @@ | ||
const isOriginRelativeSpecifier = (specifier) => { | ||
return specifier[0] === "/" && specifier[1] !== "/" | ||
} | ||
const hrefUseFileProtocol = (specifier) => specifier.startsWith("file://") | ||
@@ -135,0 +139,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
113406
1611