@jsenv/module-resolution
Advanced tools
Comparing version 2.3.0 to 2.4.0
{ | ||
"name": "@jsenv/module-resolution", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1,4 +0,2 @@ | ||
import Module from "module" | ||
import repl from "repl" | ||
// https://github.com/browserify/resolve/blob/a09a2e7f16273970be4639313c83b913daea15d7/lib/core.json#L1 | ||
// https://nodejs.org/api/modules.html#modules_module_builtinmodules | ||
@@ -9,6 +7,75 @@ // https://stackoverflow.com/a/35825896 | ||
const NATIVE_NODE_MODULE_SPECIFIER_ARRAY = [ | ||
"assert", | ||
"async_hooks", | ||
"buffer_ieee754", | ||
"buffer", | ||
"child_process", | ||
"cluster", | ||
"console", | ||
"constants", | ||
"crypto", | ||
"_debugger", | ||
"dgram", | ||
"dns", | ||
"domain", | ||
"events", | ||
"freelist", | ||
"fs", | ||
"fs/promises", | ||
"_http_agent", | ||
"_http_client", | ||
"_http_common", | ||
"_http_incoming", | ||
"_http_outgoing", | ||
"_http_server", | ||
"http", | ||
"http2", | ||
"https", | ||
"inspector", | ||
"_linklist", | ||
"module", | ||
"net", | ||
"node-inspect/lib/_inspect", | ||
"node-inspect/lib/internal/inspect_client", | ||
"node-inspect/lib/internal/inspect_repl", | ||
"os", | ||
"path", | ||
"perf_hooks", | ||
"process", | ||
"punycode", | ||
"querystring", | ||
"readline", | ||
"repl", | ||
"smalloc", | ||
"_stream_duplex", | ||
"_stream_transform", | ||
"_stream_wrap", | ||
"_stream_passthrough", | ||
"_stream_readable", | ||
"_stream_writable", | ||
"stream", | ||
"string_decoder", | ||
"sys", | ||
"timers", | ||
"_tls_common", | ||
"_tls_legacy", | ||
"_tls_wrap", | ||
"tls", | ||
"trace_events", | ||
"tty", | ||
"url", | ||
"util", | ||
"v8/tools/arguments", | ||
"v8/tools/codemap", | ||
"v8/tools/consarray", | ||
"v8/tools/csvparser", | ||
"v8/tools/logreader", | ||
"v8/tools/profile_view", | ||
"v8/tools/splaytree", | ||
"v8", | ||
"vm", | ||
"worker_threads", | ||
"zlib", | ||
// global is special | ||
"global", | ||
...("builtinModules" in Module | ||
? Module.builtinModules | ||
: ["module", "util", ...repl._builtinLibs]), | ||
] | ||
@@ -15,0 +82,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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
105443
26
1047
1