@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,113 @@
|
|
|
1
|
+
import { EventEmitter } from "node:events";
|
|
2
|
+
export declare class Process extends EventEmitter implements NodeJS.Process {
|
|
3
|
+
#private;
|
|
4
|
+
env: NodeJS.ProcessEnv;
|
|
5
|
+
hrtime: NodeJS.Process["hrtime"];
|
|
6
|
+
nextTick: NodeJS.Process["nextTick"];
|
|
7
|
+
constructor(impl: {
|
|
8
|
+
env: NodeJS.ProcessEnv;
|
|
9
|
+
hrtime: NodeJS.Process["hrtime"];
|
|
10
|
+
nextTick: NodeJS.Process["nextTick"];
|
|
11
|
+
});
|
|
12
|
+
// --- event emitter ---
|
|
13
|
+
emitWarning(warning: unknown, type?: unknown, code?: unknown): void;
|
|
14
|
+
emit(...args: any[]): any;
|
|
15
|
+
listeners(eventName: string | symbol): any;
|
|
16
|
+
get stdin();
|
|
17
|
+
get stdout();
|
|
18
|
+
get stderr();
|
|
19
|
+
chdir(cwd: string): void;
|
|
20
|
+
cwd(): string;
|
|
21
|
+
// --- dummy props and getters ---
|
|
22
|
+
arch: NodeJS.Architecture;
|
|
23
|
+
platform: NodeJS.Platform;
|
|
24
|
+
argv: string[];
|
|
25
|
+
argv0: string;
|
|
26
|
+
execArgv: string[];
|
|
27
|
+
execPath: string;
|
|
28
|
+
title: string;
|
|
29
|
+
pid: number;
|
|
30
|
+
ppid: number;
|
|
31
|
+
get version(): string;
|
|
32
|
+
get versions(): NodeJS.Process["versions"];
|
|
33
|
+
get allowedNodeEnvironmentFlags();
|
|
34
|
+
get sourceMapsEnabled(): boolean;
|
|
35
|
+
get debugPort(): number;
|
|
36
|
+
get throwDeprecation(): boolean;
|
|
37
|
+
get traceDeprecation(): boolean;
|
|
38
|
+
get features(): NodeJS.Process["features"];
|
|
39
|
+
get release(): NodeJS.Process["release"];
|
|
40
|
+
get connected(): boolean;
|
|
41
|
+
get config(): NodeJS.Process["config"];
|
|
42
|
+
get moduleLoadList(): unknown;
|
|
43
|
+
constrainedMemory(): number;
|
|
44
|
+
availableMemory(): number;
|
|
45
|
+
uptime(): number;
|
|
46
|
+
resourceUsage(): NodeJS.ResourceUsage;
|
|
47
|
+
// --- noop methods ---
|
|
48
|
+
ref();
|
|
49
|
+
unref();
|
|
50
|
+
// --- unimplemented methods ---
|
|
51
|
+
umask(): number;
|
|
52
|
+
getBuiltinModule(): any;
|
|
53
|
+
getActiveResourcesInfo(): string[];
|
|
54
|
+
exit(): never;
|
|
55
|
+
reallyExit(): never;
|
|
56
|
+
kill(): true;
|
|
57
|
+
abort(): never;
|
|
58
|
+
dlopen(): void;
|
|
59
|
+
setSourceMapsEnabled(): void;
|
|
60
|
+
loadEnvFile(): void;
|
|
61
|
+
disconnect(): void;
|
|
62
|
+
cpuUsage(): NodeJS.CpuUsage;
|
|
63
|
+
setUncaughtExceptionCaptureCallback(): void;
|
|
64
|
+
hasUncaughtExceptionCaptureCallback(): boolean;
|
|
65
|
+
initgroups(): void;
|
|
66
|
+
openStdin(): NodeJS.Socket;
|
|
67
|
+
assert();
|
|
68
|
+
binding();
|
|
69
|
+
// --- attached interfaces ---
|
|
70
|
+
permission: NodeJS.ProcessPermission;
|
|
71
|
+
report: NodeJS.ProcessReport;
|
|
72
|
+
finalization: NodeJS.Process["finalization"];
|
|
73
|
+
memoryUsage;
|
|
74
|
+
// --- undefined props ---
|
|
75
|
+
mainModule?: NodeJS.Module | undefined;
|
|
76
|
+
domain: undefined;
|
|
77
|
+
// optional
|
|
78
|
+
send: undefined;
|
|
79
|
+
exitCode: undefined;
|
|
80
|
+
channel: undefined;
|
|
81
|
+
getegid: undefined;
|
|
82
|
+
geteuid: undefined;
|
|
83
|
+
getgid: undefined;
|
|
84
|
+
getgroups: undefined;
|
|
85
|
+
getuid: undefined;
|
|
86
|
+
setegid: undefined;
|
|
87
|
+
seteuid: undefined;
|
|
88
|
+
setgid: undefined;
|
|
89
|
+
setgroups: undefined;
|
|
90
|
+
setuid: undefined;
|
|
91
|
+
// internals
|
|
92
|
+
_events: undefined;
|
|
93
|
+
_eventsCount: undefined;
|
|
94
|
+
_exiting: undefined;
|
|
95
|
+
_maxListeners: undefined;
|
|
96
|
+
_debugEnd: undefined;
|
|
97
|
+
_debugProcess: undefined;
|
|
98
|
+
_fatalException: undefined;
|
|
99
|
+
_getActiveHandles: undefined;
|
|
100
|
+
_getActiveRequests: undefined;
|
|
101
|
+
_kill: undefined;
|
|
102
|
+
_preload_modules: undefined;
|
|
103
|
+
_rawDebug: undefined;
|
|
104
|
+
_startProfilerIdleNotifier: undefined;
|
|
105
|
+
_stopProfilerIdleNotifier: undefined;
|
|
106
|
+
_tickCallback: undefined;
|
|
107
|
+
_disconnect: undefined;
|
|
108
|
+
_handleQueue: undefined;
|
|
109
|
+
_pendingMessage: undefined;
|
|
110
|
+
_channel: undefined;
|
|
111
|
+
_send: undefined;
|
|
112
|
+
_linkedBinding: undefined;
|
|
113
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { EventEmitter } from "node:events";
|
|
2
|
+
import { ReadStream, WriteStream } from "node:tty";
|
|
3
|
+
import { notImplemented, createNotImplementedError } from "../../../_internal/utils.mjs";
|
|
4
|
+
// node-version.ts is generated at build time
|
|
5
|
+
import { NODE_VERSION } from "./node-version.mjs";
|
|
6
|
+
export class Process extends EventEmitter {
|
|
7
|
+
env;
|
|
8
|
+
hrtime;
|
|
9
|
+
nextTick;
|
|
10
|
+
constructor(impl) {
|
|
11
|
+
super();
|
|
12
|
+
this.env = impl.env;
|
|
13
|
+
this.hrtime = impl.hrtime;
|
|
14
|
+
this.nextTick = impl.nextTick;
|
|
15
|
+
for (const prop of [...Object.getOwnPropertyNames(Process.prototype), ...Object.getOwnPropertyNames(EventEmitter.prototype)]) {
|
|
16
|
+
const value = this[prop];
|
|
17
|
+
if (typeof value === "function") {
|
|
18
|
+
this[prop] = value.bind(this);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// --- event emitter ---
|
|
23
|
+
emitWarning(warning, type, code) {
|
|
24
|
+
console.warn(`${code ? `[${code}] ` : ""}${type ? `${type}: ` : ""}${warning}`);
|
|
25
|
+
}
|
|
26
|
+
emit(...args) {
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
return super.emit(...args);
|
|
29
|
+
}
|
|
30
|
+
listeners(eventName) {
|
|
31
|
+
return super.listeners(eventName);
|
|
32
|
+
}
|
|
33
|
+
// --- stdio (lazy initializers) ---
|
|
34
|
+
#stdin;
|
|
35
|
+
#stdout;
|
|
36
|
+
#stderr;
|
|
37
|
+
get stdin() {
|
|
38
|
+
return this.#stdin ??= new ReadStream(0);
|
|
39
|
+
}
|
|
40
|
+
get stdout() {
|
|
41
|
+
return this.#stdout ??= new WriteStream(1);
|
|
42
|
+
}
|
|
43
|
+
get stderr() {
|
|
44
|
+
return this.#stderr ??= new WriteStream(2);
|
|
45
|
+
}
|
|
46
|
+
// --- cwd ---
|
|
47
|
+
#cwd = "/";
|
|
48
|
+
chdir(cwd) {
|
|
49
|
+
this.#cwd = cwd;
|
|
50
|
+
}
|
|
51
|
+
cwd() {
|
|
52
|
+
return this.#cwd;
|
|
53
|
+
}
|
|
54
|
+
// --- dummy props and getters ---
|
|
55
|
+
arch = "";
|
|
56
|
+
platform = "";
|
|
57
|
+
argv = [];
|
|
58
|
+
argv0 = "";
|
|
59
|
+
execArgv = [];
|
|
60
|
+
execPath = "";
|
|
61
|
+
title = "";
|
|
62
|
+
pid = 200;
|
|
63
|
+
ppid = 100;
|
|
64
|
+
get version() {
|
|
65
|
+
return `v${NODE_VERSION}`;
|
|
66
|
+
}
|
|
67
|
+
get versions() {
|
|
68
|
+
return { node: NODE_VERSION };
|
|
69
|
+
}
|
|
70
|
+
get allowedNodeEnvironmentFlags() {
|
|
71
|
+
return new Set();
|
|
72
|
+
}
|
|
73
|
+
get sourceMapsEnabled() {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
get debugPort() {
|
|
77
|
+
return 0;
|
|
78
|
+
}
|
|
79
|
+
get throwDeprecation() {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
get traceDeprecation() {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
get features() {
|
|
86
|
+
return {};
|
|
87
|
+
}
|
|
88
|
+
get release() {
|
|
89
|
+
return {};
|
|
90
|
+
}
|
|
91
|
+
get connected() {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
get config() {
|
|
95
|
+
return {};
|
|
96
|
+
}
|
|
97
|
+
get moduleLoadList() {
|
|
98
|
+
return [];
|
|
99
|
+
}
|
|
100
|
+
constrainedMemory() {
|
|
101
|
+
return 0;
|
|
102
|
+
}
|
|
103
|
+
availableMemory() {
|
|
104
|
+
return 0;
|
|
105
|
+
}
|
|
106
|
+
uptime() {
|
|
107
|
+
return 0;
|
|
108
|
+
}
|
|
109
|
+
resourceUsage() {
|
|
110
|
+
return {};
|
|
111
|
+
}
|
|
112
|
+
// --- noop methods ---
|
|
113
|
+
ref() {
|
|
114
|
+
// noop
|
|
115
|
+
}
|
|
116
|
+
unref() {
|
|
117
|
+
// noop
|
|
118
|
+
}
|
|
119
|
+
// --- unimplemented methods ---
|
|
120
|
+
umask() {
|
|
121
|
+
throw createNotImplementedError("process.umask");
|
|
122
|
+
}
|
|
123
|
+
getBuiltinModule() {
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
getActiveResourcesInfo() {
|
|
127
|
+
throw createNotImplementedError("process.getActiveResourcesInfo");
|
|
128
|
+
}
|
|
129
|
+
exit() {
|
|
130
|
+
throw createNotImplementedError("process.exit");
|
|
131
|
+
}
|
|
132
|
+
reallyExit() {
|
|
133
|
+
throw createNotImplementedError("process.reallyExit");
|
|
134
|
+
}
|
|
135
|
+
kill() {
|
|
136
|
+
throw createNotImplementedError("process.kill");
|
|
137
|
+
}
|
|
138
|
+
abort() {
|
|
139
|
+
throw createNotImplementedError("process.abort");
|
|
140
|
+
}
|
|
141
|
+
dlopen() {
|
|
142
|
+
throw createNotImplementedError("process.dlopen");
|
|
143
|
+
}
|
|
144
|
+
setSourceMapsEnabled() {
|
|
145
|
+
throw createNotImplementedError("process.setSourceMapsEnabled");
|
|
146
|
+
}
|
|
147
|
+
loadEnvFile() {
|
|
148
|
+
throw createNotImplementedError("process.loadEnvFile");
|
|
149
|
+
}
|
|
150
|
+
disconnect() {
|
|
151
|
+
throw createNotImplementedError("process.disconnect");
|
|
152
|
+
}
|
|
153
|
+
cpuUsage() {
|
|
154
|
+
throw createNotImplementedError("process.cpuUsage");
|
|
155
|
+
}
|
|
156
|
+
setUncaughtExceptionCaptureCallback() {
|
|
157
|
+
throw createNotImplementedError("process.setUncaughtExceptionCaptureCallback");
|
|
158
|
+
}
|
|
159
|
+
hasUncaughtExceptionCaptureCallback() {
|
|
160
|
+
throw createNotImplementedError("process.hasUncaughtExceptionCaptureCallback");
|
|
161
|
+
}
|
|
162
|
+
initgroups() {
|
|
163
|
+
throw createNotImplementedError("process.initgroups");
|
|
164
|
+
}
|
|
165
|
+
openStdin() {
|
|
166
|
+
throw createNotImplementedError("process.openStdin");
|
|
167
|
+
}
|
|
168
|
+
assert() {
|
|
169
|
+
throw createNotImplementedError("process.assert");
|
|
170
|
+
}
|
|
171
|
+
binding() {
|
|
172
|
+
throw createNotImplementedError("process.binding");
|
|
173
|
+
}
|
|
174
|
+
// --- attached interfaces ---
|
|
175
|
+
permission = { has: /* @__PURE__ */ notImplemented("process.permission.has") };
|
|
176
|
+
report = {
|
|
177
|
+
directory: "",
|
|
178
|
+
filename: "",
|
|
179
|
+
signal: "SIGUSR2",
|
|
180
|
+
compact: false,
|
|
181
|
+
reportOnFatalError: false,
|
|
182
|
+
reportOnSignal: false,
|
|
183
|
+
reportOnUncaughtException: false,
|
|
184
|
+
getReport: /* @__PURE__ */ notImplemented("process.report.getReport"),
|
|
185
|
+
writeReport: /* @__PURE__ */ notImplemented("process.report.writeReport")
|
|
186
|
+
};
|
|
187
|
+
finalization = {
|
|
188
|
+
register: /* @__PURE__ */ notImplemented("process.finalization.register"),
|
|
189
|
+
unregister: /* @__PURE__ */ notImplemented("process.finalization.unregister"),
|
|
190
|
+
registerBeforeExit: /* @__PURE__ */ notImplemented("process.finalization.registerBeforeExit")
|
|
191
|
+
};
|
|
192
|
+
memoryUsage = Object.assign(() => ({
|
|
193
|
+
arrayBuffers: 0,
|
|
194
|
+
rss: 0,
|
|
195
|
+
external: 0,
|
|
196
|
+
heapTotal: 0,
|
|
197
|
+
heapUsed: 0
|
|
198
|
+
}), { rss: () => 0 });
|
|
199
|
+
// --- undefined props ---
|
|
200
|
+
mainModule = undefined;
|
|
201
|
+
domain = undefined;
|
|
202
|
+
// optional
|
|
203
|
+
send = undefined;
|
|
204
|
+
exitCode = undefined;
|
|
205
|
+
channel = undefined;
|
|
206
|
+
getegid = undefined;
|
|
207
|
+
geteuid = undefined;
|
|
208
|
+
getgid = undefined;
|
|
209
|
+
getgroups = undefined;
|
|
210
|
+
getuid = undefined;
|
|
211
|
+
setegid = undefined;
|
|
212
|
+
seteuid = undefined;
|
|
213
|
+
setgid = undefined;
|
|
214
|
+
setgroups = undefined;
|
|
215
|
+
setuid = undefined;
|
|
216
|
+
// internals
|
|
217
|
+
_events = undefined;
|
|
218
|
+
_eventsCount = undefined;
|
|
219
|
+
_exiting = undefined;
|
|
220
|
+
_maxListeners = undefined;
|
|
221
|
+
_debugEnd = undefined;
|
|
222
|
+
_debugProcess = undefined;
|
|
223
|
+
_fatalException = undefined;
|
|
224
|
+
_getActiveHandles = undefined;
|
|
225
|
+
_getActiveRequests = undefined;
|
|
226
|
+
_kill = undefined;
|
|
227
|
+
_preload_modules = undefined;
|
|
228
|
+
_rawDebug = undefined;
|
|
229
|
+
_startProfilerIdleNotifier = undefined;
|
|
230
|
+
_stopProfilerIdleNotifier = undefined;
|
|
231
|
+
_tickCallback = undefined;
|
|
232
|
+
_disconnect = undefined;
|
|
233
|
+
_handleQueue = undefined;
|
|
234
|
+
_pendingMessage = undefined;
|
|
235
|
+
_channel = undefined;
|
|
236
|
+
_send = undefined;
|
|
237
|
+
_linkedBinding = undefined;
|
|
238
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
|
|
3
|
+
* symbols.
|
|
4
|
+
* @memberOf punycode
|
|
5
|
+
* @param {String} input The Punycode string of ASCII-only symbols.
|
|
6
|
+
* @returns {String} The resulting string of Unicode symbols.
|
|
7
|
+
*/
|
|
8
|
+
declare const decode: unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
11
|
+
* Punycode string of ASCII-only symbols.
|
|
12
|
+
* @memberOf punycode
|
|
13
|
+
* @param {String} input The string of Unicode symbols.
|
|
14
|
+
* @returns {String} The resulting Punycode string of ASCII-only symbols.
|
|
15
|
+
*/
|
|
16
|
+
declare const encode: unknown;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a Punycode string representing a domain name or an email address
|
|
19
|
+
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
|
|
20
|
+
* it doesn't matter if you call it on a string that has already been
|
|
21
|
+
* converted to Unicode.
|
|
22
|
+
* @memberOf punycode
|
|
23
|
+
* @param {String} input The Punycoded domain name or email address to
|
|
24
|
+
* convert to Unicode.
|
|
25
|
+
* @returns {String} The Unicode representation of the given Punycode
|
|
26
|
+
* string.
|
|
27
|
+
*/
|
|
28
|
+
declare const toUnicode: unknown;
|
|
29
|
+
/**
|
|
30
|
+
* Converts a Unicode string representing a domain name or an email address to
|
|
31
|
+
* Punycode. Only the non-ASCII parts of the domain name will be converted,
|
|
32
|
+
* i.e. it doesn't matter if you call it with a domain that's already in
|
|
33
|
+
* ASCII.
|
|
34
|
+
* @memberOf punycode
|
|
35
|
+
* @param {String} input The domain name or email address to convert, as a
|
|
36
|
+
* Unicode string.
|
|
37
|
+
* @returns {String} The Punycode representation of the given domain name or
|
|
38
|
+
* email address.
|
|
39
|
+
*/
|
|
40
|
+
declare const toASCII: unknown;
|
|
41
|
+
/*--------------------------------------------------------------------------*/
|
|
42
|
+
/**
|
|
43
|
+
* A string representing the current Punycode.js version number.
|
|
44
|
+
* @memberOf punycode
|
|
45
|
+
* @type String
|
|
46
|
+
*/
|
|
47
|
+
declare const version = "2.3.1";
|
|
48
|
+
/**
|
|
49
|
+
* An object of methods to convert from JavaScript's internal character
|
|
50
|
+
* representation (UCS-2) to Unicode code points, and back.
|
|
51
|
+
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
52
|
+
* @memberOf punycode
|
|
53
|
+
* @type Object
|
|
54
|
+
*/
|
|
55
|
+
declare const ucs2: {};
|
|
56
|
+
/** Define the public API */
|
|
57
|
+
declare const punycode: {};
|
|
58
|
+
export { version, ucs2, decode, encode, toASCII, toUnicode };
|
|
59
|
+
export default punycode;
|