@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,6 @@
|
|
|
1
|
+
import type nodeReadline from "node:readline/promises";
|
|
2
|
+
export { Interface } from "../internal/readline/promises/interface.mjs";
|
|
3
|
+
export { Readline } from "../internal/readline/promises/readline.mjs";
|
|
4
|
+
export declare const createInterface: typeof nodeReadline.createInterface;
|
|
5
|
+
declare const _default: typeof nodeReadline;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Interface } from "../internal/readline/promises/interface.mjs";
|
|
2
|
+
import { Readline } from "../internal/readline/promises/readline.mjs";
|
|
3
|
+
export { Interface } from "../internal/readline/promises/interface.mjs";
|
|
4
|
+
export { Readline } from "../internal/readline/promises/readline.mjs";
|
|
5
|
+
export const createInterface = () => new Interface();
|
|
6
|
+
export default {
|
|
7
|
+
Interface,
|
|
8
|
+
Readline,
|
|
9
|
+
createInterface
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// https://nodejs.org/api/readline.html#readlineclearlinestream-dir-callback
|
|
2
|
+
import type nodeReadline from "node:readline";
|
|
3
|
+
import promises from "node:readline/promises";
|
|
4
|
+
export { promises };
|
|
5
|
+
export { Interface } from "./internal/readline/interface.mjs";
|
|
6
|
+
export declare const clearLine: typeof nodeReadline.clearLine;
|
|
7
|
+
export declare const clearScreenDown: typeof nodeReadline.clearScreenDown;
|
|
8
|
+
export declare const createInterface: typeof nodeReadline.createInterface;
|
|
9
|
+
export declare const cursorTo: typeof nodeReadline.cursorTo;
|
|
10
|
+
export declare const emitKeypressEvents: typeof nodeReadline.emitKeypressEvents;
|
|
11
|
+
export declare const moveCursor: typeof nodeReadline.moveCursor;
|
|
12
|
+
declare const _default: {};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import noop from "../mock/noop.mjs";
|
|
2
|
+
import promises from "node:readline/promises";
|
|
3
|
+
import { Interface } from "./internal/readline/interface.mjs";
|
|
4
|
+
export { promises };
|
|
5
|
+
export { Interface } from "./internal/readline/interface.mjs";
|
|
6
|
+
export const clearLine = () => false;
|
|
7
|
+
export const clearScreenDown = () => false;
|
|
8
|
+
export const createInterface = () => new Interface();
|
|
9
|
+
export const cursorTo = () => false;
|
|
10
|
+
export const emitKeypressEvents = noop;
|
|
11
|
+
export const moveCursor = () => false;
|
|
12
|
+
export default {
|
|
13
|
+
clearLine,
|
|
14
|
+
clearScreenDown,
|
|
15
|
+
createInterface,
|
|
16
|
+
cursorTo,
|
|
17
|
+
emitKeypressEvents,
|
|
18
|
+
moveCursor,
|
|
19
|
+
Interface,
|
|
20
|
+
promises
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const writer: unknown;
|
|
2
|
+
export declare const start: unknown;
|
|
3
|
+
export declare const Recoverable: unknown;
|
|
4
|
+
export declare const REPLServer: unknown;
|
|
5
|
+
export declare const REPL_MODE_SLOPPY: unique symbol;
|
|
6
|
+
export declare const REPL_MODE_STRICT: unique symbol;
|
|
7
|
+
export declare const builtinModules: unknown;
|
|
8
|
+
export declare const _builtinLibs: unknown;
|
|
9
|
+
declare const _default: {};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { builtinModules as _builtinModules } from "node:module";
|
|
2
|
+
import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
|
|
3
|
+
export const writer = /* @__PURE__ */ notImplementedClass("repl.writer");
|
|
4
|
+
export const start = /* @__PURE__ */ notImplemented("repl.start");
|
|
5
|
+
export const Recoverable = /* @__PURE__ */ notImplementedClass("repl.Recoverable");
|
|
6
|
+
export const REPLServer = /* @__PURE__ */ notImplementedClass("repl.REPLServer");
|
|
7
|
+
export const REPL_MODE_SLOPPY = /* @__PURE__ */ Symbol("repl-sloppy");
|
|
8
|
+
export const REPL_MODE_STRICT = /* @__PURE__ */ Symbol("repl-strict");
|
|
9
|
+
export const builtinModules = /* @__PURE__ */ _builtinModules.filter((m) => m[0] !== "_");
|
|
10
|
+
export const _builtinLibs = builtinModules;
|
|
11
|
+
export default {
|
|
12
|
+
writer,
|
|
13
|
+
start,
|
|
14
|
+
Recoverable,
|
|
15
|
+
REPLServer,
|
|
16
|
+
builtinModules,
|
|
17
|
+
_builtinLibs,
|
|
18
|
+
REPL_MODE_SLOPPY,
|
|
19
|
+
REPL_MODE_STRICT
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as nodeSqlite from "node:sqlite";
|
|
2
|
+
export declare const DatabaseSync: typeof nodeSqlite.DatabaseSync;
|
|
3
|
+
export declare const StatementSync: typeof nodeSqlite.StatementSync;
|
|
4
|
+
export declare const constants: typeof nodeSqlite.constants;
|
|
5
|
+
declare const _default: {};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { notImplementedClass } from "../_internal/utils.mjs";
|
|
2
|
+
export const DatabaseSync = /* @__PURE__ */ notImplementedClass("sqlite.DatabaseSync");
|
|
3
|
+
export const StatementSync = /* @__PURE__ */ notImplementedClass("sqlite.StatementSync");
|
|
4
|
+
export const constants = {};
|
|
5
|
+
export default {
|
|
6
|
+
DatabaseSync,
|
|
7
|
+
StatementSync,
|
|
8
|
+
constants
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { notImplemented } from "../../_internal/utils.mjs";
|
|
2
|
+
export const arrayBuffer = /* @__PURE__ */ notImplemented("stream.consumers.arrayBuffer");
|
|
3
|
+
export const blob = /* @__PURE__ */ notImplemented("stream.consumers.blob");
|
|
4
|
+
export const buffer = /* @__PURE__ */ notImplemented("stream.consumers.buffer");
|
|
5
|
+
export const text = /* @__PURE__ */ notImplemented("stream.consumers.text");
|
|
6
|
+
export const json = /* @__PURE__ */ notImplemented("stream.consumers.json");
|
|
7
|
+
export default {
|
|
8
|
+
arrayBuffer,
|
|
9
|
+
blob,
|
|
10
|
+
buffer,
|
|
11
|
+
text,
|
|
12
|
+
json
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { notImplemented } from "../../_internal/utils.mjs";
|
|
2
|
+
export const finished = /* @__PURE__ */ notImplemented("stream.promises.finished");
|
|
3
|
+
export const pipeline = /* @__PURE__ */ notImplemented("stream.promises.pipeline");
|
|
4
|
+
export default {
|
|
5
|
+
finished,
|
|
6
|
+
pipeline
|
|
7
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type nodeStreamWeb from "node:stream/web";
|
|
2
|
+
export declare const ReadableStream: unknown;
|
|
3
|
+
export declare const ReadableStreamDefaultReader: unknown;
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
export declare const ReadableStreamBYOBReader: unknown;
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
export declare const ReadableStreamBYOBRequest: unknown;
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
export declare const ReadableByteStreamController: unknown;
|
|
10
|
+
export declare const ReadableStreamDefaultController: unknown;
|
|
11
|
+
export declare const TransformStream: unknown;
|
|
12
|
+
export declare const TransformStreamDefaultController: unknown;
|
|
13
|
+
export declare const WritableStream: unknown;
|
|
14
|
+
export declare const WritableStreamDefaultWriter: unknown;
|
|
15
|
+
export declare const WritableStreamDefaultController: unknown;
|
|
16
|
+
export declare const ByteLengthQueuingStrategy: unknown;
|
|
17
|
+
export declare const CountQueuingStrategy: unknown;
|
|
18
|
+
export declare const TextEncoderStream: unknown;
|
|
19
|
+
export declare const TextDecoderStream: unknown;
|
|
20
|
+
export declare const DecompressionStream: unknown;
|
|
21
|
+
export declare const CompressionStream: unknown;
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
declare const _default: typeof nodeStreamWeb;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { notImplemented } from "../../_internal/utils.mjs";
|
|
2
|
+
export const ReadableStream = globalThis.ReadableStream || /* @__PURE__ */ notImplemented("stream.web.ReadableStream");
|
|
3
|
+
export const ReadableStreamDefaultReader = globalThis.ReadableStreamDefaultReader || /* @__PURE__ */ notImplemented("stream.web.ReadableStreamDefaultReader");
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
export const ReadableStreamBYOBReader = globalThis.ReadableStreamBYOBReader || /* @__PURE__ */ notImplemented("stream.web.ReadableStreamBYOBReader");
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
export const ReadableStreamBYOBRequest = globalThis.ReadableStreamBYOBRequest || /* @__PURE__ */ notImplemented("stream.web.ReadableStreamBYOBRequest");
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
export const ReadableByteStreamController = globalThis.ReadableByteStreamController || /* @__PURE__ */ notImplemented("stream.web.ReadableByteStreamController");
|
|
10
|
+
export const ReadableStreamDefaultController = globalThis.ReadableStreamDefaultController || /* @__PURE__ */ notImplemented("stream.web.ReadableStreamDefaultController");
|
|
11
|
+
export const TransformStream = globalThis.TransformStream || /* @__PURE__ */ notImplemented("stream.web.TransformStream");
|
|
12
|
+
export const TransformStreamDefaultController = globalThis.TransformStreamDefaultController || /* @__PURE__ */ notImplemented("stream.web.TransformStreamDefaultController");
|
|
13
|
+
export const WritableStream = globalThis.WritableStream || /* @__PURE__ */ notImplemented("stream.web.WritableStream");
|
|
14
|
+
export const WritableStreamDefaultWriter = globalThis.WritableStreamDefaultWriter || /* @__PURE__ */ notImplemented("stream.web.WritableStreamDefaultWriter");
|
|
15
|
+
export const WritableStreamDefaultController = globalThis.WritableStreamDefaultController || /* @__PURE__ */ notImplemented("stream.web.WritableStreamDefaultController");
|
|
16
|
+
export const ByteLengthQueuingStrategy = globalThis.ByteLengthQueuingStrategy || /* @__PURE__ */ notImplemented("stream.web.ByteLengthQueuingStrategy");
|
|
17
|
+
export const CountQueuingStrategy = globalThis.CountQueuingStrategy || /* @__PURE__ */ notImplemented("stream.web.CountQueuingStrategy");
|
|
18
|
+
export const TextEncoderStream = globalThis.TextEncoderStream || /* @__PURE__ */ notImplemented("stream.web.TextEncoderStream");
|
|
19
|
+
export const TextDecoderStream = globalThis.TextDecoderStream || /* @__PURE__ */ notImplemented("stream.web.TextDecoderStream");
|
|
20
|
+
export const DecompressionStream = globalThis.DecompressionStream || /* @__PURE__ */ notImplemented("stream.web.DecompressionStream");
|
|
21
|
+
export const CompressionStream = globalThis.DecompressionStream || /* @__PURE__ */ notImplemented("stream.web.CompressionStream");
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
export default {
|
|
24
|
+
ReadableStream,
|
|
25
|
+
ReadableStreamDefaultReader,
|
|
26
|
+
ReadableStreamBYOBReader,
|
|
27
|
+
ReadableStreamBYOBRequest,
|
|
28
|
+
ReadableByteStreamController,
|
|
29
|
+
ReadableStreamDefaultController,
|
|
30
|
+
TransformStream,
|
|
31
|
+
TransformStreamDefaultController,
|
|
32
|
+
WritableStream,
|
|
33
|
+
WritableStreamDefaultWriter,
|
|
34
|
+
WritableStreamDefaultController,
|
|
35
|
+
ByteLengthQueuingStrategy,
|
|
36
|
+
CountQueuingStrategy,
|
|
37
|
+
TextEncoderStream,
|
|
38
|
+
TextDecoderStream,
|
|
39
|
+
DecompressionStream,
|
|
40
|
+
CompressionStream
|
|
41
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// https://nodejs.org/api/stream.html
|
|
2
|
+
import type nodeStream from "node:stream";
|
|
3
|
+
import promises from "node:stream/promises";
|
|
4
|
+
export { promises };
|
|
5
|
+
export { Readable } from "./internal/stream/readable.mjs";
|
|
6
|
+
export { Writable } from "./internal/stream/writable.mjs";
|
|
7
|
+
export { Duplex } from "./internal/stream/duplex.mjs";
|
|
8
|
+
export { Transform } from "./internal/stream/transform.mjs";
|
|
9
|
+
export declare const Stream: nodeStream.Stream;
|
|
10
|
+
export declare const PassThrough: nodeStream.PassThrough;
|
|
11
|
+
export declare const pipeline: any;
|
|
12
|
+
export declare const finished: any;
|
|
13
|
+
export declare const addAbortSignal: unknown;
|
|
14
|
+
export declare const isDisturbed: unknown;
|
|
15
|
+
export declare const isReadable: unknown;
|
|
16
|
+
export declare const compose: unknown;
|
|
17
|
+
export declare const isErrored: unknown;
|
|
18
|
+
export declare const destroy: unknown;
|
|
19
|
+
export declare const _isUint8Array: unknown;
|
|
20
|
+
export declare const _uint8ArrayToBuffer: unknown;
|
|
21
|
+
export declare const _isArrayBufferView: unknown;
|
|
22
|
+
export declare const duplexPair: unknown;
|
|
23
|
+
export declare const getDefaultHighWaterMark: unknown;
|
|
24
|
+
export declare const isDestroyed: unknown;
|
|
25
|
+
export declare const isWritable: unknown;
|
|
26
|
+
export declare const setDefaultHighWaterMark: unknown;
|
|
27
|
+
declare const _default: typeof nodeStream & {
|
|
28
|
+
isDisturbed: any;
|
|
29
|
+
isReadable: any;
|
|
30
|
+
compose: any;
|
|
31
|
+
isErrored: any;
|
|
32
|
+
destroy: any;
|
|
33
|
+
_isUint8Array: any;
|
|
34
|
+
_uint8ArrayToBuffer: any;
|
|
35
|
+
_isArrayBufferView: any;
|
|
36
|
+
duplexPair: any;
|
|
37
|
+
getDefaultHighWaterMark: any;
|
|
38
|
+
isDestroyed: any;
|
|
39
|
+
isWritable: any;
|
|
40
|
+
setDefaultHighWaterMark: any;
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
|
|
2
|
+
import { Readable } from "./internal/stream/readable.mjs";
|
|
3
|
+
import { Writable } from "./internal/stream/writable.mjs";
|
|
4
|
+
import { Duplex } from "./internal/stream/duplex.mjs";
|
|
5
|
+
import { Transform } from "./internal/stream/transform.mjs";
|
|
6
|
+
import promises from "node:stream/promises";
|
|
7
|
+
export { promises };
|
|
8
|
+
export { Readable } from "./internal/stream/readable.mjs";
|
|
9
|
+
export { Writable } from "./internal/stream/writable.mjs";
|
|
10
|
+
export { Duplex } from "./internal/stream/duplex.mjs";
|
|
11
|
+
export { Transform } from "./internal/stream/transform.mjs";
|
|
12
|
+
export const Stream = /* @__PURE__ */ notImplementedClass("stream.Stream");
|
|
13
|
+
export const PassThrough = /* @__PURE__ */ notImplementedClass("PassThrough");
|
|
14
|
+
export const pipeline = /* @__PURE__ */ notImplemented("stream.pipeline");
|
|
15
|
+
export const finished = /* @__PURE__ */ notImplemented("stream.finished");
|
|
16
|
+
export const addAbortSignal = /* @__PURE__ */ notImplemented("stream.addAbortSignal");
|
|
17
|
+
export const isDisturbed = /* @__PURE__ */ notImplemented("stream.isDisturbed");
|
|
18
|
+
export const isReadable = /* @__PURE__ */ notImplemented("stream.isReadable");
|
|
19
|
+
export const compose = /* @__PURE__ */ notImplemented("stream.compose");
|
|
20
|
+
export const isErrored = /* @__PURE__ */ notImplemented("stream.isErrored");
|
|
21
|
+
export const destroy = /* @__PURE__ */ notImplemented("stream.destroy");
|
|
22
|
+
export const _isUint8Array = /* @__PURE__ */ notImplemented("stream._isUint8Array");
|
|
23
|
+
export const _uint8ArrayToBuffer = /* @__PURE__ */ notImplemented("stream._uint8ArrayToBuffer");
|
|
24
|
+
export const _isArrayBufferView = /* @__PURE__ */ notImplemented("stream._isArrayBufferView");
|
|
25
|
+
export const duplexPair = /* @__PURE__ */ notImplemented("stream.duplexPair");
|
|
26
|
+
export const getDefaultHighWaterMark = /* @__PURE__ */ notImplemented("stream.getDefaultHighWaterMark");
|
|
27
|
+
export const isDestroyed = /* @__PURE__ */ notImplemented("stream.isDestroyed");
|
|
28
|
+
export const isWritable = /* @__PURE__ */ notImplemented("stream.isWritable");
|
|
29
|
+
export const setDefaultHighWaterMark = /* @__PURE__ */ notImplemented("stream.setDefaultHighWaterMark");
|
|
30
|
+
export default {
|
|
31
|
+
Readable,
|
|
32
|
+
Writable,
|
|
33
|
+
Duplex,
|
|
34
|
+
Transform,
|
|
35
|
+
Stream,
|
|
36
|
+
PassThrough,
|
|
37
|
+
pipeline,
|
|
38
|
+
finished,
|
|
39
|
+
addAbortSignal,
|
|
40
|
+
promises,
|
|
41
|
+
isDisturbed,
|
|
42
|
+
isReadable,
|
|
43
|
+
compose,
|
|
44
|
+
_uint8ArrayToBuffer,
|
|
45
|
+
isErrored,
|
|
46
|
+
destroy,
|
|
47
|
+
_isUint8Array,
|
|
48
|
+
_isArrayBufferView,
|
|
49
|
+
duplexPair,
|
|
50
|
+
getDefaultHighWaterMark,
|
|
51
|
+
isDestroyed,
|
|
52
|
+
isWritable,
|
|
53
|
+
setDefaultHighWaterMark
|
|
54
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { setTimeoutFallbackPromises as setTimeout } from "../internal/timers/set-timeout.mjs";
|
|
2
|
+
export { setIntervalFallbackPromises as setInterval } from "../internal/timers/set-interval.mjs";
|
|
3
|
+
export { setImmediateFallbackPromises as setImmediate } from "../internal/timers/set-immediate.mjs";
|
|
4
|
+
export declare const scheduler: unknown;
|
|
5
|
+
declare const _default: {};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Scheduler } from "../internal/timers/scheduler.mjs";
|
|
2
|
+
import { setTimeoutFallbackPromises } from "../internal/timers/set-timeout.mjs";
|
|
3
|
+
import { setIntervalFallbackPromises } from "../internal/timers/set-interval.mjs";
|
|
4
|
+
import { setImmediateFallbackPromises } from "../internal/timers/set-immediate.mjs";
|
|
5
|
+
export { setTimeoutFallbackPromises as setTimeout } from "../internal/timers/set-timeout.mjs";
|
|
6
|
+
export { setIntervalFallbackPromises as setInterval } from "../internal/timers/set-interval.mjs";
|
|
7
|
+
export { setImmediateFallbackPromises as setImmediate } from "../internal/timers/set-immediate.mjs";
|
|
8
|
+
export const scheduler = new Scheduler();
|
|
9
|
+
export default {
|
|
10
|
+
scheduler,
|
|
11
|
+
setImmediate: setImmediateFallbackPromises,
|
|
12
|
+
setInterval: setIntervalFallbackPromises,
|
|
13
|
+
setTimeout: setTimeoutFallbackPromises
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type nodeTimers from "node:timers";
|
|
2
|
+
import promises from "node:timers/promises";
|
|
3
|
+
export { promises };
|
|
4
|
+
export declare const clearImmediate: typeof nodeTimers.clearImmediate;
|
|
5
|
+
export declare const clearInterval: typeof nodeTimers.clearInterval;
|
|
6
|
+
export declare const clearTimeout: typeof nodeTimers.clearTimeout;
|
|
7
|
+
export declare const setImmediate: typeof nodeTimers.setImmediate;
|
|
8
|
+
export declare const setTimeout: typeof nodeTimers.setTimeout;
|
|
9
|
+
export declare const setInterval: typeof nodeTimers.setInterval;
|
|
10
|
+
export declare const active: unknown;
|
|
11
|
+
export declare const _unrefActive: unknown;
|
|
12
|
+
export declare const enroll: unknown;
|
|
13
|
+
export declare const unenroll: unknown;
|
|
14
|
+
declare const _default: {};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { notImplemented } from "../_internal/utils.mjs";
|
|
2
|
+
import noop from "../mock/noop.mjs";
|
|
3
|
+
import promises from "node:timers/promises";
|
|
4
|
+
import { setTimeoutFallback } from "./internal/timers/set-timeout.mjs";
|
|
5
|
+
import { setImmediateFallback, clearImmediateFallback } from "./internal/timers/set-immediate.mjs";
|
|
6
|
+
import { setIntervalFallback } from "./internal/timers/set-interval.mjs";
|
|
7
|
+
export { promises };
|
|
8
|
+
export const clearImmediate = globalThis.clearImmediate?.bind(globalThis) || clearImmediateFallback;
|
|
9
|
+
export const clearInterval = globalThis.clearInterval?.bind(globalThis) || noop;
|
|
10
|
+
export const clearTimeout = globalThis.clearTimeout?.bind(globalThis) || noop;
|
|
11
|
+
export const setImmediate = globalThis.setImmediate?.bind(globalThis) || setImmediateFallback;
|
|
12
|
+
export const setTimeout = globalThis.setTimeout?.bind(globalThis) || setTimeoutFallback;
|
|
13
|
+
export const setInterval = globalThis.setInterval?.bind(globalThis) || setIntervalFallback;
|
|
14
|
+
export const active = function active(timeout) {
|
|
15
|
+
timeout?.refresh?.();
|
|
16
|
+
};
|
|
17
|
+
export const _unrefActive = active;
|
|
18
|
+
export const enroll = /* @__PURE__ */ notImplemented("timers.enroll");
|
|
19
|
+
export const unenroll = /* @__PURE__ */ notImplemented("timers.unenroll");
|
|
20
|
+
export default {
|
|
21
|
+
_unrefActive,
|
|
22
|
+
active,
|
|
23
|
+
clearImmediate,
|
|
24
|
+
clearInterval,
|
|
25
|
+
clearTimeout,
|
|
26
|
+
enroll,
|
|
27
|
+
promises,
|
|
28
|
+
setImmediate,
|
|
29
|
+
setInterval,
|
|
30
|
+
setTimeout,
|
|
31
|
+
unenroll
|
|
32
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type nodeTls from "node:tls";
|
|
2
|
+
export * from "./internal/tls/constants.mjs";
|
|
3
|
+
export { TLSSocket } from "./internal/tls/tls-socket.mjs";
|
|
4
|
+
export { Server } from "./internal/tls/server.mjs";
|
|
5
|
+
export { SecureContext } from "./internal/tls/secure-context.mjs";
|
|
6
|
+
export declare const connect: typeof nodeTls.connect;
|
|
7
|
+
export declare const createServer: typeof nodeTls.createServer;
|
|
8
|
+
export declare const checkServerIdentity: typeof nodeTls.checkServerIdentity;
|
|
9
|
+
export declare const convertALPNProtocols: unknown;
|
|
10
|
+
export declare const createSecureContext: typeof nodeTls.createSecureContext;
|
|
11
|
+
export declare const createSecurePair: typeof nodeTls.createSecurePair;
|
|
12
|
+
export declare const getCiphers: typeof nodeTls.getCiphers;
|
|
13
|
+
export declare const rootCertificates: typeof nodeTls.rootCertificates;
|
|
14
|
+
declare const _default: typeof nodeTls;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { notImplemented } from "../_internal/utils.mjs";
|
|
2
|
+
import { TLSSocket } from "./internal/tls/tls-socket.mjs";
|
|
3
|
+
import { Server } from "./internal/tls/server.mjs";
|
|
4
|
+
import { SecureContext } from "./internal/tls/secure-context.mjs";
|
|
5
|
+
// prettier-ignore
|
|
6
|
+
import { CLIENT_RENEG_LIMIT, CLIENT_RENEG_WINDOW, DEFAULT_CIPHERS, DEFAULT_ECDH_CURVE, DEFAULT_MAX_VERSION, DEFAULT_MIN_VERSION } from "./internal/tls/constants.mjs";
|
|
7
|
+
export * from "./internal/tls/constants.mjs";
|
|
8
|
+
export { TLSSocket } from "./internal/tls/tls-socket.mjs";
|
|
9
|
+
export { Server } from "./internal/tls/server.mjs";
|
|
10
|
+
export { SecureContext } from "./internal/tls/secure-context.mjs";
|
|
11
|
+
export const connect = function connect() {
|
|
12
|
+
return new TLSSocket();
|
|
13
|
+
};
|
|
14
|
+
export const createServer = function createServer() {
|
|
15
|
+
return new Server();
|
|
16
|
+
};
|
|
17
|
+
export const checkServerIdentity = /* @__PURE__ */ notImplemented("tls.checkServerIdentity");
|
|
18
|
+
export const convertALPNProtocols = /* @__PURE__ */ notImplemented("tls.convertALPNProtocols");
|
|
19
|
+
export const createSecureContext = /* @__PURE__ */ notImplemented("tls.createSecureContext");
|
|
20
|
+
export const createSecurePair = /* @__PURE__ */ notImplemented("tls.createSecurePair");
|
|
21
|
+
export const getCiphers = /* @__PURE__ */ notImplemented("tls.getCiphers");
|
|
22
|
+
export const rootCertificates = [];
|
|
23
|
+
export default {
|
|
24
|
+
CLIENT_RENEG_LIMIT,
|
|
25
|
+
CLIENT_RENEG_WINDOW,
|
|
26
|
+
DEFAULT_CIPHERS,
|
|
27
|
+
DEFAULT_ECDH_CURVE,
|
|
28
|
+
DEFAULT_MAX_VERSION,
|
|
29
|
+
DEFAULT_MIN_VERSION,
|
|
30
|
+
SecureContext,
|
|
31
|
+
Server,
|
|
32
|
+
TLSSocket,
|
|
33
|
+
checkServerIdentity,
|
|
34
|
+
connect,
|
|
35
|
+
convertALPNProtocols,
|
|
36
|
+
createSecureContext,
|
|
37
|
+
createSecurePair,
|
|
38
|
+
createServer,
|
|
39
|
+
getCiphers,
|
|
40
|
+
rootCertificates
|
|
41
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type nodeTraceEvents from "node:trace_events";
|
|
2
|
+
export declare const createTracing: typeof nodeTraceEvents.createTracing;
|
|
3
|
+
export declare const getEnabledCategories: typeof nodeTraceEvents.getEnabledCategories;
|
|
4
|
+
declare const _default: {};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type nodeTty from "node:tty";
|
|
2
|
+
export { ReadStream } from "./internal/tty/read-stream.mjs";
|
|
3
|
+
export { WriteStream } from "./internal/tty/write-stream.mjs";
|
|
4
|
+
export declare const isatty: typeof nodeTty.isatty;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
ReadStream: typeof nodeTty.ReadStream;
|
|
7
|
+
WriteStream: typeof nodeTty.WriteStream;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReadStream } from "./internal/tty/read-stream.mjs";
|
|
2
|
+
import { WriteStream } from "./internal/tty/write-stream.mjs";
|
|
3
|
+
export { ReadStream } from "./internal/tty/read-stream.mjs";
|
|
4
|
+
export { WriteStream } from "./internal/tty/write-stream.mjs";
|
|
5
|
+
export const isatty = function() {
|
|
6
|
+
return false;
|
|
7
|
+
};
|
|
8
|
+
export default {
|
|
9
|
+
ReadStream,
|
|
10
|
+
WriteStream,
|
|
11
|
+
isatty
|
|
12
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Source: https://github.com/nodejs/node/blob/v22.7.0/lib/url.js
|
|
2
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
5
|
+
// copy of this software and associated documentation files (the
|
|
6
|
+
// "Software"), to deal in the Software without restriction, including
|
|
7
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
8
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
9
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
10
|
+
// following conditions:
|
|
11
|
+
//
|
|
12
|
+
// The above copyright notice and this permission notice shall be included
|
|
13
|
+
// in all copies or substantial portions of the Software.
|
|
14
|
+
//
|
|
15
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
16
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
18
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
19
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
20
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
21
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
import type nodeUrl from "node:url";
|
|
23
|
+
import * as querystring from "node:querystring";
|
|
24
|
+
import { fileURLToPath, urlToHttpOptions } from "./internal/url/url.mjs";
|
|
25
|
+
declare class Url implements nodeUrl.Url {
|
|
26
|
+
auth: string | null;
|
|
27
|
+
hash: string | null;
|
|
28
|
+
host: string | null;
|
|
29
|
+
hostname: string | null;
|
|
30
|
+
href: string;
|
|
31
|
+
path: string | null;
|
|
32
|
+
pathname: string | null;
|
|
33
|
+
protocol: string | null;
|
|
34
|
+
search: string | null;
|
|
35
|
+
slashes: boolean | null;
|
|
36
|
+
port: string | null;
|
|
37
|
+
query: string | querystring.ParsedUrlQuery | null;
|
|
38
|
+
parse(url: string, parseQueryString?: boolean, slashesDenoteHost?: boolean);
|
|
39
|
+
format();
|
|
40
|
+
resolve(relative: string);
|
|
41
|
+
resolveObject(relative: nodeUrl.Url);
|
|
42
|
+
parseHost();
|
|
43
|
+
}
|
|
44
|
+
declare function urlParse(url: string | Url, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url;
|
|
45
|
+
// Format a parsed object into a url string
|
|
46
|
+
declare function urlFormat(urlObject: string | Url, options: nodeUrl.URLFormatOptions);
|
|
47
|
+
declare function urlResolve(source: string, relative: string);
|
|
48
|
+
declare function urlResolveObject(source: string, relative: nodeUrl.Url);
|
|
49
|
+
// When used internally, we are not obligated to associate TypeError with
|
|
50
|
+
// this function, so non-strings can be rejected by underlying implementation.
|
|
51
|
+
// Public API has to validate input and throw appropriate error.
|
|
52
|
+
declare function pathToFileURL(path: string, options?: {
|
|
53
|
+
windows?: boolean;
|
|
54
|
+
});
|
|
55
|
+
declare const URL: unknown;
|
|
56
|
+
declare const URLSearchParams: unknown;
|
|
57
|
+
declare const domainToASCII: unknown;
|
|
58
|
+
declare const domainToUnicode: unknown;
|
|
59
|
+
export { Url, urlParse as parse, urlResolve as resolve, urlResolveObject as resolveObject, urlFormat as format, URL, URLSearchParams, domainToASCII, domainToUnicode, pathToFileURL, fileURLToPath, urlToHttpOptions };
|
|
60
|
+
declare const _default: {};
|
|
61
|
+
export default _default;
|