poe-code 13.0.6 → 13.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "13.0.6",
3
+ "version": "13.0.8",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +1,4 @@
1
- import { isBuiltin } from "node:module";
1
+ import { publicationNodeBuiltins } from "./node-builtins.js";
2
2
  import path from "node:path";
3
3
  export const canonicalFsRoutes = [
4
4
  {
@@ -124,7 +124,7 @@ export function findBundleIssues(manifest, workspaceNames, metafile, packedFiles
124
124
  ...Object.keys(manifest.optionalDependencies ?? {})
125
125
  ]);
126
126
  for (const specifier of [...imports].sort()) {
127
- if (isBuiltin(specifier))
127
+ if (publicationNodeBuiltins.has(specifier))
128
128
  continue;
129
129
  if (routes.has(specifier) && manifest.name === "poe-code")
130
130
  continue;
@@ -273,7 +273,9 @@ export function findBundleIssues(manifest, workspaceNames, metafile, packedFiles
273
273
  pending.push(output.cssBundle);
274
274
  for (const dependency of output.imports ?? []) {
275
275
  if (dependency.external) {
276
- if (profile === "browser" || !dependency.path || !isBuiltin(dependency.path))
276
+ if (profile === "browser" ||
277
+ !dependency.path ||
278
+ !publicationNodeBuiltins.has(dependency.path))
277
279
  fail("external-canonical-dependency");
278
280
  }
279
281
  else if (dependency.path)
@@ -306,7 +308,7 @@ export function findBundleIssues(manifest, workspaceNames, metafile, packedFiles
306
308
  for (const edge of edges) {
307
309
  if (edge === "#safe-fs-platform")
308
310
  typeQueue.push(settings.types);
309
- else if (isBuiltin(edge)) {
311
+ else if (publicationNodeBuiltins.has(edge)) {
310
312
  if (profile === "browser")
311
313
  fail("external-canonical-types");
312
314
  }
@@ -0,0 +1 @@
1
+ export declare const publicationNodeBuiltins: ReadonlySet<string>;
@@ -0,0 +1,142 @@
1
+ export const publicationNodeBuiltins = new Set([
2
+ "_http_agent",
3
+ "_http_client",
4
+ "_http_common",
5
+ "_http_incoming",
6
+ "_http_outgoing",
7
+ "_http_server",
8
+ "_stream_duplex",
9
+ "_stream_passthrough",
10
+ "_stream_readable",
11
+ "_stream_transform",
12
+ "_stream_wrap",
13
+ "_stream_writable",
14
+ "_tls_common",
15
+ "_tls_wrap",
16
+ "assert",
17
+ "assert/strict",
18
+ "async_hooks",
19
+ "buffer",
20
+ "child_process",
21
+ "cluster",
22
+ "console",
23
+ "constants",
24
+ "crypto",
25
+ "dgram",
26
+ "diagnostics_channel",
27
+ "dns",
28
+ "dns/promises",
29
+ "domain",
30
+ "events",
31
+ "fs",
32
+ "fs/promises",
33
+ "http",
34
+ "http2",
35
+ "https",
36
+ "inspector",
37
+ "inspector/promises",
38
+ "module",
39
+ "net",
40
+ "node:_http_agent",
41
+ "node:_http_client",
42
+ "node:_http_common",
43
+ "node:_http_incoming",
44
+ "node:_http_outgoing",
45
+ "node:_http_server",
46
+ "node:_stream_duplex",
47
+ "node:_stream_passthrough",
48
+ "node:_stream_readable",
49
+ "node:_stream_transform",
50
+ "node:_stream_wrap",
51
+ "node:_stream_writable",
52
+ "node:_tls_common",
53
+ "node:_tls_wrap",
54
+ "node:assert",
55
+ "node:assert/strict",
56
+ "node:async_hooks",
57
+ "node:buffer",
58
+ "node:child_process",
59
+ "node:cluster",
60
+ "node:console",
61
+ "node:constants",
62
+ "node:crypto",
63
+ "node:dgram",
64
+ "node:diagnostics_channel",
65
+ "node:dns",
66
+ "node:dns/promises",
67
+ "node:domain",
68
+ "node:events",
69
+ "node:fs",
70
+ "node:fs/promises",
71
+ "node:http",
72
+ "node:http2",
73
+ "node:https",
74
+ "node:inspector",
75
+ "node:inspector/promises",
76
+ "node:module",
77
+ "node:net",
78
+ "node:os",
79
+ "node:path",
80
+ "node:path/posix",
81
+ "node:path/win32",
82
+ "node:perf_hooks",
83
+ "node:process",
84
+ "node:punycode",
85
+ "node:querystring",
86
+ "node:readline",
87
+ "node:readline/promises",
88
+ "node:repl",
89
+ "node:sea",
90
+ "node:sqlite",
91
+ "node:stream",
92
+ "node:stream/consumers",
93
+ "node:stream/promises",
94
+ "node:stream/web",
95
+ "node:string_decoder",
96
+ "node:sys",
97
+ "node:test",
98
+ "node:test/reporters",
99
+ "node:timers",
100
+ "node:timers/promises",
101
+ "node:tls",
102
+ "node:trace_events",
103
+ "node:tty",
104
+ "node:url",
105
+ "node:util",
106
+ "node:util/types",
107
+ "node:v8",
108
+ "node:vm",
109
+ "node:wasi",
110
+ "node:worker_threads",
111
+ "node:zlib",
112
+ "os",
113
+ "path",
114
+ "path/posix",
115
+ "path/win32",
116
+ "perf_hooks",
117
+ "process",
118
+ "punycode",
119
+ "querystring",
120
+ "readline",
121
+ "readline/promises",
122
+ "repl",
123
+ "stream",
124
+ "stream/consumers",
125
+ "stream/promises",
126
+ "stream/web",
127
+ "string_decoder",
128
+ "sys",
129
+ "timers",
130
+ "timers/promises",
131
+ "tls",
132
+ "trace_events",
133
+ "tty",
134
+ "url",
135
+ "util",
136
+ "util/types",
137
+ "v8",
138
+ "vm",
139
+ "wasi",
140
+ "worker_threads",
141
+ "zlib"
142
+ ]);