+73
-74
@@ -6,6 +6,76 @@ import fs, { realpathSync, statSync } from 'node:fs'; | ||
| import process$1 from 'node:process'; | ||
| import { builtinModules } from 'node:module'; | ||
| import v8 from 'node:v8'; | ||
| import { format, inspect } from 'node:util'; | ||
| const nodeBuiltins = [ | ||
| "_http_agent", | ||
| "_http_client", | ||
| "_http_common", | ||
| "_http_incoming", | ||
| "_http_outgoing", | ||
| "_http_server", | ||
| "_stream_duplex", | ||
| "_stream_passthrough", | ||
| "_stream_readable", | ||
| "_stream_transform", | ||
| "_stream_wrap", | ||
| "_stream_writable", | ||
| "_tls_common", | ||
| "_tls_wrap", | ||
| "assert", | ||
| "assert/strict", | ||
| "async_hooks", | ||
| "buffer", | ||
| "child_process", | ||
| "cluster", | ||
| "console", | ||
| "constants", | ||
| "crypto", | ||
| "dgram", | ||
| "diagnostics_channel", | ||
| "dns", | ||
| "dns/promises", | ||
| "domain", | ||
| "events", | ||
| "fs", | ||
| "fs/promises", | ||
| "http", | ||
| "http2", | ||
| "https", | ||
| "inspector", | ||
| "inspector/promises", | ||
| "module", | ||
| "net", | ||
| "os", | ||
| "path", | ||
| "path/posix", | ||
| "path/win32", | ||
| "perf_hooks", | ||
| "process", | ||
| "punycode", | ||
| "querystring", | ||
| "readline", | ||
| "readline/promises", | ||
| "repl", | ||
| "stream", | ||
| "stream/consumers", | ||
| "stream/promises", | ||
| "stream/web", | ||
| "string_decoder", | ||
| "sys", | ||
| "timers", | ||
| "timers/promises", | ||
| "tls", | ||
| "trace_events", | ||
| "tty", | ||
| "url", | ||
| "util", | ||
| "util/types", | ||
| "v8", | ||
| "vm", | ||
| "wasi", | ||
| "worker_threads", | ||
| "zlib" | ||
| ]; | ||
| const own$1 = {}.hasOwnProperty; | ||
@@ -1038,3 +1108,3 @@ const classRegExp = /^([A-Z][a-z\d]*)+$/; | ||
| function packageResolve(specifier, base, conditions) { | ||
| if (builtinModules.includes(specifier)) { | ||
| if (nodeBuiltins.includes(specifier)) { | ||
| return new URL$1("node:" + specifier); | ||
@@ -1123,3 +1193,3 @@ } | ||
| } catch (error_) { | ||
| if (isData && !builtinModules.includes(specifier)) { | ||
| if (isData && !nodeBuiltins.includes(specifier)) { | ||
| const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base); | ||
@@ -1139,73 +1209,2 @@ error.cause = error_; | ||
| const nodeBuiltins = [ | ||
| "_http_agent", | ||
| "_http_client", | ||
| "_http_common", | ||
| "_http_incoming", | ||
| "_http_outgoing", | ||
| "_http_server", | ||
| "_stream_duplex", | ||
| "_stream_passthrough", | ||
| "_stream_readable", | ||
| "_stream_transform", | ||
| "_stream_wrap", | ||
| "_stream_writable", | ||
| "_tls_common", | ||
| "_tls_wrap", | ||
| "assert", | ||
| "assert/strict", | ||
| "async_hooks", | ||
| "buffer", | ||
| "child_process", | ||
| "cluster", | ||
| "console", | ||
| "constants", | ||
| "crypto", | ||
| "dgram", | ||
| "diagnostics_channel", | ||
| "dns", | ||
| "dns/promises", | ||
| "domain", | ||
| "events", | ||
| "fs", | ||
| "fs/promises", | ||
| "http", | ||
| "http2", | ||
| "https", | ||
| "inspector", | ||
| "inspector/promises", | ||
| "module", | ||
| "net", | ||
| "os", | ||
| "path", | ||
| "path/posix", | ||
| "path/win32", | ||
| "perf_hooks", | ||
| "process", | ||
| "punycode", | ||
| "querystring", | ||
| "readline", | ||
| "readline/promises", | ||
| "repl", | ||
| "stream", | ||
| "stream/consumers", | ||
| "stream/promises", | ||
| "stream/web", | ||
| "string_decoder", | ||
| "sys", | ||
| "timers", | ||
| "timers/promises", | ||
| "tls", | ||
| "trace_events", | ||
| "tty", | ||
| "url", | ||
| "util", | ||
| "util/types", | ||
| "v8", | ||
| "vm", | ||
| "wasi", | ||
| "worker_threads", | ||
| "zlib" | ||
| ]; | ||
| const DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]); | ||
@@ -1212,0 +1211,0 @@ const isWindows = /* @__PURE__ */ (() => process.platform === "win32")(); |
+1
-1
| { | ||
| "name": "exsolve", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Module resolution utilities based on Node.js upstream implementation.", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/exsolve", |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
3
-25%59266
-0.08%1425
-0.07%