@jsenv/import-map
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -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 @@ |
{ | ||
"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
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
98019
659
54