@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,32 @@
|
|
|
1
|
+
// https://nodejs.org/api/util.html
|
|
2
|
+
import type nodeUtil from "node:util";
|
|
3
|
+
export { MIMEParams, MIMEType } from "./internal/util/mime.mjs";
|
|
4
|
+
export * from "./internal/util/legacy-types.mjs";
|
|
5
|
+
export * from "./internal/util/log.mjs";
|
|
6
|
+
export { inherits } from "./internal/util/inherits.mjs";
|
|
7
|
+
export { promisify } from "./internal/util/promisify.mjs";
|
|
8
|
+
export { default as types } from "node:util/types";
|
|
9
|
+
// @ts-expect-error
|
|
10
|
+
export declare const TextDecoder: typeof nodeUtil.TextDecoder;
|
|
11
|
+
export declare const TextEncoder: typeof nodeUtil.TextEncoder;
|
|
12
|
+
export declare const deprecate: typeof nodeUtil.deprecate;
|
|
13
|
+
export declare const _errnoException: unknown;
|
|
14
|
+
export declare const _exceptionWithHostPort: unknown;
|
|
15
|
+
export declare const _extend: unknown;
|
|
16
|
+
export declare const aborted: unknown;
|
|
17
|
+
export declare const callbackify: unknown;
|
|
18
|
+
export declare const getSystemErrorMap: unknown;
|
|
19
|
+
export declare const getSystemErrorName: unknown;
|
|
20
|
+
export declare const toUSVString: unknown;
|
|
21
|
+
export declare const stripVTControlCharacters: unknown;
|
|
22
|
+
export declare const transferableAbortController: unknown;
|
|
23
|
+
export declare const transferableAbortSignal: unknown;
|
|
24
|
+
export declare const parseArgs: unknown;
|
|
25
|
+
export declare const parseEnv: unknown;
|
|
26
|
+
export declare const styleText: unknown;
|
|
27
|
+
/** @deprecated */
|
|
28
|
+
export declare const getCallSite: unknown;
|
|
29
|
+
export declare const getCallSites: unknown;
|
|
30
|
+
export declare const getSystemErrorMessage: unknown;
|
|
31
|
+
declare const _default: {};
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import types from "node:util/types";
|
|
2
|
+
import { notImplemented } from "../_internal/utils.mjs";
|
|
3
|
+
import { inherits } from "./internal/util/inherits.mjs";
|
|
4
|
+
import { promisify } from "./internal/util/promisify.mjs";
|
|
5
|
+
import { MIMEParams, MIMEType } from "./internal/util/mime.mjs";
|
|
6
|
+
import { isArray, isBoolean, isBuffer, isDate, isDeepStrictEqual, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined } from "./internal/util/legacy-types.mjs";
|
|
7
|
+
import { debug, debuglog, format, formatWithOptions, inspect, log } from "./internal/util/log.mjs";
|
|
8
|
+
export { MIMEParams, MIMEType } from "./internal/util/mime.mjs";
|
|
9
|
+
export * from "./internal/util/legacy-types.mjs";
|
|
10
|
+
export * from "./internal/util/log.mjs";
|
|
11
|
+
export { inherits } from "./internal/util/inherits.mjs";
|
|
12
|
+
export { promisify } from "./internal/util/promisify.mjs";
|
|
13
|
+
export { default as types } from "node:util/types";
|
|
14
|
+
// @ts-expect-error
|
|
15
|
+
export const TextDecoder = globalThis.TextDecoder;
|
|
16
|
+
export const TextEncoder = globalThis.TextEncoder;
|
|
17
|
+
export const deprecate = (fn) => fn;
|
|
18
|
+
export const _errnoException = /* @__PURE__ */ notImplemented("util._errnoException");
|
|
19
|
+
export const _exceptionWithHostPort = /* @__PURE__ */ notImplemented("util._exceptionWithHostPort");
|
|
20
|
+
export const _extend = /* @__PURE__ */ notImplemented("util._extend");
|
|
21
|
+
export const aborted = /* @__PURE__ */ notImplemented("util.aborted");
|
|
22
|
+
export const callbackify = /* @__PURE__ */ notImplemented("util.callbackify");
|
|
23
|
+
export const getSystemErrorMap = /* @__PURE__ */ notImplemented("util.getSystemErrorMap");
|
|
24
|
+
export const getSystemErrorName = /* @__PURE__ */ notImplemented("util.getSystemErrorName");
|
|
25
|
+
export const toUSVString = /* @__PURE__ */ notImplemented("util.toUSVString");
|
|
26
|
+
export const stripVTControlCharacters = /* @__PURE__ */ notImplemented("util.stripVTControlCharacters");
|
|
27
|
+
export const transferableAbortController = /* @__PURE__ */ notImplemented("util.transferableAbortController");
|
|
28
|
+
export const transferableAbortSignal = /* @__PURE__ */ notImplemented("util.transferableAbortSignal");
|
|
29
|
+
export const parseArgs = /* @__PURE__ */ notImplemented("util.parseArgs");
|
|
30
|
+
export const parseEnv = /* @__PURE__ */ notImplemented("util.parseEnv");
|
|
31
|
+
export const styleText = /* @__PURE__ */ notImplemented("util.styleText");
|
|
32
|
+
/** @deprecated */
|
|
33
|
+
export const getCallSite = /* @__PURE__ */ notImplemented("util.getCallSite");
|
|
34
|
+
export const getCallSites = /* @__PURE__ */ notImplemented("util.getCallSites");
|
|
35
|
+
export const getSystemErrorMessage = /* @__PURE__ */ notImplemented("util.getSystemErrorMessage");
|
|
36
|
+
export default {
|
|
37
|
+
_errnoException,
|
|
38
|
+
_exceptionWithHostPort,
|
|
39
|
+
_extend,
|
|
40
|
+
aborted,
|
|
41
|
+
callbackify,
|
|
42
|
+
deprecate,
|
|
43
|
+
getCallSite,
|
|
44
|
+
getCallSites,
|
|
45
|
+
getSystemErrorMessage,
|
|
46
|
+
getSystemErrorMap,
|
|
47
|
+
getSystemErrorName,
|
|
48
|
+
inherits,
|
|
49
|
+
promisify,
|
|
50
|
+
stripVTControlCharacters,
|
|
51
|
+
toUSVString,
|
|
52
|
+
TextDecoder,
|
|
53
|
+
TextEncoder,
|
|
54
|
+
types,
|
|
55
|
+
transferableAbortController,
|
|
56
|
+
transferableAbortSignal,
|
|
57
|
+
parseArgs,
|
|
58
|
+
parseEnv,
|
|
59
|
+
styleText,
|
|
60
|
+
MIMEParams,
|
|
61
|
+
MIMEType,
|
|
62
|
+
isArray,
|
|
63
|
+
isBoolean,
|
|
64
|
+
isBuffer,
|
|
65
|
+
isDate,
|
|
66
|
+
isDeepStrictEqual,
|
|
67
|
+
isError,
|
|
68
|
+
isFunction,
|
|
69
|
+
isNull,
|
|
70
|
+
isNullOrUndefined,
|
|
71
|
+
isNumber,
|
|
72
|
+
isObject,
|
|
73
|
+
isPrimitive,
|
|
74
|
+
isRegExp,
|
|
75
|
+
isString,
|
|
76
|
+
isSymbol,
|
|
77
|
+
isUndefined,
|
|
78
|
+
debug,
|
|
79
|
+
debuglog,
|
|
80
|
+
format,
|
|
81
|
+
formatWithOptions,
|
|
82
|
+
inspect,
|
|
83
|
+
log
|
|
84
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type nodeV8 from "node:v8";
|
|
2
|
+
export { Deserializer, DefaultDeserializer } from "./internal/v8/deserializer.mjs";
|
|
3
|
+
export { Serializer, DefaultSerializer } from "./internal/v8/serializer.mjs";
|
|
4
|
+
export { GCProfiler } from "./internal/v8/profiler.mjs";
|
|
5
|
+
export declare const cachedDataVersionTag: typeof nodeV8.cachedDataVersionTag;
|
|
6
|
+
export declare const deserialize: typeof nodeV8.deserialize;
|
|
7
|
+
export declare const getHeapCodeStatistics: typeof nodeV8.getHeapCodeStatistics;
|
|
8
|
+
export declare const getHeapSpaceStatistics: typeof nodeV8.getHeapSpaceStatistics;
|
|
9
|
+
export declare const getHeapStatistics: typeof nodeV8.getHeapStatistics;
|
|
10
|
+
export declare const getHeapSnapshot: typeof nodeV8.getHeapSnapshot;
|
|
11
|
+
export declare const promiseHooks: typeof nodeV8.promiseHooks;
|
|
12
|
+
export declare const serialize: typeof nodeV8.serialize;
|
|
13
|
+
export declare const setFlagsFromString: typeof nodeV8.setFlagsFromString;
|
|
14
|
+
export declare const setHeapSnapshotNearHeapLimit: typeof nodeV8.setHeapSnapshotNearHeapLimit;
|
|
15
|
+
export declare const startupSnapshot: typeof nodeV8.startupSnapshot;
|
|
16
|
+
export declare const stopCoverage: typeof nodeV8.stopCoverage;
|
|
17
|
+
export declare const takeCoverage: typeof nodeV8.takeCoverage;
|
|
18
|
+
export declare const writeHeapSnapshot: typeof nodeV8.writeHeapSnapshot;
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
20
|
+
type _Function = Function;
|
|
21
|
+
export declare function queryObjects(ctor: _Function): number | string[];
|
|
22
|
+
export declare function queryObjects(ctor: _Function, options: {
|
|
23
|
+
format: "count";
|
|
24
|
+
}): number;
|
|
25
|
+
export declare function queryObjects(ctor: _Function, options: {
|
|
26
|
+
format: "summary";
|
|
27
|
+
}): string[];
|
|
28
|
+
declare const _default: {};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import noop from "../mock/noop.mjs";
|
|
2
|
+
import { Readable } from "node:stream";
|
|
3
|
+
import { Deserializer, DefaultDeserializer } from "./internal/v8/deserializer.mjs";
|
|
4
|
+
import { Serializer, DefaultSerializer } from "./internal/v8/serializer.mjs";
|
|
5
|
+
import { GCProfiler } from "./internal/v8/profiler.mjs";
|
|
6
|
+
export { Deserializer, DefaultDeserializer } from "./internal/v8/deserializer.mjs";
|
|
7
|
+
export { Serializer, DefaultSerializer } from "./internal/v8/serializer.mjs";
|
|
8
|
+
export { GCProfiler } from "./internal/v8/profiler.mjs";
|
|
9
|
+
const getMockHeapSpaceStats = (name) => ({
|
|
10
|
+
space_name: name,
|
|
11
|
+
space_size: 0,
|
|
12
|
+
space_used_size: 0,
|
|
13
|
+
space_available_size: 0,
|
|
14
|
+
physical_space_size: 0
|
|
15
|
+
});
|
|
16
|
+
export const cachedDataVersionTag = () => 0;
|
|
17
|
+
export const deserialize = noop;
|
|
18
|
+
export const getHeapCodeStatistics = () => ({
|
|
19
|
+
code_and_metadata_size: 0,
|
|
20
|
+
bytecode_and_metadata_size: 0,
|
|
21
|
+
external_script_source_size: 0,
|
|
22
|
+
cpu_profiler_metadata_size: 0
|
|
23
|
+
});
|
|
24
|
+
export const getHeapSpaceStatistics = () => [
|
|
25
|
+
"read_only_space",
|
|
26
|
+
"new_space",
|
|
27
|
+
"old_space",
|
|
28
|
+
"code_space",
|
|
29
|
+
"map_space",
|
|
30
|
+
"large_object_space",
|
|
31
|
+
"code_large_object_space",
|
|
32
|
+
"new_large_object_space"
|
|
33
|
+
].map((space) => getMockHeapSpaceStats(space));
|
|
34
|
+
export const getHeapStatistics = () => ({
|
|
35
|
+
total_heap_size: 0,
|
|
36
|
+
total_heap_size_executable: 0,
|
|
37
|
+
total_physical_size: 0,
|
|
38
|
+
total_available_size: 0,
|
|
39
|
+
used_heap_size: 0,
|
|
40
|
+
heap_size_limit: 0,
|
|
41
|
+
malloced_memory: 0,
|
|
42
|
+
peak_malloced_memory: 0,
|
|
43
|
+
does_zap_garbage: 0,
|
|
44
|
+
number_of_native_contexts: 0,
|
|
45
|
+
number_of_detached_contexts: 0,
|
|
46
|
+
total_global_handles_size: 0,
|
|
47
|
+
used_global_handles_size: 0,
|
|
48
|
+
external_memory: 0
|
|
49
|
+
});
|
|
50
|
+
export const getHeapSnapshot = () => {
|
|
51
|
+
return Readable.from(`{
|
|
52
|
+
snapshot: {},
|
|
53
|
+
nodes: [],
|
|
54
|
+
edges: [],
|
|
55
|
+
trace_function_infos: [],
|
|
56
|
+
trace_tree: [],
|
|
57
|
+
samples: [],
|
|
58
|
+
locations: [],
|
|
59
|
+
strings: [],
|
|
60
|
+
}`);
|
|
61
|
+
};
|
|
62
|
+
export const promiseHooks = {
|
|
63
|
+
onInit: () => noop,
|
|
64
|
+
onSettled: () => noop,
|
|
65
|
+
onBefore: () => noop,
|
|
66
|
+
onAfter: () => noop,
|
|
67
|
+
createHook: () => noop
|
|
68
|
+
};
|
|
69
|
+
export const serialize = (value) => Buffer.from(value);
|
|
70
|
+
export const setFlagsFromString = noop;
|
|
71
|
+
export const setHeapSnapshotNearHeapLimit = noop;
|
|
72
|
+
export const startupSnapshot = {
|
|
73
|
+
addDeserializeCallback: noop,
|
|
74
|
+
addSerializeCallback: noop,
|
|
75
|
+
setDeserializeMainFunction: noop,
|
|
76
|
+
isBuildingSnapshot: () => false
|
|
77
|
+
};
|
|
78
|
+
export const stopCoverage = noop;
|
|
79
|
+
export const takeCoverage = noop;
|
|
80
|
+
export const writeHeapSnapshot = () => "";
|
|
81
|
+
export function queryObjects(_ctor, options) {
|
|
82
|
+
if (options?.format === "count") {
|
|
83
|
+
return 0;
|
|
84
|
+
}
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
export default {
|
|
88
|
+
DefaultDeserializer,
|
|
89
|
+
Deserializer,
|
|
90
|
+
GCProfiler,
|
|
91
|
+
DefaultSerializer,
|
|
92
|
+
Serializer,
|
|
93
|
+
cachedDataVersionTag,
|
|
94
|
+
deserialize,
|
|
95
|
+
getHeapCodeStatistics,
|
|
96
|
+
getHeapSnapshot,
|
|
97
|
+
getHeapSpaceStatistics,
|
|
98
|
+
getHeapStatistics,
|
|
99
|
+
promiseHooks,
|
|
100
|
+
serialize,
|
|
101
|
+
setFlagsFromString,
|
|
102
|
+
setHeapSnapshotNearHeapLimit,
|
|
103
|
+
startupSnapshot,
|
|
104
|
+
stopCoverage,
|
|
105
|
+
takeCoverage,
|
|
106
|
+
writeHeapSnapshot,
|
|
107
|
+
queryObjects
|
|
108
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type nodeVm from "node:vm";
|
|
2
|
+
export { Script } from "./internal/vm/script.mjs";
|
|
3
|
+
export * as constants from "./internal/vm/constants.mjs";
|
|
4
|
+
export declare const compileFunction: typeof nodeVm.compileFunction;
|
|
5
|
+
export declare const createContext: typeof nodeVm.createContext;
|
|
6
|
+
export declare const createScript: unknown;
|
|
7
|
+
export declare const isContext: typeof nodeVm.isContext;
|
|
8
|
+
export declare const measureMemory: typeof nodeVm.measureMemory;
|
|
9
|
+
export declare const runInContext: typeof nodeVm.runInContext;
|
|
10
|
+
export declare const runInNewContext: typeof nodeVm.runInNewContext;
|
|
11
|
+
export declare const runInThisContext: typeof nodeVm.runInThisContext;
|
|
12
|
+
declare const _default: {
|
|
13
|
+
constants: typeof nodeVm.constants;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { notImplemented } from "../_internal/utils.mjs";
|
|
2
|
+
import { Script } from "./internal/vm/script.mjs";
|
|
3
|
+
import * as constants from "./internal/vm/constants.mjs";
|
|
4
|
+
export { Script } from "./internal/vm/script.mjs";
|
|
5
|
+
export * as constants from "./internal/vm/constants.mjs";
|
|
6
|
+
export const compileFunction = /* @__PURE__ */ notImplemented("vm.compileFunction");
|
|
7
|
+
const _contextSymbol = /* @__PURE__ */ Symbol("uenv.vm.context");
|
|
8
|
+
export const createContext = function createContext() {
|
|
9
|
+
return Object.create(null, { [_contextSymbol]: { value: true } });
|
|
10
|
+
};
|
|
11
|
+
export const createScript = function createScript() {
|
|
12
|
+
return new Script();
|
|
13
|
+
};
|
|
14
|
+
export const isContext = (context) => {
|
|
15
|
+
return context && context[_contextSymbol] === true;
|
|
16
|
+
};
|
|
17
|
+
export const measureMemory = () => Promise.resolve({
|
|
18
|
+
total: {
|
|
19
|
+
jsMemoryEstimate: 0,
|
|
20
|
+
jsMemoryRange: [1, 2]
|
|
21
|
+
},
|
|
22
|
+
WebAssembly: {
|
|
23
|
+
code: 0,
|
|
24
|
+
metadata: 0
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export const runInContext = /* @__PURE__ */ notImplemented("vm.runInContext");
|
|
28
|
+
export const runInNewContext = /* @__PURE__ */ notImplemented("vm.runInNewContext");
|
|
29
|
+
export const runInThisContext = /* @__PURE__ */ notImplemented("vm.runInThisContext");
|
|
30
|
+
export default {
|
|
31
|
+
Script,
|
|
32
|
+
compileFunction,
|
|
33
|
+
constants,
|
|
34
|
+
createContext,
|
|
35
|
+
isContext,
|
|
36
|
+
measureMemory,
|
|
37
|
+
runInContext,
|
|
38
|
+
runInNewContext,
|
|
39
|
+
runInThisContext,
|
|
40
|
+
createScript
|
|
41
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type nodeWorkerThreads from "node:worker_threads";
|
|
2
|
+
export { BroadcastChannel } from "./internal/worker_threads/broadcast-channel.mjs";
|
|
3
|
+
export { MessageChannel } from "./internal/worker_threads/message-channel.mjs";
|
|
4
|
+
export { MessagePort } from "./internal/worker_threads/message-port.mjs";
|
|
5
|
+
export { Worker } from "./internal/worker_threads/worker.mjs";
|
|
6
|
+
export declare const getEnvironmentData: typeof nodeWorkerThreads.getEnvironmentData;
|
|
7
|
+
export declare const setEnvironmentData: typeof nodeWorkerThreads.setEnvironmentData;
|
|
8
|
+
export declare const isMainThread: typeof nodeWorkerThreads.isMainThread;
|
|
9
|
+
export declare const isMarkedAsUntransferable: any;
|
|
10
|
+
export declare const markAsUntransferable: typeof nodeWorkerThreads.markAsUntransferable;
|
|
11
|
+
export declare const markAsUncloneable: typeof nodeWorkerThreads.markAsUncloneable;
|
|
12
|
+
export declare const moveMessagePortToContext: typeof nodeWorkerThreads.moveMessagePortToContext;
|
|
13
|
+
export declare const parentPort: typeof nodeWorkerThreads.parentPort;
|
|
14
|
+
export declare const receiveMessageOnPort: typeof nodeWorkerThreads.receiveMessageOnPort;
|
|
15
|
+
export declare const SHARE_ENV: typeof nodeWorkerThreads.SHARE_ENV;
|
|
16
|
+
export declare const resourceLimits: typeof nodeWorkerThreads.resourceLimits;
|
|
17
|
+
export declare const threadId: typeof nodeWorkerThreads.threadId;
|
|
18
|
+
export declare const workerData: typeof nodeWorkerThreads.workerData;
|
|
19
|
+
// https://nodejs.org/api/worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout
|
|
20
|
+
export declare const postMessageToThread: unknown;
|
|
21
|
+
export declare const isInternalThread: boolean;
|
|
22
|
+
declare const _default: typeof nodeWorkerThreads;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BroadcastChannel } from "./internal/worker_threads/broadcast-channel.mjs";
|
|
2
|
+
import { MessageChannel } from "./internal/worker_threads/message-channel.mjs";
|
|
3
|
+
import { MessagePort } from "./internal/worker_threads/message-port.mjs";
|
|
4
|
+
import { Worker } from "./internal/worker_threads/worker.mjs";
|
|
5
|
+
import { notImplemented } from "../_internal/utils.mjs";
|
|
6
|
+
export { BroadcastChannel } from "./internal/worker_threads/broadcast-channel.mjs";
|
|
7
|
+
export { MessageChannel } from "./internal/worker_threads/message-channel.mjs";
|
|
8
|
+
export { MessagePort } from "./internal/worker_threads/message-port.mjs";
|
|
9
|
+
export { Worker } from "./internal/worker_threads/worker.mjs";
|
|
10
|
+
const _environmentData = new Map();
|
|
11
|
+
export const getEnvironmentData = function getEnvironmentData(key) {
|
|
12
|
+
return _environmentData.get(key);
|
|
13
|
+
};
|
|
14
|
+
export const setEnvironmentData = function setEnvironmentData(key, value) {
|
|
15
|
+
_environmentData.set(key, value);
|
|
16
|
+
};
|
|
17
|
+
export const isMainThread = true;
|
|
18
|
+
export const isMarkedAsUntransferable = () => false;
|
|
19
|
+
export const markAsUntransferable = function markAsUntransferable(value) {
|
|
20
|
+
// noop
|
|
21
|
+
};
|
|
22
|
+
export const markAsUncloneable = () => {
|
|
23
|
+
// noop
|
|
24
|
+
};
|
|
25
|
+
export const moveMessagePortToContext = () => new MessagePort();
|
|
26
|
+
export const parentPort = null;
|
|
27
|
+
export const receiveMessageOnPort = () => undefined;
|
|
28
|
+
export const SHARE_ENV = /* @__PURE__ */ Symbol.for("nodejs.worker_threads.SHARE_ENV");
|
|
29
|
+
export const resourceLimits = {};
|
|
30
|
+
export const threadId = 0;
|
|
31
|
+
export const workerData = null;
|
|
32
|
+
// https://nodejs.org/api/worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout
|
|
33
|
+
export const postMessageToThread = /* @__PURE__ */ notImplemented("worker_threads.postMessageToThread");
|
|
34
|
+
export const isInternalThread = false;
|
|
35
|
+
export default {
|
|
36
|
+
BroadcastChannel,
|
|
37
|
+
MessageChannel,
|
|
38
|
+
MessagePort,
|
|
39
|
+
Worker,
|
|
40
|
+
SHARE_ENV,
|
|
41
|
+
getEnvironmentData,
|
|
42
|
+
isMainThread,
|
|
43
|
+
isMarkedAsUntransferable,
|
|
44
|
+
markAsUntransferable,
|
|
45
|
+
markAsUncloneable,
|
|
46
|
+
moveMessagePortToContext,
|
|
47
|
+
parentPort,
|
|
48
|
+
receiveMessageOnPort,
|
|
49
|
+
resourceLimits,
|
|
50
|
+
setEnvironmentData,
|
|
51
|
+
postMessageToThread,
|
|
52
|
+
threadId,
|
|
53
|
+
workerData,
|
|
54
|
+
isInternalThread
|
|
55
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type nodeZlib from "node:zlib";
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
import { Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_BLOCK, Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_ERRNO, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Z_BUF_ERROR, Z_VERSION_ERROR, Z_NO_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION, Z_DEFAULT_COMPRESSION, Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY, ZLIB_VERNUM, DEFLATE, INFLATE, GZIP, GUNZIP, DEFLATERAW, INFLATERAW, UNZIP, Z_MIN_WINDOWBITS, Z_MAX_WINDOWBITS, Z_DEFAULT_WINDOWBITS, Z_MIN_CHUNK, Z_MAX_CHUNK, Z_DEFAULT_CHUNK, Z_MIN_MEMLEVEL, Z_MAX_MEMLEVEL, Z_DEFAULT_MEMLEVEL, Z_MIN_LEVEL, Z_MAX_LEVEL, Z_DEFAULT_LEVEL } from "./internal/zlib/constants.mjs";
|
|
4
|
+
// prettier-ignore
|
|
5
|
+
export declare const constants: typeof nodeZlib.constants;
|
|
6
|
+
export { codes } from "./internal/zlib/codes.mjs";
|
|
7
|
+
export * from "./internal/zlib/formats/brotli.mjs";
|
|
8
|
+
export * from "./internal/zlib/formats/deflate.mjs";
|
|
9
|
+
export * from "./internal/zlib/formats/gzip.mjs";
|
|
10
|
+
export * from "./internal/zlib/formats/zip.mjs";
|
|
11
|
+
export declare const crc32: unknown;
|
|
12
|
+
// prettier-ignore
|
|
13
|
+
export { Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_BLOCK, Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_ERRNO, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Z_BUF_ERROR, Z_VERSION_ERROR, Z_NO_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION, Z_DEFAULT_COMPRESSION, Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY, ZLIB_VERNUM, DEFLATE, INFLATE, GZIP, GUNZIP, DEFLATERAW, INFLATERAW, UNZIP, Z_MIN_WINDOWBITS, Z_MAX_WINDOWBITS, Z_DEFAULT_WINDOWBITS, Z_MIN_CHUNK, Z_MAX_CHUNK, Z_DEFAULT_CHUNK, Z_MIN_MEMLEVEL, Z_MAX_MEMLEVEL, Z_DEFAULT_MEMLEVEL, Z_MIN_LEVEL, Z_MAX_LEVEL, Z_DEFAULT_LEVEL };
|
|
14
|
+
// prettier-ignore
|
|
15
|
+
declare const _default: {};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { notImplemented } from "../_internal/utils.mjs";
|
|
2
|
+
import { codes } from "./internal/zlib/codes.mjs";
|
|
3
|
+
import { BrotliCompress, BrotliDecompress, brotliCompress, brotliCompressSync, brotliDecompress, brotliDecompressSync, createBrotliCompress, createBrotliDecompress } from "./internal/zlib/formats/brotli.mjs";
|
|
4
|
+
import { Deflate, DeflateRaw, Inflate, InflateRaw, createDeflate, createDeflateRaw, createInflate, createInflateRaw, deflate, deflateRaw, deflateRawSync, deflateSync, inflate, inflateRaw, inflateRawSync, inflateSync } from "./internal/zlib/formats/deflate.mjs";
|
|
5
|
+
import { Gunzip, Gzip, createGunzip, createGzip, gunzip, gunzipSync, gzip, gzipSync } from "./internal/zlib/formats/gzip.mjs";
|
|
6
|
+
import { Unzip, createUnzip, unzip, unzipSync } from "./internal/zlib/formats/zip.mjs";
|
|
7
|
+
// prettier-ignore
|
|
8
|
+
import { Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_BLOCK, Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_ERRNO, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Z_BUF_ERROR, Z_VERSION_ERROR, Z_NO_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION, Z_DEFAULT_COMPRESSION, Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY, ZLIB_VERNUM, DEFLATE, INFLATE, GZIP, GUNZIP, DEFLATERAW, INFLATERAW, UNZIP, BROTLI_DECODE, BROTLI_ENCODE, Z_MIN_WINDOWBITS, Z_MAX_WINDOWBITS, Z_DEFAULT_WINDOWBITS, Z_MIN_CHUNK, Z_MAX_CHUNK, Z_DEFAULT_CHUNK, Z_MIN_MEMLEVEL, Z_MAX_MEMLEVEL, Z_DEFAULT_MEMLEVEL, Z_MIN_LEVEL, Z_MAX_LEVEL, Z_DEFAULT_LEVEL, BROTLI_OPERATION_PROCESS, BROTLI_OPERATION_FLUSH, BROTLI_OPERATION_FINISH, BROTLI_OPERATION_EMIT_METADATA, BROTLI_PARAM_MODE, BROTLI_MODE_GENERIC, BROTLI_MODE_TEXT, BROTLI_MODE_FONT, BROTLI_DEFAULT_MODE, BROTLI_PARAM_QUALITY, BROTLI_MIN_QUALITY, BROTLI_MAX_QUALITY, BROTLI_DEFAULT_QUALITY, BROTLI_PARAM_LGWIN, BROTLI_MIN_WINDOW_BITS, BROTLI_MAX_WINDOW_BITS, BROTLI_LARGE_MAX_WINDOW_BITS, BROTLI_DEFAULT_WINDOW, BROTLI_PARAM_LGBLOCK, BROTLI_MIN_INPUT_BLOCK_BITS, BROTLI_MAX_INPUT_BLOCK_BITS, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING, BROTLI_PARAM_SIZE_HINT, BROTLI_PARAM_LARGE_WINDOW, BROTLI_PARAM_NPOSTFIX, BROTLI_PARAM_NDIRECT, BROTLI_DECODER_RESULT_ERROR, BROTLI_DECODER_RESULT_SUCCESS, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION, BROTLI_DECODER_PARAM_LARGE_WINDOW, BROTLI_DECODER_NO_ERROR, BROTLI_DECODER_SUCCESS, BROTLI_DECODER_NEEDS_MORE_INPUT, BROTLI_DECODER_NEEDS_MORE_OUTPUT, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE, BROTLI_DECODER_ERROR_FORMAT_RESERVED, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS, BROTLI_DECODER_ERROR_FORMAT_PADDING_1, BROTLI_DECODER_ERROR_FORMAT_PADDING_2, BROTLI_DECODER_ERROR_FORMAT_DISTANCE, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES, BROTLI_DECODER_ERROR_UNREACHABLE } from "./internal/zlib/constants.mjs";
|
|
9
|
+
// prettier-ignore
|
|
10
|
+
export const constants = {
|
|
11
|
+
Z_NO_FLUSH,
|
|
12
|
+
Z_PARTIAL_FLUSH,
|
|
13
|
+
Z_SYNC_FLUSH,
|
|
14
|
+
Z_FULL_FLUSH,
|
|
15
|
+
Z_FINISH,
|
|
16
|
+
Z_BLOCK,
|
|
17
|
+
Z_OK,
|
|
18
|
+
Z_STREAM_END,
|
|
19
|
+
Z_NEED_DICT,
|
|
20
|
+
Z_ERRNO,
|
|
21
|
+
Z_STREAM_ERROR,
|
|
22
|
+
Z_DATA_ERROR,
|
|
23
|
+
Z_MEM_ERROR,
|
|
24
|
+
Z_BUF_ERROR,
|
|
25
|
+
Z_VERSION_ERROR,
|
|
26
|
+
Z_NO_COMPRESSION,
|
|
27
|
+
Z_BEST_SPEED,
|
|
28
|
+
Z_BEST_COMPRESSION,
|
|
29
|
+
Z_DEFAULT_COMPRESSION,
|
|
30
|
+
Z_FILTERED,
|
|
31
|
+
Z_HUFFMAN_ONLY,
|
|
32
|
+
Z_RLE,
|
|
33
|
+
Z_FIXED,
|
|
34
|
+
Z_DEFAULT_STRATEGY,
|
|
35
|
+
ZLIB_VERNUM,
|
|
36
|
+
DEFLATE,
|
|
37
|
+
INFLATE,
|
|
38
|
+
GZIP,
|
|
39
|
+
GUNZIP,
|
|
40
|
+
DEFLATERAW,
|
|
41
|
+
INFLATERAW,
|
|
42
|
+
UNZIP,
|
|
43
|
+
BROTLI_DECODE,
|
|
44
|
+
BROTLI_ENCODE,
|
|
45
|
+
Z_MIN_WINDOWBITS,
|
|
46
|
+
Z_MAX_WINDOWBITS,
|
|
47
|
+
Z_DEFAULT_WINDOWBITS,
|
|
48
|
+
Z_MIN_CHUNK,
|
|
49
|
+
Z_MAX_CHUNK,
|
|
50
|
+
Z_DEFAULT_CHUNK,
|
|
51
|
+
Z_MIN_MEMLEVEL,
|
|
52
|
+
Z_MAX_MEMLEVEL,
|
|
53
|
+
Z_DEFAULT_MEMLEVEL,
|
|
54
|
+
Z_MIN_LEVEL,
|
|
55
|
+
Z_MAX_LEVEL,
|
|
56
|
+
Z_DEFAULT_LEVEL,
|
|
57
|
+
BROTLI_OPERATION_PROCESS,
|
|
58
|
+
BROTLI_OPERATION_FLUSH,
|
|
59
|
+
BROTLI_OPERATION_FINISH,
|
|
60
|
+
BROTLI_OPERATION_EMIT_METADATA,
|
|
61
|
+
BROTLI_PARAM_MODE,
|
|
62
|
+
BROTLI_MODE_GENERIC,
|
|
63
|
+
BROTLI_MODE_TEXT,
|
|
64
|
+
BROTLI_MODE_FONT,
|
|
65
|
+
BROTLI_DEFAULT_MODE,
|
|
66
|
+
BROTLI_PARAM_QUALITY,
|
|
67
|
+
BROTLI_MIN_QUALITY,
|
|
68
|
+
BROTLI_MAX_QUALITY,
|
|
69
|
+
BROTLI_DEFAULT_QUALITY,
|
|
70
|
+
BROTLI_PARAM_LGWIN,
|
|
71
|
+
BROTLI_MIN_WINDOW_BITS,
|
|
72
|
+
BROTLI_MAX_WINDOW_BITS,
|
|
73
|
+
BROTLI_LARGE_MAX_WINDOW_BITS,
|
|
74
|
+
BROTLI_DEFAULT_WINDOW,
|
|
75
|
+
BROTLI_PARAM_LGBLOCK,
|
|
76
|
+
BROTLI_MIN_INPUT_BLOCK_BITS,
|
|
77
|
+
BROTLI_MAX_INPUT_BLOCK_BITS,
|
|
78
|
+
BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING,
|
|
79
|
+
BROTLI_PARAM_SIZE_HINT,
|
|
80
|
+
BROTLI_PARAM_LARGE_WINDOW,
|
|
81
|
+
BROTLI_PARAM_NPOSTFIX,
|
|
82
|
+
BROTLI_PARAM_NDIRECT,
|
|
83
|
+
BROTLI_DECODER_RESULT_ERROR,
|
|
84
|
+
BROTLI_DECODER_RESULT_SUCCESS,
|
|
85
|
+
BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT,
|
|
86
|
+
BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT,
|
|
87
|
+
BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION,
|
|
88
|
+
BROTLI_DECODER_PARAM_LARGE_WINDOW,
|
|
89
|
+
BROTLI_DECODER_NO_ERROR,
|
|
90
|
+
BROTLI_DECODER_SUCCESS,
|
|
91
|
+
BROTLI_DECODER_NEEDS_MORE_INPUT,
|
|
92
|
+
BROTLI_DECODER_NEEDS_MORE_OUTPUT,
|
|
93
|
+
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE,
|
|
94
|
+
BROTLI_DECODER_ERROR_FORMAT_RESERVED,
|
|
95
|
+
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE,
|
|
96
|
+
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET,
|
|
97
|
+
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME,
|
|
98
|
+
BROTLI_DECODER_ERROR_FORMAT_CL_SPACE,
|
|
99
|
+
BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE,
|
|
100
|
+
BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT,
|
|
101
|
+
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1,
|
|
102
|
+
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2,
|
|
103
|
+
BROTLI_DECODER_ERROR_FORMAT_TRANSFORM,
|
|
104
|
+
BROTLI_DECODER_ERROR_FORMAT_DICTIONARY,
|
|
105
|
+
BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS,
|
|
106
|
+
BROTLI_DECODER_ERROR_FORMAT_PADDING_1,
|
|
107
|
+
BROTLI_DECODER_ERROR_FORMAT_PADDING_2,
|
|
108
|
+
BROTLI_DECODER_ERROR_FORMAT_DISTANCE,
|
|
109
|
+
BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET,
|
|
110
|
+
BROTLI_DECODER_ERROR_INVALID_ARGUMENTS,
|
|
111
|
+
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES,
|
|
112
|
+
BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS,
|
|
113
|
+
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP,
|
|
114
|
+
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1,
|
|
115
|
+
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2,
|
|
116
|
+
BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES,
|
|
117
|
+
BROTLI_DECODER_ERROR_UNREACHABLE
|
|
118
|
+
};
|
|
119
|
+
export { codes } from "./internal/zlib/codes.mjs";
|
|
120
|
+
export * from "./internal/zlib/formats/brotli.mjs";
|
|
121
|
+
export * from "./internal/zlib/formats/deflate.mjs";
|
|
122
|
+
export * from "./internal/zlib/formats/gzip.mjs";
|
|
123
|
+
export * from "./internal/zlib/formats/zip.mjs";
|
|
124
|
+
export const crc32 = /* @__PURE__ */ notImplemented("zlib.crc32");
|
|
125
|
+
// prettier-ignore
|
|
126
|
+
export { Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_BLOCK, Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_ERRNO, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Z_BUF_ERROR, Z_VERSION_ERROR, Z_NO_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION, Z_DEFAULT_COMPRESSION, Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY, ZLIB_VERNUM, DEFLATE, INFLATE, GZIP, GUNZIP, DEFLATERAW, INFLATERAW, UNZIP, Z_MIN_WINDOWBITS, Z_MAX_WINDOWBITS, Z_DEFAULT_WINDOWBITS, Z_MIN_CHUNK, Z_MAX_CHUNK, Z_DEFAULT_CHUNK, Z_MIN_MEMLEVEL, Z_MAX_MEMLEVEL, Z_DEFAULT_MEMLEVEL, Z_MIN_LEVEL, Z_MAX_LEVEL, Z_DEFAULT_LEVEL };
|
|
127
|
+
// prettier-ignore
|
|
128
|
+
export default {
|
|
129
|
+
Z_NO_FLUSH,
|
|
130
|
+
Z_PARTIAL_FLUSH,
|
|
131
|
+
Z_SYNC_FLUSH,
|
|
132
|
+
Z_FULL_FLUSH,
|
|
133
|
+
Z_FINISH,
|
|
134
|
+
Z_BLOCK,
|
|
135
|
+
Z_OK,
|
|
136
|
+
Z_STREAM_END,
|
|
137
|
+
Z_NEED_DICT,
|
|
138
|
+
Z_ERRNO,
|
|
139
|
+
Z_STREAM_ERROR,
|
|
140
|
+
Z_DATA_ERROR,
|
|
141
|
+
Z_MEM_ERROR,
|
|
142
|
+
Z_BUF_ERROR,
|
|
143
|
+
Z_VERSION_ERROR,
|
|
144
|
+
Z_NO_COMPRESSION,
|
|
145
|
+
Z_BEST_SPEED,
|
|
146
|
+
Z_BEST_COMPRESSION,
|
|
147
|
+
Z_DEFAULT_COMPRESSION,
|
|
148
|
+
Z_FILTERED,
|
|
149
|
+
Z_HUFFMAN_ONLY,
|
|
150
|
+
Z_RLE,
|
|
151
|
+
Z_FIXED,
|
|
152
|
+
Z_DEFAULT_STRATEGY,
|
|
153
|
+
ZLIB_VERNUM,
|
|
154
|
+
DEFLATE,
|
|
155
|
+
INFLATE,
|
|
156
|
+
GZIP,
|
|
157
|
+
GUNZIP,
|
|
158
|
+
DEFLATERAW,
|
|
159
|
+
INFLATERAW,
|
|
160
|
+
UNZIP,
|
|
161
|
+
Z_MIN_WINDOWBITS,
|
|
162
|
+
Z_MAX_WINDOWBITS,
|
|
163
|
+
Z_DEFAULT_WINDOWBITS,
|
|
164
|
+
Z_MIN_CHUNK,
|
|
165
|
+
Z_MAX_CHUNK,
|
|
166
|
+
Z_DEFAULT_CHUNK,
|
|
167
|
+
Z_MIN_MEMLEVEL,
|
|
168
|
+
Z_MAX_MEMLEVEL,
|
|
169
|
+
Z_DEFAULT_MEMLEVEL,
|
|
170
|
+
Z_MIN_LEVEL,
|
|
171
|
+
Z_MAX_LEVEL,
|
|
172
|
+
Z_DEFAULT_LEVEL,
|
|
173
|
+
constants,
|
|
174
|
+
BrotliCompress,
|
|
175
|
+
BrotliDecompress,
|
|
176
|
+
brotliCompress,
|
|
177
|
+
brotliCompressSync,
|
|
178
|
+
brotliDecompress,
|
|
179
|
+
brotliDecompressSync,
|
|
180
|
+
createBrotliCompress,
|
|
181
|
+
createBrotliDecompress,
|
|
182
|
+
Deflate,
|
|
183
|
+
DeflateRaw,
|
|
184
|
+
Inflate,
|
|
185
|
+
InflateRaw,
|
|
186
|
+
createDeflate,
|
|
187
|
+
createDeflateRaw,
|
|
188
|
+
createInflate,
|
|
189
|
+
createInflateRaw,
|
|
190
|
+
deflate,
|
|
191
|
+
deflateRaw,
|
|
192
|
+
deflateRawSync,
|
|
193
|
+
deflateSync,
|
|
194
|
+
inflate,
|
|
195
|
+
inflateRaw,
|
|
196
|
+
inflateRawSync,
|
|
197
|
+
inflateSync,
|
|
198
|
+
Gunzip,
|
|
199
|
+
Gzip,
|
|
200
|
+
createGunzip,
|
|
201
|
+
createGzip,
|
|
202
|
+
gunzip,
|
|
203
|
+
gunzipSync,
|
|
204
|
+
gzip,
|
|
205
|
+
gzipSync,
|
|
206
|
+
Unzip,
|
|
207
|
+
createUnzip,
|
|
208
|
+
unzip,
|
|
209
|
+
unzipSync,
|
|
210
|
+
codes,
|
|
211
|
+
crc32
|
|
212
|
+
};
|