extensionless
Advanced tools
Comparing version 1.6.9 to 1.7.0
{ | ||
"name": "extensionless", | ||
"version": "1.6.9", | ||
"version": "1.7.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -1,2 +0,2 @@ | ||
import {extname, isAbsolute} from 'path' | ||
import {extname, win32} from 'path' | ||
import {getConfig} from './config.js' | ||
@@ -23,3 +23,3 @@ | ||
export async function resolve(specifier, context, nextResolve) { | ||
let isAbs = isAbsolute(specifier) | ||
let isAbs = win32.isAbsolute(specifier) | ||
@@ -30,3 +30,3 @@ if (!isAbs && !relSpecs.includes(specifier) && !specStarts.some(p => specifier.startsWith(p))) { | ||
let prefix = !isAbs || specifier.startsWith('/') && specifier[2] !== ':' ? '' : 'file://' | ||
let prefix = isAbs && specifier.slice(1, 3).includes(':') ? 'file://' : '' | ||
let selfURL = new URL(prefix + specifier, context.parentURL).href | ||
@@ -33,0 +33,0 @@ |
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
6567