+2
-1
@@ -67,2 +67,3 @@ /** | ||
| export { type ResolveOptions, type ResolverOptions, clearResolveCache, createResolver, resolveModulePath, resolveModuleURL }; | ||
| export { clearResolveCache, createResolver, resolveModulePath, resolveModuleURL }; | ||
| export type { ResolveOptions, ResolverOptions }; |
+5
-2
@@ -1367,3 +1367,3 @@ import fs, { realpathSync, statSync, lstatSync } from 'node:fs'; | ||
| } | ||
| if (input instanceof URL) { | ||
| if (_isURL(input)) { | ||
| return [input]; | ||
@@ -1411,2 +1411,5 @@ } | ||
| } | ||
| function _isURL(input) { | ||
| return input instanceof URL || input?.constructor?.name === "URL"; | ||
| } | ||
| function _parseInput(input) { | ||
@@ -1429,3 +1432,3 @@ if (typeof input === "string") { | ||
| } | ||
| if (input instanceof URL) { | ||
| if (_isURL(input)) { | ||
| if (input.protocol === "file:") { | ||
@@ -1432,0 +1435,0 @@ return { url: input, absolutePath: fileURLToPath(input) }; |
+7
-6
| { | ||
| "name": "exsolve", | ||
| "version": "1.0.5", | ||
| "version": "1.0.6", | ||
| "description": "Module resolution utilities based on Node.js upstream implementation.", | ||
@@ -29,8 +29,9 @@ "repository": "unjs/exsolve", | ||
| "devDependencies": { | ||
| "@types/node": "^22.14.1", | ||
| "@vitest/coverage-v8": "^3.1.1", | ||
| "@types/node": "^24.0.3", | ||
| "@vitest/coverage-v8": "^3.2.4", | ||
| "automd": "^0.4.0", | ||
| "changelogen": "^0.6.1", | ||
| "eslint": "^9.24.0", | ||
| "eslint": "^9.29.0", | ||
| "eslint-config-unjs": "^0.4.2", | ||
| "happy-dom": "^18.0.1", | ||
| "jiti": "^2.4.2", | ||
@@ -40,5 +41,5 @@ "prettier": "^3.5.3", | ||
| "unbuild": "^3.5.0", | ||
| "vitest": "^3.1.1" | ||
| "vitest": "^3.2.4" | ||
| }, | ||
| "packageManager": "pnpm@10.8.1" | ||
| "packageManager": "pnpm@10.12.1" | ||
| } |
59551
0.2%1433
0.21%12
9.09%