diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-12 01:52:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 00:52:08 +0000 |
commit | f794781ffba941085343b95dd5a9c1ad74a322a2 (patch) | |
tree | 395ad9feae6a3bf4078d0f03053eed8ce85b3396 /ext/node/polyfills/01_require.js | |
parent | 8476bbff9af28408bc6a9b0a7b2303cb3803422e (diff) |
feat(ext/node): expose ES modules for _ modules (#25588)
Exposes following modules:
- `"node:_http_agent"`
- `"node:_http_common"`
- `"node:_http_outgoing"`
- `"node:_http_server"`
- `"node:_stream_duplex"`
- `"node:_stream_passthrough"`
- `"node:_stream_readable"`
- `"node:_stream_transform"`
- `"node:_stream_writable"`
- `"node:_tls_common"`
- `"node:_tls_wrap"`
Diffstat (limited to 'ext/node/polyfills/01_require.js')
-rw-r--r-- | ext/node/polyfills/01_require.js | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index b84765d31..d9ecce690 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -67,13 +67,17 @@ const { import { nodeGlobals } from "ext:deno_node/00_globals.js"; -import _httpAgent from "ext:deno_node/_http_agent.mjs"; -import _httpOutgoing from "ext:deno_node/_http_outgoing.ts"; -import _streamDuplex from "ext:deno_node/internal/streams/duplex.mjs"; -import _streamPassthrough from "ext:deno_node/internal/streams/passthrough.mjs"; -import _streamReadable from "ext:deno_node/internal/streams/readable.mjs"; -import _streamTransform from "ext:deno_node/internal/streams/transform.mjs"; -import _streamWritable from "ext:deno_node/internal/streams/writable.mjs"; +import _httpAgent from "node:_http_agent"; +import _httpCommon from "node:_http_common"; +import _httpOutgoing from "node:_http_outgoing"; +import _httpServer from "node:_http_server"; +import _streamDuplex from "node:_stream_duplex"; +import _streamPassthrough from "node:_stream_passthrough"; +import _streamReadable from "node:_stream_readable"; +import _streamTransform from "node:_stream_transform"; +import _streamWritable from "node:_stream_writable"; +import _tlsCommon from "node:_tls_common"; +import _tlsWrap from "node:_tls_wrap"; import assert from "node:assert"; import assertStrict from "node:assert/strict"; import asyncHooks from "node:async_hooks"; @@ -163,12 +167,16 @@ const builtinModules = []; function setupBuiltinModules() { const nodeModules = { "_http_agent": _httpAgent, + "_http_common": _httpCommon, "_http_outgoing": _httpOutgoing, + "_http_server": _httpServer, "_stream_duplex": _streamDuplex, "_stream_passthrough": _streamPassthrough, "_stream_readable": _streamReadable, "_stream_transform": _streamTransform, "_stream_writable": _streamWritable, + "_tls_common": _tlsCommon, + "_tls_wrap": _tlsWrap, assert, "assert/strict": assertStrict, "async_hooks": asyncHooks, |