@capsule-run/sdk 0.8.4 → 0.8.5
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/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/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createNotImplementedError } from "../../../_internal/utils.mjs";
|
|
2
|
+
import { Channel } from "./channel.mjs";
|
|
3
|
+
export class TracingChannel {
|
|
4
|
+
__unenv__ = true;
|
|
5
|
+
asyncEnd = new Channel("asyncEnd");
|
|
6
|
+
asyncStart = new Channel("asyncStart");
|
|
7
|
+
end = new Channel("end");
|
|
8
|
+
error = new Channel("error");
|
|
9
|
+
start = new Channel("start");
|
|
10
|
+
constructor(nameOrChannels) {
|
|
11
|
+
if (typeof nameOrChannels === "string") {
|
|
12
|
+
this.asyncEnd = new Channel(`trace:${nameOrChannels}:asyncEnd`);
|
|
13
|
+
this.asyncStart = new Channel(`trace:${nameOrChannels}:asyncStart`);
|
|
14
|
+
this.end = new Channel(`trace:${nameOrChannels}:end`);
|
|
15
|
+
this.error = new Channel(`trace:${nameOrChannels}:error`);
|
|
16
|
+
this.start = new Channel(`trace:${nameOrChannels}:start`);
|
|
17
|
+
} else {
|
|
18
|
+
this.asyncStart = nameOrChannels.asyncStart;
|
|
19
|
+
this.asyncEnd = nameOrChannels.asyncEnd;
|
|
20
|
+
this.end = nameOrChannels.end;
|
|
21
|
+
this.error = nameOrChannels.error;
|
|
22
|
+
this.start = nameOrChannels.start;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
subscribe(handlers) {
|
|
26
|
+
this.asyncEnd?.subscribe(handlers.asyncEnd);
|
|
27
|
+
this.asyncStart?.subscribe(handlers.asyncStart);
|
|
28
|
+
this.end?.subscribe(handlers.end);
|
|
29
|
+
this.error?.subscribe(handlers.error);
|
|
30
|
+
this.start?.subscribe(handlers.start);
|
|
31
|
+
}
|
|
32
|
+
unsubscribe(handlers) {
|
|
33
|
+
this.asyncEnd?.unsubscribe(handlers.asyncEnd);
|
|
34
|
+
this.asyncStart?.unsubscribe(handlers.asyncStart);
|
|
35
|
+
this.end?.unsubscribe(handlers.end);
|
|
36
|
+
this.error?.unsubscribe(handlers.error);
|
|
37
|
+
this.start?.unsubscribe(handlers.start);
|
|
38
|
+
}
|
|
39
|
+
traceSync() {
|
|
40
|
+
throw createNotImplementedError("TracingChannel.traceSync");
|
|
41
|
+
}
|
|
42
|
+
tracePromise() {
|
|
43
|
+
throw createNotImplementedError("TracingChannel.tracePromise");
|
|
44
|
+
}
|
|
45
|
+
traceCallback() {
|
|
46
|
+
throw createNotImplementedError("TracingChannel.traceCallback");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// npx -y node@22.14 -e 'const dns=require("dns");console.log(Object.entries(dns).filter(e => ["string", "number"].includes(typeof e[1])).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
|
|
2
|
+
export declare const ADDRCONFIG = 1024;
|
|
3
|
+
export declare const ALL = 256;
|
|
4
|
+
export declare const V4MAPPED = 2048;
|
|
5
|
+
export declare const NODATA = "ENODATA";
|
|
6
|
+
export declare const FORMERR = "EFORMERR";
|
|
7
|
+
export declare const SERVFAIL = "ESERVFAIL";
|
|
8
|
+
export declare const NOTFOUND = "ENOTFOUND";
|
|
9
|
+
export declare const NOTIMP = "ENOTIMP";
|
|
10
|
+
export declare const REFUSED = "EREFUSED";
|
|
11
|
+
export declare const BADQUERY = "EBADQUERY";
|
|
12
|
+
export declare const BADNAME = "EBADNAME";
|
|
13
|
+
export declare const BADFAMILY = "EBADFAMILY";
|
|
14
|
+
export declare const BADRESP = "EBADRESP";
|
|
15
|
+
export declare const CONNREFUSED = "ECONNREFUSED";
|
|
16
|
+
export declare const TIMEOUT = "ETIMEOUT";
|
|
17
|
+
export declare const EOF = "EOF";
|
|
18
|
+
export declare const FILE = "EFILE";
|
|
19
|
+
export declare const NOMEM = "ENOMEM";
|
|
20
|
+
export declare const DESTRUCTION = "EDESTRUCTION";
|
|
21
|
+
export declare const BADSTR = "EBADSTR";
|
|
22
|
+
export declare const BADFLAGS = "EBADFLAGS";
|
|
23
|
+
export declare const NONAME = "ENONAME";
|
|
24
|
+
export declare const BADHINTS = "EBADHINTS";
|
|
25
|
+
export declare const NOTINITIALIZED = "ENOTINITIALIZED";
|
|
26
|
+
export declare const LOADIPHLPAPI = "ELOADIPHLPAPI";
|
|
27
|
+
export declare const ADDRGETNETWORKPARAMS = "EADDRGETNETWORKPARAMS";
|
|
28
|
+
export declare const CANCELLED = "ECANCELLED";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// npx -y node@22.14 -e 'const dns=require("dns");console.log(Object.entries(dns).filter(e => ["string", "number"].includes(typeof e[1])).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
|
|
2
|
+
export const ADDRCONFIG = 1024;
|
|
3
|
+
export const ALL = 256;
|
|
4
|
+
export const V4MAPPED = 2048;
|
|
5
|
+
export const NODATA = "ENODATA";
|
|
6
|
+
export const FORMERR = "EFORMERR";
|
|
7
|
+
export const SERVFAIL = "ESERVFAIL";
|
|
8
|
+
export const NOTFOUND = "ENOTFOUND";
|
|
9
|
+
export const NOTIMP = "ENOTIMP";
|
|
10
|
+
export const REFUSED = "EREFUSED";
|
|
11
|
+
export const BADQUERY = "EBADQUERY";
|
|
12
|
+
export const BADNAME = "EBADNAME";
|
|
13
|
+
export const BADFAMILY = "EBADFAMILY";
|
|
14
|
+
export const BADRESP = "EBADRESP";
|
|
15
|
+
export const CONNREFUSED = "ECONNREFUSED";
|
|
16
|
+
export const TIMEOUT = "ETIMEOUT";
|
|
17
|
+
export const EOF = "EOF";
|
|
18
|
+
export const FILE = "EFILE";
|
|
19
|
+
export const NOMEM = "ENOMEM";
|
|
20
|
+
export const DESTRUCTION = "EDESTRUCTION";
|
|
21
|
+
export const BADSTR = "EBADSTR";
|
|
22
|
+
export const BADFLAGS = "EBADFLAGS";
|
|
23
|
+
export const NONAME = "ENONAME";
|
|
24
|
+
export const BADHINTS = "EBADHINTS";
|
|
25
|
+
export const NOTINITIALIZED = "ENOTINITIALIZED";
|
|
26
|
+
export const LOADIPHLPAPI = "ELOADIPHLPAPI";
|
|
27
|
+
export const ADDRGETNETWORKPARAMS = "EADDRGETNETWORKPARAMS";
|
|
28
|
+
export const CANCELLED = "ECANCELLED";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "node:events";
|
|
2
|
+
import type nodeDomain from "node:domain";
|
|
3
|
+
export declare class Domain extends EventEmitter implements nodeDomain.Domain {
|
|
4
|
+
readonly __unenv__: true;
|
|
5
|
+
members: unknown;
|
|
6
|
+
add();
|
|
7
|
+
enter();
|
|
8
|
+
exit();
|
|
9
|
+
remove();
|
|
10
|
+
bind<T>(callback: T): T;
|
|
11
|
+
intercept<T>(callback: T): T;
|
|
12
|
+
run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createNotImplementedError } from "../../../_internal/utils.mjs";
|
|
2
|
+
import { EventEmitter } from "node:events";
|
|
3
|
+
export class Domain extends EventEmitter {
|
|
4
|
+
__unenv__ = true;
|
|
5
|
+
members = [];
|
|
6
|
+
add() {}
|
|
7
|
+
enter() {}
|
|
8
|
+
exit() {}
|
|
9
|
+
remove() {}
|
|
10
|
+
bind(callback) {
|
|
11
|
+
throw createNotImplementedError("Domain.bind");
|
|
12
|
+
}
|
|
13
|
+
intercept(callback) {
|
|
14
|
+
throw createNotImplementedError("Domain.intercept");
|
|
15
|
+
}
|
|
16
|
+
run(fn, ...args) {
|
|
17
|
+
throw createNotImplementedError("Domain.run");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
+
// copy of this software and associated documentation files (the
|
|
5
|
+
// "Software"), to deal in the Software without restriction, including
|
|
6
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
// following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included
|
|
12
|
+
// in all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
// Based on Node.js EventEmitter implementation
|
|
22
|
+
// https://github.com/nodejs/node/blob/26f2cbdd59957e9a33a94ee2e0fdbeb9aadb0be6/lib/events.js
|
|
23
|
+
import type nodeEvents from "node:events";
|
|
24
|
+
import { EventEmitter as NodeEventEmitter } from "node:events";
|
|
25
|
+
// Types
|
|
26
|
+
type Listener = (...args: any[]) => void;
|
|
27
|
+
// ----------------------------------------------------------------------------
|
|
28
|
+
// EventEmitter
|
|
29
|
+
// ----------------------------------------------------------------------------
|
|
30
|
+
export declare class _EventEmitter implements NodeEventEmitter {
|
|
31
|
+
// Internal state
|
|
32
|
+
_events: any;
|
|
33
|
+
_eventsCount: number;
|
|
34
|
+
_maxListeners: number | undefined;
|
|
35
|
+
// Symbols
|
|
36
|
+
static captureRejectionSymbol;
|
|
37
|
+
static errorMonitor;
|
|
38
|
+
static kMaxEventTargetListeners;
|
|
39
|
+
static kMaxEventTargetListenersWarned;
|
|
40
|
+
// Static utils
|
|
41
|
+
static usingDomains: boolean;
|
|
42
|
+
static get on();
|
|
43
|
+
static get once();
|
|
44
|
+
static get getEventListeners();
|
|
45
|
+
static get getMaxListeners();
|
|
46
|
+
static get addAbortListener();
|
|
47
|
+
static get EventEmitterAsyncResource();
|
|
48
|
+
static get EventEmitter();
|
|
49
|
+
static setMaxListeners(n?, ...eventTargets: (_EventEmitter | EventTarget)[]);
|
|
50
|
+
static listenerCount(emitter: NodeEventEmitter, type: string);
|
|
51
|
+
static init();
|
|
52
|
+
static get captureRejections();
|
|
53
|
+
static set captureRejections(value);
|
|
54
|
+
static get defaultMaxListeners();
|
|
55
|
+
static set defaultMaxListeners(arg);
|
|
56
|
+
// Constructor
|
|
57
|
+
constructor(opts?: any);
|
|
58
|
+
/**
|
|
59
|
+
* Increases the max listeners of the event emitter.
|
|
60
|
+
* @param {number} n
|
|
61
|
+
* @returns {EventEmitter}
|
|
62
|
+
*/
|
|
63
|
+
setMaxListeners(n: number);
|
|
64
|
+
/**
|
|
65
|
+
* Returns the current max listener value for the event emitter.
|
|
66
|
+
* @returns {number}
|
|
67
|
+
*/
|
|
68
|
+
getMaxListeners();
|
|
69
|
+
/**
|
|
70
|
+
* Synchronously calls each of the listeners registered
|
|
71
|
+
* for the event.
|
|
72
|
+
* @param {...any} [args]
|
|
73
|
+
* @returns {boolean}
|
|
74
|
+
*/
|
|
75
|
+
emit(type: string | symbol, ...args: any[]);
|
|
76
|
+
/**
|
|
77
|
+
* Adds a listener to the event emitter.
|
|
78
|
+
* @returns {EventEmitter}
|
|
79
|
+
*/
|
|
80
|
+
addListener(type: string | symbol, listener: Listener);
|
|
81
|
+
on(type: string | symbol, listener: Listener);
|
|
82
|
+
/**
|
|
83
|
+
* Adds the `listener` function to the beginning of
|
|
84
|
+
* the listeners array.
|
|
85
|
+
*/
|
|
86
|
+
prependListener(type: string | symbol, listener: Listener);
|
|
87
|
+
/**
|
|
88
|
+
* Adds a one-time `listener` function to the event emitter.
|
|
89
|
+
*/
|
|
90
|
+
once(type: string | symbol, listener: Listener);
|
|
91
|
+
/**
|
|
92
|
+
* Adds a one-time `listener` function to the beginning of
|
|
93
|
+
* the listeners array.
|
|
94
|
+
*/
|
|
95
|
+
prependOnceListener(type: string | symbol, listener: Listener);
|
|
96
|
+
/**
|
|
97
|
+
* Removes the specified `listener` from the listeners array.
|
|
98
|
+
* @param {string | symbol} type
|
|
99
|
+
* @param {Function} listener
|
|
100
|
+
* @returns {EventEmitter}
|
|
101
|
+
*/
|
|
102
|
+
removeListener(type: string | symbol, listener: Listener);
|
|
103
|
+
off(type: string | symbol, listener: Listener);
|
|
104
|
+
/**
|
|
105
|
+
* Removes all listeners from the event emitter. (Only
|
|
106
|
+
* removes listeners for a specific event name if specified
|
|
107
|
+
* as `type`).
|
|
108
|
+
*/
|
|
109
|
+
removeAllListeners(type?: string | symbol);
|
|
110
|
+
/**
|
|
111
|
+
* Returns a copy of the array of listeners for the event name
|
|
112
|
+
* specified as `type`.
|
|
113
|
+
* @param {string | symbol} type
|
|
114
|
+
* @returns {Function[]}
|
|
115
|
+
*/
|
|
116
|
+
listeners(type: string | symbol);
|
|
117
|
+
/**
|
|
118
|
+
* Returns a copy of the array of listeners and wrappers for
|
|
119
|
+
* the event name specified as `type`.
|
|
120
|
+
* @returns {Function[]}
|
|
121
|
+
*/
|
|
122
|
+
rawListeners(type: string | symbol);
|
|
123
|
+
/**
|
|
124
|
+
* Returns an array listing the events for which
|
|
125
|
+
* the emitter has registered listeners.
|
|
126
|
+
* @returns {any[]}
|
|
127
|
+
*/
|
|
128
|
+
eventNames();
|
|
129
|
+
/**
|
|
130
|
+
* Returns the number of listeners listening to event name
|
|
131
|
+
*/
|
|
132
|
+
listenerCount(eventName: string | symbol, listener?: Listener): number;
|
|
133
|
+
}
|
|
134
|
+
// ----------------------------------------------------------------------------
|
|
135
|
+
// EventEmitterAsyncResource
|
|
136
|
+
// ----------------------------------------------------------------------------
|
|
137
|
+
export declare class EventEmitterAsyncResource extends _EventEmitter {
|
|
138
|
+
/**
|
|
139
|
+
* @param {{
|
|
140
|
+
* name?: string,
|
|
141
|
+
* triggerAsyncId?: number,
|
|
142
|
+
* requireManualDestroy?: boolean,
|
|
143
|
+
* }} [options]
|
|
144
|
+
*/
|
|
145
|
+
constructor(options: any);
|
|
146
|
+
/**
|
|
147
|
+
* @param {symbol,string} event
|
|
148
|
+
* @param {...any} args
|
|
149
|
+
* @returns {boolean}
|
|
150
|
+
*/
|
|
151
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* @returns {void}
|
|
154
|
+
*/
|
|
155
|
+
emitDestroy();
|
|
156
|
+
/**
|
|
157
|
+
* @type {number}
|
|
158
|
+
*/
|
|
159
|
+
get asyncId();
|
|
160
|
+
/**
|
|
161
|
+
* @type {number}
|
|
162
|
+
*/
|
|
163
|
+
get triggerAsyncId();
|
|
164
|
+
/**
|
|
165
|
+
* @type {EventEmitterReferencingAsyncResource}
|
|
166
|
+
*/
|
|
167
|
+
get asyncResource();
|
|
168
|
+
}
|
|
169
|
+
// ----------------------------------------------------------------------------
|
|
170
|
+
// Exported utils
|
|
171
|
+
// ----------------------------------------------------------------------------
|
|
172
|
+
/**
|
|
173
|
+
* Returns an `AsyncIterator` that iterates `event` events.
|
|
174
|
+
* @param {EventEmitter} emitter
|
|
175
|
+
* @param {string | symbol} event
|
|
176
|
+
* @param {{
|
|
177
|
+
* signal: AbortSignal;
|
|
178
|
+
* close?: string[];
|
|
179
|
+
* highWaterMark?: number,
|
|
180
|
+
* lowWaterMark?: number
|
|
181
|
+
* }} [options]
|
|
182
|
+
* @returns {AsyncIterator}
|
|
183
|
+
*/
|
|
184
|
+
export declare const on: typeof nodeEvents.on;
|
|
185
|
+
/**
|
|
186
|
+
* Creates a `Promise` that is fulfilled when the emitter
|
|
187
|
+
* emits the given event.
|
|
188
|
+
* @param {EventEmitter} emitter
|
|
189
|
+
* @param {string} name
|
|
190
|
+
* @param {{ signal: AbortSignal; }} [options]
|
|
191
|
+
* @returns {Promise}
|
|
192
|
+
*/
|
|
193
|
+
export declare const once: typeof nodeEvents.once;
|
|
194
|
+
export declare const addAbortListener: typeof nodeEvents.addAbortListener;
|
|
195
|
+
/**
|
|
196
|
+
* Returns a copy of the array of listeners for the event name
|
|
197
|
+
* specified as `type`.
|
|
198
|
+
* @returns {Function[]}
|
|
199
|
+
*/
|
|
200
|
+
export declare const getEventListeners: typeof nodeEvents.getEventListeners;
|
|
201
|
+
/**
|
|
202
|
+
* Returns the max listeners set.
|
|
203
|
+
* @param {EventEmitter | EventTarget} emitterOrTarget
|
|
204
|
+
* @returns {number}
|
|
205
|
+
*/
|
|
206
|
+
export declare const getMaxListeners: typeof nodeEvents.getMaxListeners;
|
|
207
|
+
export {};
|