extensionless
Advanced tools
Comparing version 1.7.2 to 1.7.3
{ | ||
"name": "extensionless", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -19,3 +19,3 @@ import {extname} from 'path' | ||
let winAbsPathRegex = /^[/\\]?[a-z]:[/\\]/i, relSpecs = ['.', '..'] | ||
let winAbsPath = /^[/\\]?[a-z]:[/\\]/i, relSpecs = ['.', '..'] | ||
let specStarts = ['./', '../', '/', 'file://', 'https://', '.\\', '..\\', '\\'] | ||
@@ -25,3 +25,3 @@ let knownExts = ['.js', '.cjs', '.mjs', '.json', '.node', '.wasm'], empty = [[], []] | ||
export async function resolve(specifier, context, nextResolve) { | ||
let prefix = winAbsPathRegex.test(specifier) ? 'file://' : '' | ||
let prefix = winAbsPath.test(specifier) ? 'file://' : '' | ||
@@ -28,0 +28,0 @@ if (!prefix && !relSpecs.includes(specifier) && !specStarts.some(p => specifier.startsWith(p))) { |
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
6550