Socket
Socket
Sign inDemoInstall

@jsenv/module-resolution

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/module-resolution - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

dist/browser/main.js

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc