diff options
Diffstat (limited to 'ext/node/polyfills/module_all.ts')
-rw-r--r-- | ext/node/polyfills/module_all.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/node/polyfills/module_all.ts b/ext/node/polyfills/module_all.ts index 4a5f73b0c..989ce55a8 100644 --- a/ext/node/polyfills/module_all.ts +++ b/ext/node/polyfills/module_all.ts @@ -1,4 +1,5 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +const internals = globalThis.__bootstrap.internals; import _httpAgent from "internal:deno_node/polyfills/_http_agent.mjs"; import _httpOutgoing from "internal:deno_node/polyfills/_http_outgoing.ts"; import _streamDuplex from "internal:deno_node/polyfills/internal/streams/duplex.mjs"; @@ -88,7 +89,7 @@ import wasi from "internal:deno_node/polyfills/wasi.ts"; import zlib from "internal:deno_node/polyfills/zlib.ts"; // Canonical mapping of supported modules -export default { +const moduleAll = { "_http_agent": _httpAgent, "_http_outgoing": _httpOutgoing, "_stream_duplex": _streamDuplex, @@ -185,3 +186,6 @@ export default { worker_threads: workerThreads, zlib, } as Record<string, unknown>; + +internals.nodeModuleAll = moduleAll; +export default moduleAll; |