diff --git a/.changeset/little-books-unite.md b/.changeset/little-books-unite.md new file mode 100644 index 00000000..23953a2a --- /dev/null +++ b/.changeset/little-books-unite.md @@ -0,0 +1,5 @@ +--- +"@nodesecure/tarball": patch +--- + +Add missing Node.js core builtins module diff --git a/workspaces/tarball/src/utils/analyzeDependencies.ts b/workspaces/tarball/src/utils/analyzeDependencies.ts index 60c10392..7b9a9076 100644 --- a/workspaces/tarball/src/utils/analyzeDependencies.ts +++ b/workspaces/tarball/src/utils/analyzeDependencies.ts @@ -5,6 +5,7 @@ import type { NodeImport } from "@nodesecure/npm-types"; // CONSTANTS export const NODE_BUILTINS = new Set([ "assert", + "assert/strict", "buffer", "child_process", "cluster", @@ -13,39 +14,68 @@ export const NODE_BUILTINS = new Set([ "crypto", "dgram", "dns", + "dns/promises", "domain", "events", "fs", + "fs/promises", "http", "https", "module", "net", "os", + "smalloc", "path", + "path/posix", + "path/win32", "punycode", "querystring", "readline", + "readline/promises", "repl", "stream", + "stream/web", + "stream/promises", + "stream/consumers", + "_stream_duplex", + "_stream_passthrough", + "_stream_readable", + "_stream_transform", + "_stream_writable", + "_stream_wrap", "string_decoder", "sys", "timers", + "timers/promises", "tls", "tty", "url", "util", + "util/types", "vm", "zlib", "freelist", "v8", + "v8/tools/arguments", + "v8/tools/codemap", + "v8/tools/consarray", + "v8/tools/csvparser", + "v8/tools/logreader", + "v8/tools/profile_view", + "v8/tools/splaytree", "process", "inspector", + "inspector/promises", "async_hooks", "http2", "perf_hooks", "trace_events", "worker_threads", "node:test", + "test/reporters", + "test/mock_loader", + "node:sea", + "node:sqlite", "wasi", "diagnostics_channel" ]);