@capsule-run/sdk 0.8.4 → 0.8.6
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/dist/polyfills/fs.d.ts.map +1 -1
- package/dist/polyfills/fs.js +4 -3
- package/dist/polyfills/fs.js.map +1 -1
- package/dist/polyfills/process.d.ts.map +1 -1
- package/dist/polyfills/process.js +10 -8
- package/dist/polyfills/process.js.map +1 -1
- package/dist/polyfills/unenv-runtime/_internal/types.d.mts +5 -0
- package/dist/polyfills/unenv-runtime/_internal/types.mjs +1 -0
- package/dist/polyfills/unenv-runtime/_internal/utils.d.mts +14 -0
- package/dist/polyfills/unenv-runtime/_internal/utils.mjs +49 -0
- package/dist/polyfills/unenv-runtime/mock/empty.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/mock/empty.mjs +1 -0
- package/dist/polyfills/unenv-runtime/mock/noop.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/mock/noop.mjs +1 -0
- package/dist/polyfills/unenv-runtime/mock/proxy.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/mock/proxy.mjs +43 -0
- package/dist/polyfills/unenv-runtime/node/assert/strict.d.mts +4 -0
- package/dist/polyfills/unenv-runtime/node/assert/strict.mjs +25 -0
- package/dist/polyfills/unenv-runtime/node/assert.d.mts +165 -0
- package/dist/polyfills/unenv-runtime/node/assert.mjs +737 -0
- package/dist/polyfills/unenv-runtime/node/async_hooks.d.mts +5 -0
- package/dist/polyfills/unenv-runtime/node/async_hooks.mjs +15 -0
- package/dist/polyfills/unenv-runtime/node/buffer.d.mts +19 -0
- package/dist/polyfills/unenv-runtime/node/buffer.mjs +35 -0
- package/dist/polyfills/unenv-runtime/node/child_process.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/node/child_process.mjs +21 -0
- package/dist/polyfills/unenv-runtime/node/cluster.d.mts +33 -0
- package/dist/polyfills/unenv-runtime/node/cluster.mjs +71 -0
- package/dist/polyfills/unenv-runtime/node/console.d.mts +38 -0
- package/dist/polyfills/unenv-runtime/node/console.mjs +74 -0
- package/dist/polyfills/unenv-runtime/node/constants.d.mts +13 -0
- package/dist/polyfills/unenv-runtime/node/constants.mjs +254 -0
- package/dist/polyfills/unenv-runtime/node/crypto.d.mts +6 -0
- package/dist/polyfills/unenv-runtime/node/crypto.mjs +138 -0
- package/dist/polyfills/unenv-runtime/node/dgram.d.mts +6 -0
- package/dist/polyfills/unenv-runtime/node/dgram.mjs +12 -0
- package/dist/polyfills/unenv-runtime/node/diagnostics_channel.d.mts +11 -0
- package/dist/polyfills/unenv-runtime/node/diagnostics_channel.mjs +34 -0
- package/dist/polyfills/unenv-runtime/node/dns/promises.d.mts +27 -0
- package/dist/polyfills/unenv-runtime/node/dns/promises.mjs +75 -0
- package/dist/polyfills/unenv-runtime/node/dns.d.mts +29 -0
- package/dist/polyfills/unenv-runtime/node/dns.mjs +81 -0
- package/dist/polyfills/unenv-runtime/node/domain.d.mts +8 -0
- package/dist/polyfills/unenv-runtime/node/domain.mjs +16 -0
- package/dist/polyfills/unenv-runtime/node/events.d.mts +13 -0
- package/dist/polyfills/unenv-runtime/node/events.mjs +12 -0
- package/dist/polyfills/unenv-runtime/node/fs/promises.d.mts +7 -0
- package/dist/polyfills/unenv-runtime/node/fs/promises.mjs +38 -0
- package/dist/polyfills/unenv-runtime/node/fs.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/fs.mjs +117 -0
- package/dist/polyfills/unenv-runtime/node/http.d.mts +23 -0
- package/dist/polyfills/unenv-runtime/node/http.mjs +45 -0
- package/dist/polyfills/unenv-runtime/node/http2.d.mts +15 -0
- package/dist/polyfills/unenv-runtime/node/http2.mjs +284 -0
- package/dist/polyfills/unenv-runtime/node/https.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/https.mjs +16 -0
- package/dist/polyfills/unenv-runtime/node/inspector/promises.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/inspector/promises.mjs +40 -0
- package/dist/polyfills/unenv-runtime/node/inspector.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/node/inspector.mjs +53 -0
- package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.d.mts +7 -0
- package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.mjs +115 -0
- package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.mjs +36 -0
- package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.mjs +37 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.d.mts +4 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.mjs +97 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.d.mts +13 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.mjs +1846 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/file.d.mts +14 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/file.mjs +26 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.d.mts +4 -0
- package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.mjs +89 -0
- package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.d.mts +58 -0
- package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.mjs +58 -0
- package/dist/polyfills/unenv-runtime/node/internal/crypto/node.d.mts +78 -0
- package/dist/polyfills/unenv-runtime/node/internal/crypto/node.mjs +110 -0
- package/dist/polyfills/unenv-runtime/node/internal/crypto/web.d.mts +5 -0
- package/dist/polyfills/unenv-runtime/node/internal/crypto/web.mjs +9 -0
- package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.d.mts +31 -0
- package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.mjs +61 -0
- package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.d.mts +18 -0
- package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.mjs +40 -0
- package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.d.mts +19 -0
- package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.mjs +48 -0
- package/dist/polyfills/unenv-runtime/node/internal/dns/constants.d.mts +28 -0
- package/dist/polyfills/unenv-runtime/node/internal/dns/constants.mjs +28 -0
- package/dist/polyfills/unenv-runtime/node/internal/domain/domain.d.mts +13 -0
- package/dist/polyfills/unenv-runtime/node/internal/domain/domain.mjs +19 -0
- package/dist/polyfills/unenv-runtime/node/internal/events/events.d.mts +207 -0
- package/dist/polyfills/unenv-runtime/node/internal/events/events.mjs +1097 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/classes.d.mts +8 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/classes.mjs +8 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/constants.d.mts +59 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/constants.mjs +59 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/fs.d.mts +96 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/fs.mjs +106 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/promises.d.mts +32 -0
- package/dist/polyfills/unenv-runtime/node/internal/fs/promises.mjs +32 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/agent.d.mts +14 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/agent.mjs +16 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/constants.d.mts +67 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/constants.mjs +103 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/request.d.mts +31 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/request.mjs +53 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/response.d.mts +42 -0
- package/dist/polyfills/unenv-runtime/node/internal/http/response.mjs +101 -0
- package/dist/polyfills/unenv-runtime/node/internal/http2/constants.d.mts +241 -0
- package/dist/polyfills/unenv-runtime/node/internal/http2/constants.mjs +241 -0
- package/dist/polyfills/unenv-runtime/node/internal/net/server.d.mts +17 -0
- package/dist/polyfills/unenv-runtime/node/internal/net/server.mjs +33 -0
- package/dist/polyfills/unenv-runtime/node/internal/net/socket.d.mts +45 -0
- package/dist/polyfills/unenv-runtime/node/internal/net/socket.mjs +83 -0
- package/dist/polyfills/unenv-runtime/node/internal/os/constants.d.mts +133 -0
- package/dist/polyfills/unenv-runtime/node/internal/os/constants.mjs +133 -0
- package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.d.mts +25 -0
- package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.mjs +25 -0
- package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.d.mts +28 -0
- package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.mjs +43 -0
- package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.d.mts +103 -0
- package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.mjs +232 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/env.d.mts +1 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/env.mjs +40 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.mjs +21 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.mjs +55 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/node-version.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/node-version.mjs +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/process.d.mts +113 -0
- package/dist/polyfills/unenv-runtime/node/internal/process/process.mjs +238 -0
- package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.d.mts +59 -0
- package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.mjs +410 -0
- package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.d.mts +11 -0
- package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.mjs +320 -0
- package/dist/polyfills/unenv-runtime/node/internal/readline/interface.d.mts +20 -0
- package/dist/polyfills/unenv-runtime/node/internal/readline/interface.mjs +31 -0
- package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.d.mts +7 -0
- package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.mjs +6 -0
- package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.mjs +20 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.mjs +19 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/readable.d.mts +67 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/readable.mjs +112 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/transform.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/transform.mjs +9 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/writable.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/stream/writable.mjs +87 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.d.mts +9 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.mjs +28 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.d.mts +6 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.mjs +10 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.mjs +13 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.mjs +8 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.mjs +11 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.d.mts +11 -0
- package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.mjs +30 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/constants.d.mts +7 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/constants.mjs +7 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.d.mts +4 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.mjs +3 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/server.d.mts +9 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/server.mjs +15 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.d.mts +31 -0
- package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.mjs +48 -0
- package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.d.mts +7 -0
- package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.mjs +10 -0
- package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.d.mts +8 -0
- package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.mjs +12 -0
- package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.d.mts +20 -0
- package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.mjs +44 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/constants.d.mts +44 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/constants.mjs +44 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/errors.d.mts +26 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/errors.mjs +54 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/url.d.mts +22 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/url.mjs +181 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/util.d.mts +4 -0
- package/dist/polyfills/unenv-runtime/node/internal/url/util.mjs +7 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/inherits.d.mts +1 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/inherits.mjs +12 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.d.mts +19 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.mjs +25 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/log.d.mts +8 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/log.mjs +55 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/mime.d.mts +19 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/mime.mjs +35 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/promisify.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/promisify.mjs +23 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/types.d.mts +45 -0
- package/dist/polyfills/unenv-runtime/node/internal/util/types.mjs +45 -0
- package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.mjs +23 -0
- package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.mjs +11 -0
- package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.mjs +15 -0
- package/dist/polyfills/unenv-runtime/node/internal/vm/constants.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/vm/constants.mjs +2 -0
- package/dist/polyfills/unenv-runtime/node/internal/vm/script.d.mts +7 -0
- package/dist/polyfills/unenv-runtime/node/internal/vm/script.mjs +15 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.mjs +13 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.d.mts +5 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.mjs +5 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.mjs +17 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.d.mts +21 -0
- package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.mjs +25 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.d.mts +21 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.mjs +21 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.d.mts +108 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.mjs +108 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.d.mts +22 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.mjs +40 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.d.mts +16 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.mjs +16 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.d.mts +29 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.mjs +36 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.d.mts +16 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.mjs +16 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.d.mts +9 -0
- package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.mjs +9 -0
- package/dist/polyfills/unenv-runtime/node/module.d.mts +54 -0
- package/dist/polyfills/unenv-runtime/node/module.mjs +191 -0
- package/dist/polyfills/unenv-runtime/node/net.d.mts +22 -0
- package/dist/polyfills/unenv-runtime/node/net.mjs +52 -0
- package/dist/polyfills/unenv-runtime/node/os.d.mts +26 -0
- package/dist/polyfills/unenv-runtime/node/os.mjs +118 -0
- package/dist/polyfills/unenv-runtime/node/path/posix.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/path/posix.mjs +2 -0
- package/dist/polyfills/unenv-runtime/node/path/win32.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/path/win32.mjs +2 -0
- package/dist/polyfills/unenv-runtime/node/path.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/node/path.mjs +31 -0
- package/dist/polyfills/unenv-runtime/node/perf_hooks.d.mts +8 -0
- package/dist/polyfills/unenv-runtime/node/perf_hooks.mjs +51 -0
- package/dist/polyfills/unenv-runtime/node/process.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/process.mjs +12 -0
- package/dist/polyfills/unenv-runtime/node/punycode.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/punycode.mjs +3 -0
- package/dist/polyfills/unenv-runtime/node/querystring.d.mts +49 -0
- package/dist/polyfills/unenv-runtime/node/querystring.mjs +766 -0
- package/dist/polyfills/unenv-runtime/node/readline/promises.d.mts +6 -0
- package/dist/polyfills/unenv-runtime/node/readline/promises.mjs +10 -0
- package/dist/polyfills/unenv-runtime/node/readline.d.mts +13 -0
- package/dist/polyfills/unenv-runtime/node/readline.mjs +21 -0
- package/dist/polyfills/unenv-runtime/node/repl.d.mts +10 -0
- package/dist/polyfills/unenv-runtime/node/repl.mjs +20 -0
- package/dist/polyfills/unenv-runtime/node/sqlite.d.mts +6 -0
- package/dist/polyfills/unenv-runtime/node/sqlite.mjs +9 -0
- package/dist/polyfills/unenv-runtime/node/stream/consumers.d.mts +7 -0
- package/dist/polyfills/unenv-runtime/node/stream/consumers.mjs +13 -0
- package/dist/polyfills/unenv-runtime/node/stream/promises.d.mts +4 -0
- package/dist/polyfills/unenv-runtime/node/stream/promises.mjs +7 -0
- package/dist/polyfills/unenv-runtime/node/stream/web.d.mts +24 -0
- package/dist/polyfills/unenv-runtime/node/stream/web.mjs +41 -0
- package/dist/polyfills/unenv-runtime/node/stream.d.mts +42 -0
- package/dist/polyfills/unenv-runtime/node/stream.mjs +54 -0
- package/dist/polyfills/unenv-runtime/node/string_decoder.d.mts +5 -0
- package/dist/polyfills/unenv-runtime/node/string_decoder.mjs +3 -0
- package/dist/polyfills/unenv-runtime/node/sys.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/node/sys.mjs +2 -0
- package/dist/polyfills/unenv-runtime/node/timers/promises.d.mts +6 -0
- package/dist/polyfills/unenv-runtime/node/timers/promises.mjs +14 -0
- package/dist/polyfills/unenv-runtime/node/timers.d.mts +15 -0
- package/dist/polyfills/unenv-runtime/node/timers.mjs +32 -0
- package/dist/polyfills/unenv-runtime/node/tls.d.mts +15 -0
- package/dist/polyfills/unenv-runtime/node/tls.mjs +41 -0
- package/dist/polyfills/unenv-runtime/node/trace_events.d.mts +5 -0
- package/dist/polyfills/unenv-runtime/node/trace_events.mjs +9 -0
- package/dist/polyfills/unenv-runtime/node/tty.d.mts +9 -0
- package/dist/polyfills/unenv-runtime/node/tty.mjs +12 -0
- package/dist/polyfills/unenv-runtime/node/url.d.mts +61 -0
- package/dist/polyfills/unenv-runtime/node/url.mjs +1044 -0
- package/dist/polyfills/unenv-runtime/node/util/types.d.mts +3 -0
- package/dist/polyfills/unenv-runtime/node/util/types.mjs +3 -0
- package/dist/polyfills/unenv-runtime/node/util.d.mts +32 -0
- package/dist/polyfills/unenv-runtime/node/util.mjs +84 -0
- package/dist/polyfills/unenv-runtime/node/v8.d.mts +29 -0
- package/dist/polyfills/unenv-runtime/node/v8.mjs +108 -0
- package/dist/polyfills/unenv-runtime/node/vm.d.mts +15 -0
- package/dist/polyfills/unenv-runtime/node/vm.mjs +41 -0
- package/dist/polyfills/unenv-runtime/node/wasi.d.mts +4 -0
- package/dist/polyfills/unenv-runtime/node/wasi.mjs +3 -0
- package/dist/polyfills/unenv-runtime/node/worker_threads.d.mts +23 -0
- package/dist/polyfills/unenv-runtime/node/worker_threads.mjs +55 -0
- package/dist/polyfills/unenv-runtime/node/zlib.d.mts +16 -0
- package/dist/polyfills/unenv-runtime/node/zlib.mjs +212 -0
- package/dist/polyfills/unenv-runtime/npm/cross-fetch.d.mts +6 -0
- package/dist/polyfills/unenv-runtime/npm/cross-fetch.mjs +6 -0
- package/dist/polyfills/unenv-runtime/npm/debug.d.mts +15 -0
- package/dist/polyfills/unenv-runtime/npm/debug.mjs +43 -0
- package/dist/polyfills/unenv-runtime/npm/fsevents.d.mts +16 -0
- package/dist/polyfills/unenv-runtime/npm/fsevents.mjs +20 -0
- package/dist/polyfills/unenv-runtime/npm/inherits.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/npm/inherits.mjs +2 -0
- package/dist/polyfills/unenv-runtime/npm/node-fetch.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/npm/node-fetch.mjs +23 -0
- package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.d.mts +13 -0
- package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.mjs +15 -0
- package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.mjs +2 -0
- package/dist/polyfills/unenv-runtime/polyfill/buffer.d.mts +1 -0
- package/dist/polyfills/unenv-runtime/polyfill/buffer.mjs +4 -0
- package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.d.mts +1 -0
- package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.mjs +5 -0
- package/dist/polyfills/unenv-runtime/polyfill/globalthis.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/polyfill/globalthis.mjs +2 -0
- package/dist/polyfills/unenv-runtime/polyfill/package.json +3 -0
- package/dist/polyfills/unenv-runtime/polyfill/performance.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/polyfill/performance.mjs +10 -0
- package/dist/polyfills/unenv-runtime/polyfill/process.d.mts +2 -0
- package/dist/polyfills/unenv-runtime/polyfill/process.mjs +10 -0
- package/dist/polyfills/unenv-runtime/polyfill/source-maps.mjs +15 -0
- package/dist/polyfills/unenv-runtime/polyfill/timers.d.mts +1 -0
- package/dist/polyfills/unenv-runtime/polyfill/timers.mjs +7 -0
- package/dist/polyfills/unenv-runtime/web/performance/_polyfills.d.mts +100 -0
- package/dist/polyfills/unenv-runtime/web/performance/_polyfills.mjs +184 -0
- package/dist/polyfills/unenv-runtime/web/performance/index.d.mts +12 -0
- package/dist/polyfills/unenv-runtime/web/performance/index.mjs +14 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +39 -10
- package/dist/run.js.map +1 -1
- package/package.json +2 -2
- package/src/polyfills/fs.ts +5 -3
- package/src/polyfills/process.ts +10 -8
- package/src/run.ts +41 -11
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { getRandomValues, randomUUID, subtle } from "./internal/crypto/web.mjs";
|
|
2
|
+
import { Certificate, Cipher, Cipheriv, Decipher, Decipheriv, DiffieHellman, DiffieHellmanGroup, ECDH, Hash, Hmac, KeyObject, Sign, Verify, X509Certificate, checkPrime, checkPrimeSync, createCipheriv, createDecipheriv, createDiffieHellman, createDiffieHellmanGroup, createECDH, createHash, createHmac, createPrivateKey, createPublicKey, createSecretKey, createSign, createVerify, diffieHellman, fips, generateKey, generateKeyPair, generateKeyPairSync, generateKeySync, generatePrime, generatePrimeSync, getCipherInfo, getCiphers, getCurves, getDiffieHellman, getFips, getHashes, hash, hkdf, hkdfSync, pbkdf2, pbkdf2Sync, privateDecrypt, privateEncrypt, pseudoRandomBytes, publicDecrypt, prng, publicEncrypt, randomBytes, randomFill, randomFillSync, randomInt, rng, scrypt, scryptSync, secureHeapUsed, setEngine, setFips, sign, timingSafeEqual, verify, webcrypto } from "./internal/crypto/node.mjs";
|
|
3
|
+
// prettier-ignore
|
|
4
|
+
import { OPENSSL_VERSION_NUMBER, SSL_OP_ALL, SSL_OP_ALLOW_NO_DHE_KEX, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_NO_COMPRESSION, SSL_OP_NO_ENCRYPT_THEN_MAC, SSL_OP_NO_QUERY_MTU, SSL_OP_NO_RENEGOTIATION, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2, SSL_OP_NO_TLSv1_3, SSL_OP_PRIORITIZE_CHACHA, SSL_OP_TLS_ROLLBACK_BUG, ENGINE_METHOD_RSA, ENGINE_METHOD_DSA, ENGINE_METHOD_DH, ENGINE_METHOD_RAND, ENGINE_METHOD_EC, ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DIGESTS, ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_ALL, ENGINE_METHOD_NONE, DH_CHECK_P_NOT_SAFE_PRIME, DH_CHECK_P_NOT_PRIME, DH_UNABLE_TO_CHECK_GENERATOR, DH_NOT_SUITABLE_GENERATOR, RSA_PKCS1_PADDING, RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING, RSA_X931_PADDING, RSA_PKCS1_PSS_PADDING, RSA_PSS_SALTLEN_DIGEST, RSA_PSS_SALTLEN_MAX_SIGN, RSA_PSS_SALTLEN_AUTO, defaultCoreCipherList, TLS1_VERSION, TLS1_1_VERSION, TLS1_2_VERSION, TLS1_3_VERSION, POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_UNCOMPRESSED, POINT_CONVERSION_HYBRID, defaultCipherList } from "./internal/crypto/constants.mjs";
|
|
5
|
+
export * from "./internal/crypto/web.mjs";
|
|
6
|
+
export * from "./internal/crypto/node.mjs";
|
|
7
|
+
// prettier-ignore
|
|
8
|
+
export const constants = {
|
|
9
|
+
OPENSSL_VERSION_NUMBER,
|
|
10
|
+
SSL_OP_ALL,
|
|
11
|
+
SSL_OP_ALLOW_NO_DHE_KEX,
|
|
12
|
+
SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION,
|
|
13
|
+
SSL_OP_CIPHER_SERVER_PREFERENCE,
|
|
14
|
+
SSL_OP_CISCO_ANYCONNECT,
|
|
15
|
+
SSL_OP_COOKIE_EXCHANGE,
|
|
16
|
+
SSL_OP_CRYPTOPRO_TLSEXT_BUG,
|
|
17
|
+
SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS,
|
|
18
|
+
SSL_OP_LEGACY_SERVER_CONNECT,
|
|
19
|
+
SSL_OP_NO_COMPRESSION,
|
|
20
|
+
SSL_OP_NO_ENCRYPT_THEN_MAC,
|
|
21
|
+
SSL_OP_NO_QUERY_MTU,
|
|
22
|
+
SSL_OP_NO_RENEGOTIATION,
|
|
23
|
+
SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION,
|
|
24
|
+
SSL_OP_NO_SSLv2,
|
|
25
|
+
SSL_OP_NO_SSLv3,
|
|
26
|
+
SSL_OP_NO_TICKET,
|
|
27
|
+
SSL_OP_NO_TLSv1,
|
|
28
|
+
SSL_OP_NO_TLSv1_1,
|
|
29
|
+
SSL_OP_NO_TLSv1_2,
|
|
30
|
+
SSL_OP_NO_TLSv1_3,
|
|
31
|
+
SSL_OP_PRIORITIZE_CHACHA,
|
|
32
|
+
SSL_OP_TLS_ROLLBACK_BUG,
|
|
33
|
+
ENGINE_METHOD_RSA,
|
|
34
|
+
ENGINE_METHOD_DSA,
|
|
35
|
+
ENGINE_METHOD_DH,
|
|
36
|
+
ENGINE_METHOD_RAND,
|
|
37
|
+
ENGINE_METHOD_EC,
|
|
38
|
+
ENGINE_METHOD_CIPHERS,
|
|
39
|
+
ENGINE_METHOD_DIGESTS,
|
|
40
|
+
ENGINE_METHOD_PKEY_METHS,
|
|
41
|
+
ENGINE_METHOD_PKEY_ASN1_METHS,
|
|
42
|
+
ENGINE_METHOD_ALL,
|
|
43
|
+
ENGINE_METHOD_NONE,
|
|
44
|
+
DH_CHECK_P_NOT_SAFE_PRIME,
|
|
45
|
+
DH_CHECK_P_NOT_PRIME,
|
|
46
|
+
DH_UNABLE_TO_CHECK_GENERATOR,
|
|
47
|
+
DH_NOT_SUITABLE_GENERATOR,
|
|
48
|
+
RSA_PKCS1_PADDING,
|
|
49
|
+
RSA_NO_PADDING,
|
|
50
|
+
RSA_PKCS1_OAEP_PADDING,
|
|
51
|
+
RSA_X931_PADDING,
|
|
52
|
+
RSA_PKCS1_PSS_PADDING,
|
|
53
|
+
RSA_PSS_SALTLEN_DIGEST,
|
|
54
|
+
RSA_PSS_SALTLEN_MAX_SIGN,
|
|
55
|
+
RSA_PSS_SALTLEN_AUTO,
|
|
56
|
+
defaultCoreCipherList,
|
|
57
|
+
TLS1_VERSION,
|
|
58
|
+
TLS1_1_VERSION,
|
|
59
|
+
TLS1_2_VERSION,
|
|
60
|
+
TLS1_3_VERSION,
|
|
61
|
+
POINT_CONVERSION_COMPRESSED,
|
|
62
|
+
POINT_CONVERSION_UNCOMPRESSED,
|
|
63
|
+
POINT_CONVERSION_HYBRID,
|
|
64
|
+
defaultCipherList
|
|
65
|
+
};
|
|
66
|
+
export default {
|
|
67
|
+
constants,
|
|
68
|
+
getRandomValues,
|
|
69
|
+
randomUUID,
|
|
70
|
+
subtle,
|
|
71
|
+
Certificate,
|
|
72
|
+
Cipher,
|
|
73
|
+
Cipheriv,
|
|
74
|
+
Decipher,
|
|
75
|
+
Decipheriv,
|
|
76
|
+
DiffieHellman,
|
|
77
|
+
DiffieHellmanGroup,
|
|
78
|
+
ECDH,
|
|
79
|
+
Hash,
|
|
80
|
+
Hmac,
|
|
81
|
+
KeyObject,
|
|
82
|
+
Sign,
|
|
83
|
+
Verify,
|
|
84
|
+
X509Certificate,
|
|
85
|
+
checkPrime,
|
|
86
|
+
checkPrimeSync,
|
|
87
|
+
createCipheriv,
|
|
88
|
+
createDecipheriv,
|
|
89
|
+
createDiffieHellman,
|
|
90
|
+
createDiffieHellmanGroup,
|
|
91
|
+
createECDH,
|
|
92
|
+
createHash,
|
|
93
|
+
createHmac,
|
|
94
|
+
createPrivateKey,
|
|
95
|
+
createPublicKey,
|
|
96
|
+
createSecretKey,
|
|
97
|
+
createSign,
|
|
98
|
+
createVerify,
|
|
99
|
+
diffieHellman,
|
|
100
|
+
fips,
|
|
101
|
+
generateKey,
|
|
102
|
+
generateKeyPair,
|
|
103
|
+
generateKeyPairSync,
|
|
104
|
+
generateKeySync,
|
|
105
|
+
generatePrime,
|
|
106
|
+
generatePrimeSync,
|
|
107
|
+
getCipherInfo,
|
|
108
|
+
getCiphers,
|
|
109
|
+
getCurves,
|
|
110
|
+
getDiffieHellman,
|
|
111
|
+
getFips,
|
|
112
|
+
getHashes,
|
|
113
|
+
hash,
|
|
114
|
+
hkdf,
|
|
115
|
+
hkdfSync,
|
|
116
|
+
pbkdf2,
|
|
117
|
+
pbkdf2Sync,
|
|
118
|
+
privateDecrypt,
|
|
119
|
+
privateEncrypt,
|
|
120
|
+
pseudoRandomBytes,
|
|
121
|
+
publicDecrypt,
|
|
122
|
+
prng,
|
|
123
|
+
publicEncrypt,
|
|
124
|
+
randomBytes,
|
|
125
|
+
randomFill,
|
|
126
|
+
randomFillSync,
|
|
127
|
+
randomInt,
|
|
128
|
+
rng,
|
|
129
|
+
scrypt,
|
|
130
|
+
scryptSync,
|
|
131
|
+
secureHeapUsed,
|
|
132
|
+
setEngine,
|
|
133
|
+
setFips,
|
|
134
|
+
sign,
|
|
135
|
+
timingSafeEqual,
|
|
136
|
+
verify,
|
|
137
|
+
webcrypto
|
|
138
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type nodeDgram from "node:dgram";
|
|
2
|
+
export { Socket } from "./internal/dgram/socket.mjs";
|
|
3
|
+
export declare const _createSocketHandle: unknown;
|
|
4
|
+
export declare const createSocket: typeof nodeDgram.createSocket;
|
|
5
|
+
declare const _default: typeof nodeDgram;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import noop from "../mock/noop.mjs";
|
|
2
|
+
import { Socket } from "./internal/dgram/socket.mjs";
|
|
3
|
+
export { Socket } from "./internal/dgram/socket.mjs";
|
|
4
|
+
export const _createSocketHandle = noop;
|
|
5
|
+
export const createSocket = function() {
|
|
6
|
+
return new Socket();
|
|
7
|
+
};
|
|
8
|
+
export default {
|
|
9
|
+
Socket,
|
|
10
|
+
_createSocketHandle,
|
|
11
|
+
createSocket
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type nodeDiagnosticsChannel from "node:diagnostics_channel";
|
|
2
|
+
export { Channel } from "./internal/diagnostics_channel/channel.mjs";
|
|
3
|
+
export declare const channel: typeof nodeDiagnosticsChannel.channel;
|
|
4
|
+
export declare const hasSubscribers: typeof nodeDiagnosticsChannel.hasSubscribers;
|
|
5
|
+
export declare const subscribe: typeof nodeDiagnosticsChannel.subscribe;
|
|
6
|
+
export declare const unsubscribe: typeof nodeDiagnosticsChannel.unsubscribe;
|
|
7
|
+
export declare const tracingChannel: typeof nodeDiagnosticsChannel.tracingChannel;
|
|
8
|
+
// TracingChannel is incorrectly exposed on the `diagnostics_channel` type. In addition, its type
|
|
9
|
+
// takes a constructor with no arguments, whereas the node implementation takes a name (matching `tracingChannel`)
|
|
10
|
+
declare const _default: {};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Channel, getChannels } from "./internal/diagnostics_channel/channel.mjs";
|
|
2
|
+
import { TracingChannel } from "./internal/diagnostics_channel/tracing-channel.mjs";
|
|
3
|
+
export { Channel } from "./internal/diagnostics_channel/channel.mjs";
|
|
4
|
+
export const channel = function(name) {
|
|
5
|
+
const channels = getChannels();
|
|
6
|
+
if (name in channels) {
|
|
7
|
+
return channels[name];
|
|
8
|
+
}
|
|
9
|
+
return new Channel(name);
|
|
10
|
+
};
|
|
11
|
+
export const hasSubscribers = function(name) {
|
|
12
|
+
const channels = getChannels();
|
|
13
|
+
const channel = channels[name];
|
|
14
|
+
return channel && channel.hasSubscribers;
|
|
15
|
+
};
|
|
16
|
+
export const subscribe = function(name, onMessage) {
|
|
17
|
+
channel(name).subscribe(onMessage);
|
|
18
|
+
};
|
|
19
|
+
export const unsubscribe = function(name, onMessage) {
|
|
20
|
+
return channel(name).unsubscribe(onMessage);
|
|
21
|
+
};
|
|
22
|
+
export const tracingChannel = function(name) {
|
|
23
|
+
return new TracingChannel(name);
|
|
24
|
+
};
|
|
25
|
+
// TracingChannel is incorrectly exposed on the `diagnostics_channel` type. In addition, its type
|
|
26
|
+
// takes a constructor with no arguments, whereas the node implementation takes a name (matching `tracingChannel`)
|
|
27
|
+
export default {
|
|
28
|
+
Channel,
|
|
29
|
+
channel,
|
|
30
|
+
hasSubscribers,
|
|
31
|
+
subscribe,
|
|
32
|
+
tracingChannel,
|
|
33
|
+
unsubscribe
|
|
34
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type nodeDnsPromises from "node:dns/promises";
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED } from "../internal/dns/constants.mjs";
|
|
4
|
+
export declare const Resolver: typeof nodeDnsPromises.Resolver;
|
|
5
|
+
export declare const getDefaultResultOrder: typeof nodeDnsPromises.getDefaultResultOrder;
|
|
6
|
+
export declare const getServers: typeof nodeDnsPromises.getServers;
|
|
7
|
+
export declare const lookup: typeof nodeDnsPromises.lookup;
|
|
8
|
+
export declare const lookupService: typeof nodeDnsPromises.lookupService;
|
|
9
|
+
export declare const resolve: typeof nodeDnsPromises.resolve;
|
|
10
|
+
export declare const resolve4: typeof nodeDnsPromises.resolve4;
|
|
11
|
+
export declare const resolve6: typeof nodeDnsPromises.resolve6;
|
|
12
|
+
export declare const resolveAny: typeof nodeDnsPromises.resolveAny;
|
|
13
|
+
export declare const resolveCaa: typeof nodeDnsPromises.resolveCaa;
|
|
14
|
+
export declare const resolveCname: typeof nodeDnsPromises.resolveCname;
|
|
15
|
+
export declare const resolveMx: typeof nodeDnsPromises.resolveMx;
|
|
16
|
+
export declare const resolveNaptr: typeof nodeDnsPromises.resolveNaptr;
|
|
17
|
+
export declare const resolveNs: typeof nodeDnsPromises.resolveNs;
|
|
18
|
+
export declare const resolvePtr: typeof nodeDnsPromises.resolvePtr;
|
|
19
|
+
export declare const resolveSoa: typeof nodeDnsPromises.resolveSoa;
|
|
20
|
+
export declare const resolveSrv: typeof nodeDnsPromises.resolveSrv;
|
|
21
|
+
export declare const resolveTxt: typeof nodeDnsPromises.resolveTxt;
|
|
22
|
+
export declare const reverse: typeof nodeDnsPromises.reverse;
|
|
23
|
+
export declare const setDefaultResultOrder: typeof nodeDnsPromises.setDefaultResultOrder;
|
|
24
|
+
export declare const setServers: typeof nodeDnsPromises.setServers;
|
|
25
|
+
// prettier-ignore
|
|
26
|
+
declare const _default: {};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import noop from "../../mock/noop.mjs";
|
|
2
|
+
import { notImplemented, notImplementedAsync, notImplementedClass } from "../../_internal/utils.mjs";
|
|
3
|
+
// prettier-ignore
|
|
4
|
+
import { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED } from "../internal/dns/constants.mjs";
|
|
5
|
+
// prettier-ignore
|
|
6
|
+
export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED } from "../internal/dns/constants.mjs";
|
|
7
|
+
export const Resolver = /* @__PURE__ */ notImplementedClass("dns.Resolver");
|
|
8
|
+
export const getDefaultResultOrder = () => "verbatim";
|
|
9
|
+
export const getServers = () => [];
|
|
10
|
+
export const lookup = /* @__PURE__ */ notImplementedAsync("dns.lookup");
|
|
11
|
+
export const lookupService = /* @__PURE__ */ notImplementedAsync("dns.lookupService");
|
|
12
|
+
export const resolve = /* @__PURE__ */ notImplementedAsync("dns.resolve");
|
|
13
|
+
export const resolve4 = /* @__PURE__ */ notImplementedAsync("dns.resolve4");
|
|
14
|
+
export const resolve6 = /* @__PURE__ */ notImplementedAsync("dns.resolve6");
|
|
15
|
+
export const resolveAny = /* @__PURE__ */ notImplementedAsync("dns.resolveAny");
|
|
16
|
+
export const resolveCaa = /* @__PURE__ */ notImplementedAsync("dns.resolveCaa");
|
|
17
|
+
export const resolveCname = /* @__PURE__ */ notImplementedAsync("dns.resolveCname");
|
|
18
|
+
export const resolveMx = /* @__PURE__ */ notImplementedAsync("dns.resolveMx");
|
|
19
|
+
export const resolveNaptr = /* @__PURE__ */ notImplementedAsync("dns.resolveNaptr");
|
|
20
|
+
export const resolveNs = /* @__PURE__ */ notImplementedAsync("dns.resolveNs");
|
|
21
|
+
export const resolvePtr = /* @__PURE__ */ notImplementedAsync("dns.resolvePtr");
|
|
22
|
+
export const resolveSoa = /* @__PURE__ */ notImplementedAsync("dns.resolveSoa");
|
|
23
|
+
export const resolveSrv = /* @__PURE__ */ notImplementedAsync("dns.resolveSrv");
|
|
24
|
+
export const resolveTxt = /* @__PURE__ */ notImplementedAsync("dns.resolveTxt");
|
|
25
|
+
export const reverse = /* @__PURE__ */ notImplemented("dns.reverse");
|
|
26
|
+
export const setDefaultResultOrder = noop;
|
|
27
|
+
export const setServers = noop;
|
|
28
|
+
// prettier-ignore
|
|
29
|
+
export default {
|
|
30
|
+
NODATA,
|
|
31
|
+
FORMERR,
|
|
32
|
+
SERVFAIL,
|
|
33
|
+
NOTFOUND,
|
|
34
|
+
NOTIMP,
|
|
35
|
+
REFUSED,
|
|
36
|
+
BADQUERY,
|
|
37
|
+
BADNAME,
|
|
38
|
+
BADFAMILY,
|
|
39
|
+
BADRESP,
|
|
40
|
+
CONNREFUSED,
|
|
41
|
+
TIMEOUT,
|
|
42
|
+
EOF,
|
|
43
|
+
FILE,
|
|
44
|
+
NOMEM,
|
|
45
|
+
DESTRUCTION,
|
|
46
|
+
BADSTR,
|
|
47
|
+
BADFLAGS,
|
|
48
|
+
NONAME,
|
|
49
|
+
BADHINTS,
|
|
50
|
+
NOTINITIALIZED,
|
|
51
|
+
LOADIPHLPAPI,
|
|
52
|
+
ADDRGETNETWORKPARAMS,
|
|
53
|
+
CANCELLED,
|
|
54
|
+
Resolver,
|
|
55
|
+
getDefaultResultOrder,
|
|
56
|
+
getServers,
|
|
57
|
+
lookup,
|
|
58
|
+
lookupService,
|
|
59
|
+
resolve,
|
|
60
|
+
resolve4,
|
|
61
|
+
resolve6,
|
|
62
|
+
resolveAny,
|
|
63
|
+
resolveCaa,
|
|
64
|
+
resolveCname,
|
|
65
|
+
resolveMx,
|
|
66
|
+
resolveNaptr,
|
|
67
|
+
resolveNs,
|
|
68
|
+
resolvePtr,
|
|
69
|
+
resolveSoa,
|
|
70
|
+
resolveSrv,
|
|
71
|
+
resolveTxt,
|
|
72
|
+
reverse,
|
|
73
|
+
setDefaultResultOrder,
|
|
74
|
+
setServers
|
|
75
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type nodeDns from "node:dns";
|
|
2
|
+
import promises from "node:dns/promises";
|
|
3
|
+
export { promises };
|
|
4
|
+
export declare const Resolver: typeof nodeDns.Resolver;
|
|
5
|
+
export declare const getDefaultResultOrder: typeof nodeDns.getDefaultResultOrder;
|
|
6
|
+
export declare const getServers: typeof nodeDns.getServers;
|
|
7
|
+
export declare const lookup: typeof nodeDns.lookup;
|
|
8
|
+
export declare const lookupService: typeof nodeDns.lookupService;
|
|
9
|
+
export declare const resolve: typeof nodeDns.resolve;
|
|
10
|
+
export declare const resolve4: typeof nodeDns.resolve4;
|
|
11
|
+
export declare const resolve6: typeof nodeDns.resolve6;
|
|
12
|
+
export declare const resolveAny: typeof nodeDns.resolveAny;
|
|
13
|
+
export declare const resolveCaa: typeof nodeDns.resolveCaa;
|
|
14
|
+
export declare const resolveCname: typeof nodeDns.resolveCname;
|
|
15
|
+
export declare const resolveMx: typeof nodeDns.resolveMx;
|
|
16
|
+
export declare const resolveNaptr: typeof nodeDns.resolveNaptr;
|
|
17
|
+
export declare const resolveNs: typeof nodeDns.resolveNs;
|
|
18
|
+
export declare const resolvePtr: typeof nodeDns.resolvePtr;
|
|
19
|
+
export declare const resolveSoa: typeof nodeDns.resolveSoa;
|
|
20
|
+
export declare const resolveSrv: typeof nodeDns.resolveSrv;
|
|
21
|
+
export declare const resolveTxt: typeof nodeDns.resolveTxt;
|
|
22
|
+
export declare const reverse: typeof nodeDns.reverse;
|
|
23
|
+
export declare const setDefaultResultOrder: typeof nodeDns.setDefaultResultOrder;
|
|
24
|
+
export declare const setServers: typeof nodeDns.setServers;
|
|
25
|
+
// prettier-ignore
|
|
26
|
+
export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED, ADDRCONFIG, ALL, V4MAPPED } from "./internal/dns/constants.mjs";
|
|
27
|
+
// prettier-ignore
|
|
28
|
+
declare const _default: {};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import noop from "../mock/noop.mjs";
|
|
2
|
+
import { notImplemented, notImplementedAsync, notImplementedClass } from "../_internal/utils.mjs";
|
|
3
|
+
import promises from "node:dns/promises";
|
|
4
|
+
export { promises };
|
|
5
|
+
export const Resolver = /* @__PURE__ */ notImplementedClass("dns.Resolver");
|
|
6
|
+
export const getDefaultResultOrder = () => "verbatim";
|
|
7
|
+
export const getServers = () => [];
|
|
8
|
+
export const lookup = /* @__PURE__ */ notImplementedAsync("dns.lookup");
|
|
9
|
+
export const lookupService = /* @__PURE__ */ notImplementedAsync("dns.lookupService");
|
|
10
|
+
export const resolve = /* @__PURE__ */ notImplementedAsync("dns.resolve");
|
|
11
|
+
export const resolve4 = /* @__PURE__ */ notImplementedAsync("dns.resolve4");
|
|
12
|
+
export const resolve6 = /* @__PURE__ */ notImplementedAsync("dns.resolve6");
|
|
13
|
+
export const resolveAny = /* @__PURE__ */ notImplementedAsync("dns.resolveAny");
|
|
14
|
+
export const resolveCaa = /* @__PURE__ */ notImplementedAsync("dns.resolveCaa");
|
|
15
|
+
export const resolveCname = /* @__PURE__ */ notImplementedAsync("dns.resolveCname");
|
|
16
|
+
export const resolveMx = /* @__PURE__ */ notImplementedAsync("dns.resolveMx");
|
|
17
|
+
export const resolveNaptr = /* @__PURE__ */ notImplementedAsync("dns.resolveNaptr");
|
|
18
|
+
export const resolveNs = /* @__PURE__ */ notImplementedAsync("dns.resolveNs");
|
|
19
|
+
export const resolvePtr = /* @__PURE__ */ notImplementedAsync("dns.resolvePtr");
|
|
20
|
+
export const resolveSoa = /* @__PURE__ */ notImplementedAsync("dns.resolveSoa");
|
|
21
|
+
export const resolveSrv = /* @__PURE__ */ notImplementedAsync("dns.resolveSrv");
|
|
22
|
+
export const resolveTxt = /* @__PURE__ */ notImplementedAsync("dns.resolveTxt");
|
|
23
|
+
export const reverse = /* @__PURE__ */ notImplemented("dns.reverse");
|
|
24
|
+
export const setDefaultResultOrder = noop;
|
|
25
|
+
export const setServers = noop;
|
|
26
|
+
// prettier-ignore
|
|
27
|
+
import { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED, ADDRCONFIG, ALL, V4MAPPED } from "./internal/dns/constants.mjs";
|
|
28
|
+
// prettier-ignore
|
|
29
|
+
export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED, ADDRCONFIG, ALL, V4MAPPED } from "./internal/dns/constants.mjs";
|
|
30
|
+
// prettier-ignore
|
|
31
|
+
export default {
|
|
32
|
+
NODATA,
|
|
33
|
+
FORMERR,
|
|
34
|
+
SERVFAIL,
|
|
35
|
+
NOTFOUND,
|
|
36
|
+
NOTIMP,
|
|
37
|
+
REFUSED,
|
|
38
|
+
BADQUERY,
|
|
39
|
+
BADNAME,
|
|
40
|
+
BADFAMILY,
|
|
41
|
+
BADRESP,
|
|
42
|
+
CONNREFUSED,
|
|
43
|
+
TIMEOUT,
|
|
44
|
+
EOF,
|
|
45
|
+
FILE,
|
|
46
|
+
NOMEM,
|
|
47
|
+
DESTRUCTION,
|
|
48
|
+
BADSTR,
|
|
49
|
+
BADFLAGS,
|
|
50
|
+
NONAME,
|
|
51
|
+
BADHINTS,
|
|
52
|
+
NOTINITIALIZED,
|
|
53
|
+
LOADIPHLPAPI,
|
|
54
|
+
ADDRGETNETWORKPARAMS,
|
|
55
|
+
CANCELLED,
|
|
56
|
+
ADDRCONFIG,
|
|
57
|
+
ALL,
|
|
58
|
+
V4MAPPED,
|
|
59
|
+
Resolver,
|
|
60
|
+
getDefaultResultOrder,
|
|
61
|
+
getServers,
|
|
62
|
+
lookup,
|
|
63
|
+
lookupService,
|
|
64
|
+
promises,
|
|
65
|
+
resolve,
|
|
66
|
+
resolve4,
|
|
67
|
+
resolve6,
|
|
68
|
+
resolveAny,
|
|
69
|
+
resolveCaa,
|
|
70
|
+
resolveCname,
|
|
71
|
+
resolveMx,
|
|
72
|
+
resolveNaptr,
|
|
73
|
+
resolveNs,
|
|
74
|
+
resolvePtr,
|
|
75
|
+
resolveSoa,
|
|
76
|
+
resolveSrv,
|
|
77
|
+
resolveTxt,
|
|
78
|
+
reverse,
|
|
79
|
+
setDefaultResultOrder,
|
|
80
|
+
setServers
|
|
81
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type nodeDomain from "node:domain";
|
|
2
|
+
export { Domain } from "./internal/domain/domain.mjs";
|
|
3
|
+
export declare const create: typeof nodeDomain.create;
|
|
4
|
+
export declare const createDomain: typeof nodeDomain.create;
|
|
5
|
+
export declare const active: unknown;
|
|
6
|
+
export declare const _stack: unknown;
|
|
7
|
+
declare const _default: typeof nodeDomain;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Domain } from "./internal/domain/domain.mjs";
|
|
2
|
+
export { Domain } from "./internal/domain/domain.mjs";
|
|
3
|
+
export const create = function() {
|
|
4
|
+
return new Domain();
|
|
5
|
+
};
|
|
6
|
+
export const createDomain = create;
|
|
7
|
+
const _domain = create();
|
|
8
|
+
export const active = () => _domain;
|
|
9
|
+
export const _stack = [];
|
|
10
|
+
export default {
|
|
11
|
+
Domain,
|
|
12
|
+
_stack,
|
|
13
|
+
active,
|
|
14
|
+
create,
|
|
15
|
+
createDomain
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// https://nodejs.org/api/events.html
|
|
2
|
+
import type nodeEvents from "node:events";
|
|
3
|
+
export { _EventEmitter as EventEmitter, EventEmitterAsyncResource, addAbortListener, getEventListeners, getMaxListeners, on, once } from "./internal/events/events.mjs";
|
|
4
|
+
export declare const usingDomains: boolean;
|
|
5
|
+
export declare const captureRejectionSymbol: unknown;
|
|
6
|
+
export declare const captureRejections: boolean;
|
|
7
|
+
export declare const errorMonitor: unknown;
|
|
8
|
+
export declare const defaultMaxListeners = 10;
|
|
9
|
+
export declare const setMaxListeners: unknown;
|
|
10
|
+
export declare const listenerCount: unknown;
|
|
11
|
+
export declare const init: unknown;
|
|
12
|
+
declare const _default: typeof nodeEvents;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { _EventEmitter } from "./internal/events/events.mjs";
|
|
2
|
+
import { notImplemented } from "../_internal/utils.mjs";
|
|
3
|
+
export { _EventEmitter as EventEmitter, EventEmitterAsyncResource, addAbortListener, getEventListeners, getMaxListeners, on, once } from "./internal/events/events.mjs";
|
|
4
|
+
export const usingDomains = false;
|
|
5
|
+
export const captureRejectionSymbol = /* @__PURE__ */ Symbol.for("nodejs.rejection");
|
|
6
|
+
export const captureRejections = false;
|
|
7
|
+
export const errorMonitor = /* @__PURE__ */ Symbol.for("events.errorMonitor");
|
|
8
|
+
export const defaultMaxListeners = 10;
|
|
9
|
+
export const setMaxListeners = /* @__PURE__ */ notImplemented("node:events.setMaxListeners");
|
|
10
|
+
export const listenerCount = /* @__PURE__ */ notImplemented("node:events.listenerCount");
|
|
11
|
+
export const init = /* @__PURE__ */ notImplemented("node:events.init");
|
|
12
|
+
export default _EventEmitter;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { access, appendFile, chmod, chown, copyFile, cp, glob, lchmod, lchown, link, lstat, lutimes, mkdir, mkdtemp, open, opendir, readFile, readdir, readlink, realpath, rename, rm, rmdir, stat, statfs, symlink, truncate, unlink, utimes, watch, writeFile } from "../internal/fs/promises.mjs";
|
|
2
|
+
import * as constants from "../internal/fs/constants.mjs";
|
|
3
|
+
export { constants };
|
|
4
|
+
export * from "../internal/fs/promises.mjs";
|
|
5
|
+
export default {
|
|
6
|
+
constants,
|
|
7
|
+
access,
|
|
8
|
+
appendFile,
|
|
9
|
+
chmod,
|
|
10
|
+
chown,
|
|
11
|
+
copyFile,
|
|
12
|
+
cp,
|
|
13
|
+
glob,
|
|
14
|
+
lchmod,
|
|
15
|
+
lchown,
|
|
16
|
+
link,
|
|
17
|
+
lstat,
|
|
18
|
+
lutimes,
|
|
19
|
+
mkdir,
|
|
20
|
+
mkdtemp,
|
|
21
|
+
open,
|
|
22
|
+
opendir,
|
|
23
|
+
readFile,
|
|
24
|
+
readdir,
|
|
25
|
+
readlink,
|
|
26
|
+
realpath,
|
|
27
|
+
rename,
|
|
28
|
+
rm,
|
|
29
|
+
rmdir,
|
|
30
|
+
stat,
|
|
31
|
+
statfs,
|
|
32
|
+
symlink,
|
|
33
|
+
truncate,
|
|
34
|
+
unlink,
|
|
35
|
+
utimes,
|
|
36
|
+
watch,
|
|
37
|
+
writeFile
|
|
38
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import promises from "node:fs/promises";
|
|
2
|
+
import * as constants from "./internal/fs/constants.mjs";
|
|
3
|
+
export { F_OK, R_OK, W_OK, X_OK } from "./internal/fs/constants.mjs";
|
|
4
|
+
export { promises, constants };
|
|
5
|
+
export * from "./internal/fs/fs.mjs";
|
|
6
|
+
export * from "./internal/fs/classes.mjs";
|
|
7
|
+
declare const _default: {
|
|
8
|
+
constants: any;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import promises from "node:fs/promises";
|
|
2
|
+
import { Dir, Dirent, FileReadStream, FileWriteStream, ReadStream, Stats, WriteStream } from "./internal/fs/classes.mjs";
|
|
3
|
+
import { _toUnixTimestamp, access, accessSync, appendFile, appendFileSync, chmod, chmodSync, chown, chownSync, close, closeSync, copyFile, copyFileSync, cp, cpSync, createReadStream, createWriteStream, exists, existsSync, fchmod, fchmodSync, fchown, fchownSync, fdatasync, fdatasyncSync, fstat, fstatSync, fsync, fsyncSync, ftruncate, ftruncateSync, futimes, futimesSync, glob, lchmod, globSync, lchmodSync, lchown, lchownSync, link, linkSync, lstat, lstatSync, lutimes, lutimesSync, mkdir, mkdirSync, mkdtemp, mkdtempSync, open, openAsBlob, openSync, opendir, opendirSync, read, readFile, readFileSync, readSync, readdir, readdirSync, readlink, readlinkSync, readv, readvSync, realpath, realpathSync, rename, renameSync, rm, rmSync, rmdir, rmdirSync, stat, statSync, statfs, statfsSync, symlink, symlinkSync, truncate, truncateSync, unlink, unlinkSync, unwatchFile, utimes, utimesSync, watch, watchFile, write, writeFile, writeFileSync, writeSync, writev, writevSync } from "./internal/fs/fs.mjs";
|
|
4
|
+
import * as constants from "./internal/fs/constants.mjs";
|
|
5
|
+
import { F_OK, R_OK, W_OK, X_OK } from "./internal/fs/constants.mjs";
|
|
6
|
+
export { F_OK, R_OK, W_OK, X_OK } from "./internal/fs/constants.mjs";
|
|
7
|
+
export { promises, constants };
|
|
8
|
+
export * from "./internal/fs/fs.mjs";
|
|
9
|
+
export * from "./internal/fs/classes.mjs";
|
|
10
|
+
export default {
|
|
11
|
+
F_OK,
|
|
12
|
+
R_OK,
|
|
13
|
+
W_OK,
|
|
14
|
+
X_OK,
|
|
15
|
+
constants,
|
|
16
|
+
promises,
|
|
17
|
+
Dir,
|
|
18
|
+
Dirent,
|
|
19
|
+
FileReadStream,
|
|
20
|
+
FileWriteStream,
|
|
21
|
+
ReadStream,
|
|
22
|
+
Stats,
|
|
23
|
+
WriteStream,
|
|
24
|
+
_toUnixTimestamp,
|
|
25
|
+
access,
|
|
26
|
+
accessSync,
|
|
27
|
+
appendFile,
|
|
28
|
+
appendFileSync,
|
|
29
|
+
chmod,
|
|
30
|
+
chmodSync,
|
|
31
|
+
chown,
|
|
32
|
+
chownSync,
|
|
33
|
+
close,
|
|
34
|
+
closeSync,
|
|
35
|
+
copyFile,
|
|
36
|
+
copyFileSync,
|
|
37
|
+
cp,
|
|
38
|
+
cpSync,
|
|
39
|
+
createReadStream,
|
|
40
|
+
createWriteStream,
|
|
41
|
+
exists,
|
|
42
|
+
existsSync,
|
|
43
|
+
fchmod,
|
|
44
|
+
fchmodSync,
|
|
45
|
+
fchown,
|
|
46
|
+
fchownSync,
|
|
47
|
+
fdatasync,
|
|
48
|
+
fdatasyncSync,
|
|
49
|
+
fstat,
|
|
50
|
+
fstatSync,
|
|
51
|
+
fsync,
|
|
52
|
+
fsyncSync,
|
|
53
|
+
ftruncate,
|
|
54
|
+
ftruncateSync,
|
|
55
|
+
futimes,
|
|
56
|
+
futimesSync,
|
|
57
|
+
glob,
|
|
58
|
+
lchmod,
|
|
59
|
+
globSync,
|
|
60
|
+
lchmodSync,
|
|
61
|
+
lchown,
|
|
62
|
+
lchownSync,
|
|
63
|
+
link,
|
|
64
|
+
linkSync,
|
|
65
|
+
lstat,
|
|
66
|
+
lstatSync,
|
|
67
|
+
lutimes,
|
|
68
|
+
lutimesSync,
|
|
69
|
+
mkdir,
|
|
70
|
+
mkdirSync,
|
|
71
|
+
mkdtemp,
|
|
72
|
+
mkdtempSync,
|
|
73
|
+
open,
|
|
74
|
+
openAsBlob,
|
|
75
|
+
openSync,
|
|
76
|
+
opendir,
|
|
77
|
+
opendirSync,
|
|
78
|
+
read,
|
|
79
|
+
readFile,
|
|
80
|
+
readFileSync,
|
|
81
|
+
readSync,
|
|
82
|
+
readdir,
|
|
83
|
+
readdirSync,
|
|
84
|
+
readlink,
|
|
85
|
+
readlinkSync,
|
|
86
|
+
readv,
|
|
87
|
+
readvSync,
|
|
88
|
+
realpath,
|
|
89
|
+
realpathSync,
|
|
90
|
+
rename,
|
|
91
|
+
renameSync,
|
|
92
|
+
rm,
|
|
93
|
+
rmSync,
|
|
94
|
+
rmdir,
|
|
95
|
+
rmdirSync,
|
|
96
|
+
stat,
|
|
97
|
+
statSync,
|
|
98
|
+
statfs,
|
|
99
|
+
statfsSync,
|
|
100
|
+
symlink,
|
|
101
|
+
symlinkSync,
|
|
102
|
+
truncate,
|
|
103
|
+
truncateSync,
|
|
104
|
+
unlink,
|
|
105
|
+
unlinkSync,
|
|
106
|
+
unwatchFile,
|
|
107
|
+
utimes,
|
|
108
|
+
utimesSync,
|
|
109
|
+
watch,
|
|
110
|
+
watchFile,
|
|
111
|
+
write,
|
|
112
|
+
writeFile,
|
|
113
|
+
writeFileSync,
|
|
114
|
+
writeSync,
|
|
115
|
+
writev,
|
|
116
|
+
writevSync
|
|
117
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// https://nodejs.org/api/http.html
|
|
2
|
+
import type nodeHttp from "node:http";
|
|
3
|
+
import { METHODS, STATUS_CODES, maxHeaderSize } from "./internal/http/constants.mjs";
|
|
4
|
+
export { METHODS, STATUS_CODES, maxHeaderSize };
|
|
5
|
+
export * from "./internal/http/request.mjs";
|
|
6
|
+
export * from "./internal/http/response.mjs";
|
|
7
|
+
export { Agent } from "./internal/http/agent.mjs";
|
|
8
|
+
export declare const createServer: unknown;
|
|
9
|
+
export declare const request: unknown;
|
|
10
|
+
export declare const get: unknown;
|
|
11
|
+
export declare const Server: typeof nodeHttp.Server;
|
|
12
|
+
export declare const OutgoingMessage: typeof nodeHttp.OutgoingMessage;
|
|
13
|
+
export declare const ClientRequest: typeof nodeHttp.ClientRequest;
|
|
14
|
+
export declare const globalAgent: typeof nodeHttp.globalAgent;
|
|
15
|
+
export declare const validateHeaderName: unknown;
|
|
16
|
+
export declare const validateHeaderValue: unknown;
|
|
17
|
+
export declare const setMaxIdleHTTPParsers: unknown;
|
|
18
|
+
export declare const _connectionListener: unknown;
|
|
19
|
+
export declare const WebSocket: unknown;
|
|
20
|
+
export declare const CloseEvent: unknown;
|
|
21
|
+
export declare const MessageEvent: unknown;
|
|
22
|
+
declare const _default: typeof nodeHttp;
|
|
23
|
+
export default _default;
|