Skip to content

Commit 914132b

Browse files
authored
fix(tarball): add missing Node.js builtins (#557)
1 parent 3c32fb6 commit 914132b

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.changeset/little-books-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nodesecure/tarball": patch
3+
---
4+
5+
Add missing Node.js core builtins module

workspaces/tarball/src/utils/analyzeDependencies.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { NodeImport } from "@nodesecure/npm-types";
55
// CONSTANTS
66
export const NODE_BUILTINS = new Set([
77
"assert",
8+
"assert/strict",
89
"buffer",
910
"child_process",
1011
"cluster",
@@ -13,39 +14,68 @@ export const NODE_BUILTINS = new Set([
1314
"crypto",
1415
"dgram",
1516
"dns",
17+
"dns/promises",
1618
"domain",
1719
"events",
1820
"fs",
21+
"fs/promises",
1922
"http",
2023
"https",
2124
"module",
2225
"net",
2326
"os",
27+
"smalloc",
2428
"path",
29+
"path/posix",
30+
"path/win32",
2531
"punycode",
2632
"querystring",
2733
"readline",
34+
"readline/promises",
2835
"repl",
2936
"stream",
37+
"stream/web",
38+
"stream/promises",
39+
"stream/consumers",
40+
"_stream_duplex",
41+
"_stream_passthrough",
42+
"_stream_readable",
43+
"_stream_transform",
44+
"_stream_writable",
45+
"_stream_wrap",
3046
"string_decoder",
3147
"sys",
3248
"timers",
49+
"timers/promises",
3350
"tls",
3451
"tty",
3552
"url",
3653
"util",
54+
"util/types",
3755
"vm",
3856
"zlib",
3957
"freelist",
4058
"v8",
59+
"v8/tools/arguments",
60+
"v8/tools/codemap",
61+
"v8/tools/consarray",
62+
"v8/tools/csvparser",
63+
"v8/tools/logreader",
64+
"v8/tools/profile_view",
65+
"v8/tools/splaytree",
4166
"process",
4267
"inspector",
68+
"inspector/promises",
4369
"async_hooks",
4470
"http2",
4571
"perf_hooks",
4672
"trace_events",
4773
"worker_threads",
4874
"node:test",
75+
"test/reporters",
76+
"test/mock_loader",
77+
"node:sea",
78+
"node:sqlite",
4979
"wasi",
5080
"diagnostics_channel"
5181
]);

0 commit comments

Comments
 (0)