@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,241 @@
|
|
|
1
|
+
// npx -y node@22.14 -e 'const{constants}=require("http2");console.log(Object.entries(constants).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
|
|
2
|
+
export const NGHTTP2_ERR_FRAME_SIZE_ERROR = -522;
|
|
3
|
+
export const NGHTTP2_SESSION_SERVER = 0;
|
|
4
|
+
export const NGHTTP2_SESSION_CLIENT = 1;
|
|
5
|
+
export const NGHTTP2_STREAM_STATE_IDLE = 1;
|
|
6
|
+
export const NGHTTP2_STREAM_STATE_OPEN = 2;
|
|
7
|
+
export const NGHTTP2_STREAM_STATE_RESERVED_LOCAL = 3;
|
|
8
|
+
export const NGHTTP2_STREAM_STATE_RESERVED_REMOTE = 4;
|
|
9
|
+
export const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL = 5;
|
|
10
|
+
export const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE = 6;
|
|
11
|
+
export const NGHTTP2_STREAM_STATE_CLOSED = 7;
|
|
12
|
+
export const NGHTTP2_FLAG_NONE = 0;
|
|
13
|
+
export const NGHTTP2_FLAG_END_STREAM = 1;
|
|
14
|
+
export const NGHTTP2_FLAG_END_HEADERS = 4;
|
|
15
|
+
export const NGHTTP2_FLAG_ACK = 1;
|
|
16
|
+
export const NGHTTP2_FLAG_PADDED = 8;
|
|
17
|
+
export const NGHTTP2_FLAG_PRIORITY = 32;
|
|
18
|
+
export const DEFAULT_SETTINGS_HEADER_TABLE_SIZE = 4096;
|
|
19
|
+
export const DEFAULT_SETTINGS_ENABLE_PUSH = 1;
|
|
20
|
+
export const DEFAULT_SETTINGS_MAX_CONCURRENT_STREAMS = 4294967295;
|
|
21
|
+
export const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE = 65535;
|
|
22
|
+
export const DEFAULT_SETTINGS_MAX_FRAME_SIZE = 16384;
|
|
23
|
+
export const DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE = 65535;
|
|
24
|
+
export const DEFAULT_SETTINGS_ENABLE_CONNECT_PROTOCOL = 0;
|
|
25
|
+
export const MAX_MAX_FRAME_SIZE = 16777215;
|
|
26
|
+
export const MIN_MAX_FRAME_SIZE = 16384;
|
|
27
|
+
export const MAX_INITIAL_WINDOW_SIZE = 2147483647;
|
|
28
|
+
export const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE = 1;
|
|
29
|
+
export const NGHTTP2_SETTINGS_ENABLE_PUSH = 2;
|
|
30
|
+
export const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS = 3;
|
|
31
|
+
export const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE = 4;
|
|
32
|
+
export const NGHTTP2_SETTINGS_MAX_FRAME_SIZE = 5;
|
|
33
|
+
export const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE = 6;
|
|
34
|
+
export const NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL = 8;
|
|
35
|
+
export const PADDING_STRATEGY_NONE = 0;
|
|
36
|
+
export const PADDING_STRATEGY_ALIGNED = 1;
|
|
37
|
+
export const PADDING_STRATEGY_MAX = 2;
|
|
38
|
+
export const PADDING_STRATEGY_CALLBACK = 1;
|
|
39
|
+
export const NGHTTP2_NO_ERROR = 0;
|
|
40
|
+
export const NGHTTP2_PROTOCOL_ERROR = 1;
|
|
41
|
+
export const NGHTTP2_INTERNAL_ERROR = 2;
|
|
42
|
+
export const NGHTTP2_FLOW_CONTROL_ERROR = 3;
|
|
43
|
+
export const NGHTTP2_SETTINGS_TIMEOUT = 4;
|
|
44
|
+
export const NGHTTP2_STREAM_CLOSED = 5;
|
|
45
|
+
export const NGHTTP2_FRAME_SIZE_ERROR = 6;
|
|
46
|
+
export const NGHTTP2_REFUSED_STREAM = 7;
|
|
47
|
+
export const NGHTTP2_CANCEL = 8;
|
|
48
|
+
export const NGHTTP2_COMPRESSION_ERROR = 9;
|
|
49
|
+
export const NGHTTP2_CONNECT_ERROR = 10;
|
|
50
|
+
export const NGHTTP2_ENHANCE_YOUR_CALM = 11;
|
|
51
|
+
export const NGHTTP2_INADEQUATE_SECURITY = 12;
|
|
52
|
+
export const NGHTTP2_HTTP_1_1_REQUIRED = 13;
|
|
53
|
+
export const NGHTTP2_DEFAULT_WEIGHT = 16;
|
|
54
|
+
export const HTTP2_HEADER_STATUS = ":status";
|
|
55
|
+
export const HTTP2_HEADER_METHOD = ":method";
|
|
56
|
+
export const HTTP2_HEADER_AUTHORITY = ":authority";
|
|
57
|
+
export const HTTP2_HEADER_SCHEME = ":scheme";
|
|
58
|
+
export const HTTP2_HEADER_PATH = ":path";
|
|
59
|
+
export const HTTP2_HEADER_PROTOCOL = ":protocol";
|
|
60
|
+
export const HTTP2_HEADER_ACCEPT_ENCODING = "accept-encoding";
|
|
61
|
+
export const HTTP2_HEADER_ACCEPT_LANGUAGE = "accept-language";
|
|
62
|
+
export const HTTP2_HEADER_ACCEPT_RANGES = "accept-ranges";
|
|
63
|
+
export const HTTP2_HEADER_ACCEPT = "accept";
|
|
64
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS = "access-control-allow-credentials";
|
|
65
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS = "access-control-allow-headers";
|
|
66
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS = "access-control-allow-methods";
|
|
67
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN = "access-control-allow-origin";
|
|
68
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS = "access-control-expose-headers";
|
|
69
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS = "access-control-request-headers";
|
|
70
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD = "access-control-request-method";
|
|
71
|
+
export const HTTP2_HEADER_AGE = "age";
|
|
72
|
+
export const HTTP2_HEADER_AUTHORIZATION = "authorization";
|
|
73
|
+
export const HTTP2_HEADER_CACHE_CONTROL = "cache-control";
|
|
74
|
+
export const HTTP2_HEADER_CONNECTION = "connection";
|
|
75
|
+
export const HTTP2_HEADER_CONTENT_DISPOSITION = "content-disposition";
|
|
76
|
+
export const HTTP2_HEADER_CONTENT_ENCODING = "content-encoding";
|
|
77
|
+
export const HTTP2_HEADER_CONTENT_LENGTH = "content-length";
|
|
78
|
+
export const HTTP2_HEADER_CONTENT_TYPE = "content-type";
|
|
79
|
+
export const HTTP2_HEADER_COOKIE = "cookie";
|
|
80
|
+
export const HTTP2_HEADER_DATE = "date";
|
|
81
|
+
export const HTTP2_HEADER_ETAG = "etag";
|
|
82
|
+
export const HTTP2_HEADER_FORWARDED = "forwarded";
|
|
83
|
+
export const HTTP2_HEADER_HOST = "host";
|
|
84
|
+
export const HTTP2_HEADER_IF_MODIFIED_SINCE = "if-modified-since";
|
|
85
|
+
export const HTTP2_HEADER_IF_NONE_MATCH = "if-none-match";
|
|
86
|
+
export const HTTP2_HEADER_IF_RANGE = "if-range";
|
|
87
|
+
export const HTTP2_HEADER_LAST_MODIFIED = "last-modified";
|
|
88
|
+
export const HTTP2_HEADER_LINK = "link";
|
|
89
|
+
export const HTTP2_HEADER_LOCATION = "location";
|
|
90
|
+
export const HTTP2_HEADER_RANGE = "range";
|
|
91
|
+
export const HTTP2_HEADER_REFERER = "referer";
|
|
92
|
+
export const HTTP2_HEADER_SERVER = "server";
|
|
93
|
+
export const HTTP2_HEADER_SET_COOKIE = "set-cookie";
|
|
94
|
+
export const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY = "strict-transport-security";
|
|
95
|
+
export const HTTP2_HEADER_TRANSFER_ENCODING = "transfer-encoding";
|
|
96
|
+
export const HTTP2_HEADER_TE = "te";
|
|
97
|
+
export const HTTP2_HEADER_UPGRADE_INSECURE_REQUESTS = "upgrade-insecure-requests";
|
|
98
|
+
export const HTTP2_HEADER_UPGRADE = "upgrade";
|
|
99
|
+
export const HTTP2_HEADER_USER_AGENT = "user-agent";
|
|
100
|
+
export const HTTP2_HEADER_VARY = "vary";
|
|
101
|
+
export const HTTP2_HEADER_X_CONTENT_TYPE_OPTIONS = "x-content-type-options";
|
|
102
|
+
export const HTTP2_HEADER_X_FRAME_OPTIONS = "x-frame-options";
|
|
103
|
+
export const HTTP2_HEADER_KEEP_ALIVE = "keep-alive";
|
|
104
|
+
export const HTTP2_HEADER_PROXY_CONNECTION = "proxy-connection";
|
|
105
|
+
export const HTTP2_HEADER_X_XSS_PROTECTION = "x-xss-protection";
|
|
106
|
+
export const HTTP2_HEADER_ALT_SVC = "alt-svc";
|
|
107
|
+
export const HTTP2_HEADER_CONTENT_SECURITY_POLICY = "content-security-policy";
|
|
108
|
+
export const HTTP2_HEADER_EARLY_DATA = "early-data";
|
|
109
|
+
export const HTTP2_HEADER_EXPECT_CT = "expect-ct";
|
|
110
|
+
export const HTTP2_HEADER_ORIGIN = "origin";
|
|
111
|
+
export const HTTP2_HEADER_PURPOSE = "purpose";
|
|
112
|
+
export const HTTP2_HEADER_TIMING_ALLOW_ORIGIN = "timing-allow-origin";
|
|
113
|
+
export const HTTP2_HEADER_X_FORWARDED_FOR = "x-forwarded-for";
|
|
114
|
+
export const HTTP2_HEADER_PRIORITY = "priority";
|
|
115
|
+
export const HTTP2_HEADER_ACCEPT_CHARSET = "accept-charset";
|
|
116
|
+
export const HTTP2_HEADER_ACCESS_CONTROL_MAX_AGE = "access-control-max-age";
|
|
117
|
+
export const HTTP2_HEADER_ALLOW = "allow";
|
|
118
|
+
export const HTTP2_HEADER_CONTENT_LANGUAGE = "content-language";
|
|
119
|
+
export const HTTP2_HEADER_CONTENT_LOCATION = "content-location";
|
|
120
|
+
export const HTTP2_HEADER_CONTENT_MD5 = "content-md5";
|
|
121
|
+
export const HTTP2_HEADER_CONTENT_RANGE = "content-range";
|
|
122
|
+
export const HTTP2_HEADER_DNT = "dnt";
|
|
123
|
+
export const HTTP2_HEADER_EXPECT = "expect";
|
|
124
|
+
export const HTTP2_HEADER_EXPIRES = "expires";
|
|
125
|
+
export const HTTP2_HEADER_FROM = "from";
|
|
126
|
+
export const HTTP2_HEADER_IF_MATCH = "if-match";
|
|
127
|
+
export const HTTP2_HEADER_IF_UNMODIFIED_SINCE = "if-unmodified-since";
|
|
128
|
+
export const HTTP2_HEADER_MAX_FORWARDS = "max-forwards";
|
|
129
|
+
export const HTTP2_HEADER_PREFER = "prefer";
|
|
130
|
+
export const HTTP2_HEADER_PROXY_AUTHENTICATE = "proxy-authenticate";
|
|
131
|
+
export const HTTP2_HEADER_PROXY_AUTHORIZATION = "proxy-authorization";
|
|
132
|
+
export const HTTP2_HEADER_REFRESH = "refresh";
|
|
133
|
+
export const HTTP2_HEADER_RETRY_AFTER = "retry-after";
|
|
134
|
+
export const HTTP2_HEADER_TRAILER = "trailer";
|
|
135
|
+
export const HTTP2_HEADER_TK = "tk";
|
|
136
|
+
export const HTTP2_HEADER_VIA = "via";
|
|
137
|
+
export const HTTP2_HEADER_WARNING = "warning";
|
|
138
|
+
export const HTTP2_HEADER_WWW_AUTHENTICATE = "www-authenticate";
|
|
139
|
+
export const HTTP2_HEADER_HTTP2_SETTINGS = "http2-settings";
|
|
140
|
+
export const HTTP2_METHOD_ACL = "ACL";
|
|
141
|
+
export const HTTP2_METHOD_BASELINE_CONTROL = "BASELINE-CONTROL";
|
|
142
|
+
export const HTTP2_METHOD_BIND = "BIND";
|
|
143
|
+
export const HTTP2_METHOD_CHECKIN = "CHECKIN";
|
|
144
|
+
export const HTTP2_METHOD_CHECKOUT = "CHECKOUT";
|
|
145
|
+
export const HTTP2_METHOD_CONNECT = "CONNECT";
|
|
146
|
+
export const HTTP2_METHOD_COPY = "COPY";
|
|
147
|
+
export const HTTP2_METHOD_DELETE = "DELETE";
|
|
148
|
+
export const HTTP2_METHOD_GET = "GET";
|
|
149
|
+
export const HTTP2_METHOD_HEAD = "HEAD";
|
|
150
|
+
export const HTTP2_METHOD_LABEL = "LABEL";
|
|
151
|
+
export const HTTP2_METHOD_LINK = "LINK";
|
|
152
|
+
export const HTTP2_METHOD_LOCK = "LOCK";
|
|
153
|
+
export const HTTP2_METHOD_MERGE = "MERGE";
|
|
154
|
+
export const HTTP2_METHOD_MKACTIVITY = "MKACTIVITY";
|
|
155
|
+
export const HTTP2_METHOD_MKCALENDAR = "MKCALENDAR";
|
|
156
|
+
export const HTTP2_METHOD_MKCOL = "MKCOL";
|
|
157
|
+
export const HTTP2_METHOD_MKREDIRECTREF = "MKREDIRECTREF";
|
|
158
|
+
export const HTTP2_METHOD_MKWORKSPACE = "MKWORKSPACE";
|
|
159
|
+
export const HTTP2_METHOD_MOVE = "MOVE";
|
|
160
|
+
export const HTTP2_METHOD_OPTIONS = "OPTIONS";
|
|
161
|
+
export const HTTP2_METHOD_ORDERPATCH = "ORDERPATCH";
|
|
162
|
+
export const HTTP2_METHOD_PATCH = "PATCH";
|
|
163
|
+
export const HTTP2_METHOD_POST = "POST";
|
|
164
|
+
export const HTTP2_METHOD_PRI = "PRI";
|
|
165
|
+
export const HTTP2_METHOD_PROPFIND = "PROPFIND";
|
|
166
|
+
export const HTTP2_METHOD_PROPPATCH = "PROPPATCH";
|
|
167
|
+
export const HTTP2_METHOD_PUT = "PUT";
|
|
168
|
+
export const HTTP2_METHOD_REBIND = "REBIND";
|
|
169
|
+
export const HTTP2_METHOD_REPORT = "REPORT";
|
|
170
|
+
export const HTTP2_METHOD_SEARCH = "SEARCH";
|
|
171
|
+
export const HTTP2_METHOD_TRACE = "TRACE";
|
|
172
|
+
export const HTTP2_METHOD_UNBIND = "UNBIND";
|
|
173
|
+
export const HTTP2_METHOD_UNCHECKOUT = "UNCHECKOUT";
|
|
174
|
+
export const HTTP2_METHOD_UNLINK = "UNLINK";
|
|
175
|
+
export const HTTP2_METHOD_UNLOCK = "UNLOCK";
|
|
176
|
+
export const HTTP2_METHOD_UPDATE = "UPDATE";
|
|
177
|
+
export const HTTP2_METHOD_UPDATEREDIRECTREF = "UPDATEREDIRECTREF";
|
|
178
|
+
export const HTTP2_METHOD_VERSION_CONTROL = "VERSION-CONTROL";
|
|
179
|
+
export const HTTP_STATUS_CONTINUE = 100;
|
|
180
|
+
export const HTTP_STATUS_SWITCHING_PROTOCOLS = 101;
|
|
181
|
+
export const HTTP_STATUS_PROCESSING = 102;
|
|
182
|
+
export const HTTP_STATUS_EARLY_HINTS = 103;
|
|
183
|
+
export const HTTP_STATUS_OK = 200;
|
|
184
|
+
export const HTTP_STATUS_CREATED = 201;
|
|
185
|
+
export const HTTP_STATUS_ACCEPTED = 202;
|
|
186
|
+
export const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION = 203;
|
|
187
|
+
export const HTTP_STATUS_NO_CONTENT = 204;
|
|
188
|
+
export const HTTP_STATUS_RESET_CONTENT = 205;
|
|
189
|
+
export const HTTP_STATUS_PARTIAL_CONTENT = 206;
|
|
190
|
+
export const HTTP_STATUS_MULTI_STATUS = 207;
|
|
191
|
+
export const HTTP_STATUS_ALREADY_REPORTED = 208;
|
|
192
|
+
export const HTTP_STATUS_IM_USED = 226;
|
|
193
|
+
export const HTTP_STATUS_MULTIPLE_CHOICES = 300;
|
|
194
|
+
export const HTTP_STATUS_MOVED_PERMANENTLY = 301;
|
|
195
|
+
export const HTTP_STATUS_FOUND = 302;
|
|
196
|
+
export const HTTP_STATUS_SEE_OTHER = 303;
|
|
197
|
+
export const HTTP_STATUS_NOT_MODIFIED = 304;
|
|
198
|
+
export const HTTP_STATUS_USE_PROXY = 305;
|
|
199
|
+
export const HTTP_STATUS_TEMPORARY_REDIRECT = 307;
|
|
200
|
+
export const HTTP_STATUS_PERMANENT_REDIRECT = 308;
|
|
201
|
+
export const HTTP_STATUS_BAD_REQUEST = 400;
|
|
202
|
+
export const HTTP_STATUS_UNAUTHORIZED = 401;
|
|
203
|
+
export const HTTP_STATUS_PAYMENT_REQUIRED = 402;
|
|
204
|
+
export const HTTP_STATUS_FORBIDDEN = 403;
|
|
205
|
+
export const HTTP_STATUS_NOT_FOUND = 404;
|
|
206
|
+
export const HTTP_STATUS_METHOD_NOT_ALLOWED = 405;
|
|
207
|
+
export const HTTP_STATUS_NOT_ACCEPTABLE = 406;
|
|
208
|
+
export const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407;
|
|
209
|
+
export const HTTP_STATUS_REQUEST_TIMEOUT = 408;
|
|
210
|
+
export const HTTP_STATUS_CONFLICT = 409;
|
|
211
|
+
export const HTTP_STATUS_GONE = 410;
|
|
212
|
+
export const HTTP_STATUS_LENGTH_REQUIRED = 411;
|
|
213
|
+
export const HTTP_STATUS_PRECONDITION_FAILED = 412;
|
|
214
|
+
export const HTTP_STATUS_PAYLOAD_TOO_LARGE = 413;
|
|
215
|
+
export const HTTP_STATUS_URI_TOO_LONG = 414;
|
|
216
|
+
export const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415;
|
|
217
|
+
export const HTTP_STATUS_RANGE_NOT_SATISFIABLE = 416;
|
|
218
|
+
export const HTTP_STATUS_EXPECTATION_FAILED = 417;
|
|
219
|
+
export const HTTP_STATUS_TEAPOT = 418;
|
|
220
|
+
export const HTTP_STATUS_MISDIRECTED_REQUEST = 421;
|
|
221
|
+
export const HTTP_STATUS_UNPROCESSABLE_ENTITY = 422;
|
|
222
|
+
export const HTTP_STATUS_LOCKED = 423;
|
|
223
|
+
export const HTTP_STATUS_FAILED_DEPENDENCY = 424;
|
|
224
|
+
export const HTTP_STATUS_TOO_EARLY = 425;
|
|
225
|
+
export const HTTP_STATUS_UPGRADE_REQUIRED = 426;
|
|
226
|
+
export const HTTP_STATUS_PRECONDITION_REQUIRED = 428;
|
|
227
|
+
export const HTTP_STATUS_TOO_MANY_REQUESTS = 429;
|
|
228
|
+
export const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
|
|
229
|
+
export const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS = 451;
|
|
230
|
+
export const HTTP_STATUS_INTERNAL_SERVER_ERROR = 500;
|
|
231
|
+
export const HTTP_STATUS_NOT_IMPLEMENTED = 501;
|
|
232
|
+
export const HTTP_STATUS_BAD_GATEWAY = 502;
|
|
233
|
+
export const HTTP_STATUS_SERVICE_UNAVAILABLE = 503;
|
|
234
|
+
export const HTTP_STATUS_GATEWAY_TIMEOUT = 504;
|
|
235
|
+
export const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED = 505;
|
|
236
|
+
export const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES = 506;
|
|
237
|
+
export const HTTP_STATUS_INSUFFICIENT_STORAGE = 507;
|
|
238
|
+
export const HTTP_STATUS_LOOP_DETECTED = 508;
|
|
239
|
+
export const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED = 509;
|
|
240
|
+
export const HTTP_STATUS_NOT_EXTENDED = 510;
|
|
241
|
+
export const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED = 511;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type nodeNet from "node:net";
|
|
2
|
+
import { EventEmitter } from "node:events";
|
|
3
|
+
// Docs: https://nodejs.org/api/net.html#net_class_net_server
|
|
4
|
+
export declare class Server extends EventEmitter implements nodeNet.Server {
|
|
5
|
+
readonly __unenv__: true;
|
|
6
|
+
maxConnections: number;
|
|
7
|
+
connections: number;
|
|
8
|
+
readonly listening: boolean;
|
|
9
|
+
constructor(arg1?: nodeNet.ServerOpts | ((socket: nodeNet.Socket) => void), arg2?: (socket: nodeNet.Socket) => void);
|
|
10
|
+
listen(): this;
|
|
11
|
+
close(callback?: (err?: Error) => void): this;
|
|
12
|
+
address(): nodeNet.AddressInfo | string | null;
|
|
13
|
+
getConnections(cb: (error: Error | null, count: number) => void): void;
|
|
14
|
+
ref(): this;
|
|
15
|
+
unref(): this;
|
|
16
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createNotImplementedError } from "../../../_internal/utils.mjs";
|
|
2
|
+
import { EventEmitter } from "node:events";
|
|
3
|
+
// Docs: https://nodejs.org/api/net.html#net_class_net_server
|
|
4
|
+
export class Server extends EventEmitter {
|
|
5
|
+
__unenv__ = true;
|
|
6
|
+
maxConnections = 1;
|
|
7
|
+
connections = 0;
|
|
8
|
+
listening = false;
|
|
9
|
+
constructor(arg1, arg2) {
|
|
10
|
+
super();
|
|
11
|
+
}
|
|
12
|
+
listen() {
|
|
13
|
+
throw createNotImplementedError("node:net.Server.listen()");
|
|
14
|
+
}
|
|
15
|
+
close(callback) {
|
|
16
|
+
throw createNotImplementedError("node:net.Server.close()");
|
|
17
|
+
}
|
|
18
|
+
address() {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
getConnections(cb) {
|
|
22
|
+
cb(null, 0);
|
|
23
|
+
}
|
|
24
|
+
ref() {
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
unref() {
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
[Symbol.asyncDispose]() {
|
|
31
|
+
return Promise.resolve();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type nodeNet from "node:net";
|
|
2
|
+
import { type Callback, type BufferEncoding } from "../../../_internal/types.mjs";
|
|
3
|
+
// Relative stream import required, see https://github.com/unjs/unenv/issues/353
|
|
4
|
+
import { Duplex } from "../stream/duplex.mjs";
|
|
5
|
+
// Docs: https://nodejs.org/api/net.html#net_class_net_socket
|
|
6
|
+
export declare class Socket extends Duplex implements nodeNet.Socket {
|
|
7
|
+
readonly __unenv__: true;
|
|
8
|
+
readonly bufferSize: number;
|
|
9
|
+
readonly bytesRead: number;
|
|
10
|
+
readonly bytesWritten: number;
|
|
11
|
+
readonly connecting: boolean;
|
|
12
|
+
readonly destroyed: boolean;
|
|
13
|
+
readonly pending: boolean;
|
|
14
|
+
readonly localAddress: string;
|
|
15
|
+
readonly localPort: number;
|
|
16
|
+
readonly remoteAddress?: string;
|
|
17
|
+
readonly remoteFamily?: string;
|
|
18
|
+
readonly remotePort?: number;
|
|
19
|
+
readonly autoSelectFamilyAttemptedAddresses: readonly [];
|
|
20
|
+
readonly readyState: nodeNet.SocketReadyState;
|
|
21
|
+
constructor(_options?: nodeNet.SocketConstructorOpts);
|
|
22
|
+
write(_buffer: Uint8Array | string, _arg1?: BufferEncoding | Callback<Error | undefined>, _arg2?: Callback<Error | undefined>): boolean;
|
|
23
|
+
connect(_arg1: number | string | nodeNet.SocketConnectOpts, _arg2?: string | Callback, _arg3?: Callback);
|
|
24
|
+
end(_arg1?: Callback | Uint8Array | string, _arg2?: BufferEncoding | Callback, _arg3?: Callback);
|
|
25
|
+
setEncoding(_encoding?: BufferEncoding): this;
|
|
26
|
+
pause();
|
|
27
|
+
resume();
|
|
28
|
+
setTimeout(_timeout: number, _callback?: Callback): this;
|
|
29
|
+
setNoDelay(_noDelay?: boolean): this;
|
|
30
|
+
setKeepAlive(_enable?: boolean, _initialDelay?: number): this;
|
|
31
|
+
address(): {};
|
|
32
|
+
unref();
|
|
33
|
+
ref();
|
|
34
|
+
destroySoon();
|
|
35
|
+
resetAndDestroy();
|
|
36
|
+
}
|
|
37
|
+
export declare class SocketAddress implements nodeNet.SocketAddress {
|
|
38
|
+
readonly __unenv__: true;
|
|
39
|
+
address: string;
|
|
40
|
+
family: "ipv4" | "ipv6";
|
|
41
|
+
port: number;
|
|
42
|
+
flowlabel: number;
|
|
43
|
+
static parse(_address: string, _port?: number): undefined;
|
|
44
|
+
constructor(options: nodeNet.SocketAddress);
|
|
45
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// Relative stream import required, see https://github.com/unjs/unenv/issues/353
|
|
2
|
+
import { Duplex } from "../stream/duplex.mjs";
|
|
3
|
+
// Docs: https://nodejs.org/api/net.html#net_class_net_socket
|
|
4
|
+
export class Socket extends Duplex {
|
|
5
|
+
__unenv__ = true;
|
|
6
|
+
bufferSize = 0;
|
|
7
|
+
bytesRead = 0;
|
|
8
|
+
bytesWritten = 0;
|
|
9
|
+
connecting = false;
|
|
10
|
+
destroyed = false;
|
|
11
|
+
pending = false;
|
|
12
|
+
localAddress = "";
|
|
13
|
+
localPort = 0;
|
|
14
|
+
remoteAddress = "";
|
|
15
|
+
remoteFamily = "";
|
|
16
|
+
remotePort = 0;
|
|
17
|
+
autoSelectFamilyAttemptedAddresses = [];
|
|
18
|
+
readyState = "readOnly";
|
|
19
|
+
constructor(_options) {
|
|
20
|
+
super();
|
|
21
|
+
}
|
|
22
|
+
write(_buffer, _arg1, _arg2) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
connect(_arg1, _arg2, _arg3) {
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
end(_arg1, _arg2, _arg3) {
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
setEncoding(_encoding) {
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
pause() {
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
resume() {
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
setTimeout(_timeout, _callback) {
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
setNoDelay(_noDelay) {
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
setKeepAlive(_enable, _initialDelay) {
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
address() {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
unref() {
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
ref() {
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
destroySoon() {
|
|
59
|
+
this.destroy();
|
|
60
|
+
}
|
|
61
|
+
resetAndDestroy() {
|
|
62
|
+
const err = new Error("ERR_SOCKET_CLOSED");
|
|
63
|
+
err.code = "ERR_SOCKET_CLOSED";
|
|
64
|
+
this.destroy(err);
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export class SocketAddress {
|
|
69
|
+
__unenv__ = true;
|
|
70
|
+
address;
|
|
71
|
+
family;
|
|
72
|
+
port;
|
|
73
|
+
flowlabel;
|
|
74
|
+
static parse(_address, _port) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
constructor(options) {
|
|
78
|
+
this.address = options.address;
|
|
79
|
+
this.family = options.family;
|
|
80
|
+
this.port = options.port;
|
|
81
|
+
this.flowlabel = options.flowlabel;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// npx -y node@22.14 -e 'const{constants}=require("os");console.log(Object.entries(constants).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
|
|
2
|
+
export declare const UV_UDP_REUSEADDR = 4;
|
|
3
|
+
export declare const dlopen: {
|
|
4
|
+
RTLD_LAZY: number;
|
|
5
|
+
RTLD_NOW: number;
|
|
6
|
+
RTLD_GLOBAL: number;
|
|
7
|
+
RTLD_LOCAL: number;
|
|
8
|
+
RTLD_DEEPBIND: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const errno: {
|
|
11
|
+
E2BIG: number;
|
|
12
|
+
EACCES: number;
|
|
13
|
+
EADDRINUSE: number;
|
|
14
|
+
EADDRNOTAVAIL: number;
|
|
15
|
+
EAFNOSUPPORT: number;
|
|
16
|
+
EAGAIN: number;
|
|
17
|
+
EALREADY: number;
|
|
18
|
+
EBADF: number;
|
|
19
|
+
EBADMSG: number;
|
|
20
|
+
EBUSY: number;
|
|
21
|
+
ECANCELED: number;
|
|
22
|
+
ECHILD: number;
|
|
23
|
+
ECONNABORTED: number;
|
|
24
|
+
ECONNREFUSED: number;
|
|
25
|
+
ECONNRESET: number;
|
|
26
|
+
EDEADLK: number;
|
|
27
|
+
EDESTADDRREQ: number;
|
|
28
|
+
EDOM: number;
|
|
29
|
+
EDQUOT: number;
|
|
30
|
+
EEXIST: number;
|
|
31
|
+
EFAULT: number;
|
|
32
|
+
EFBIG: number;
|
|
33
|
+
EHOSTUNREACH: number;
|
|
34
|
+
EIDRM: number;
|
|
35
|
+
EILSEQ: number;
|
|
36
|
+
EINPROGRESS: number;
|
|
37
|
+
EINTR: number;
|
|
38
|
+
EINVAL: number;
|
|
39
|
+
EIO: number;
|
|
40
|
+
EISCONN: number;
|
|
41
|
+
EISDIR: number;
|
|
42
|
+
ELOOP: number;
|
|
43
|
+
EMFILE: number;
|
|
44
|
+
EMLINK: number;
|
|
45
|
+
EMSGSIZE: number;
|
|
46
|
+
EMULTIHOP: number;
|
|
47
|
+
ENAMETOOLONG: number;
|
|
48
|
+
ENETDOWN: number;
|
|
49
|
+
ENETRESET: number;
|
|
50
|
+
ENETUNREACH: number;
|
|
51
|
+
ENFILE: number;
|
|
52
|
+
ENOBUFS: number;
|
|
53
|
+
ENODATA: number;
|
|
54
|
+
ENODEV: number;
|
|
55
|
+
ENOENT: number;
|
|
56
|
+
ENOEXEC: number;
|
|
57
|
+
ENOLCK: number;
|
|
58
|
+
ENOLINK: number;
|
|
59
|
+
ENOMEM: number;
|
|
60
|
+
ENOMSG: number;
|
|
61
|
+
ENOPROTOOPT: number;
|
|
62
|
+
ENOSPC: number;
|
|
63
|
+
ENOSR: number;
|
|
64
|
+
ENOSTR: number;
|
|
65
|
+
ENOSYS: number;
|
|
66
|
+
ENOTCONN: number;
|
|
67
|
+
ENOTDIR: number;
|
|
68
|
+
ENOTEMPTY: number;
|
|
69
|
+
ENOTSOCK: number;
|
|
70
|
+
ENOTSUP: number;
|
|
71
|
+
ENOTTY: number;
|
|
72
|
+
ENXIO: number;
|
|
73
|
+
EOPNOTSUPP: number;
|
|
74
|
+
EOVERFLOW: number;
|
|
75
|
+
EPERM: number;
|
|
76
|
+
EPIPE: number;
|
|
77
|
+
EPROTO: number;
|
|
78
|
+
EPROTONOSUPPORT: number;
|
|
79
|
+
EPROTOTYPE: number;
|
|
80
|
+
ERANGE: number;
|
|
81
|
+
EROFS: number;
|
|
82
|
+
ESPIPE: number;
|
|
83
|
+
ESRCH: number;
|
|
84
|
+
ESTALE: number;
|
|
85
|
+
ETIME: number;
|
|
86
|
+
ETIMEDOUT: number;
|
|
87
|
+
ETXTBSY: number;
|
|
88
|
+
EWOULDBLOCK: number;
|
|
89
|
+
EXDEV: number;
|
|
90
|
+
};
|
|
91
|
+
export declare const signals: {
|
|
92
|
+
SIGHUP: number;
|
|
93
|
+
SIGINT: number;
|
|
94
|
+
SIGQUIT: number;
|
|
95
|
+
SIGILL: number;
|
|
96
|
+
SIGTRAP: number;
|
|
97
|
+
SIGABRT: number;
|
|
98
|
+
SIGIOT: number;
|
|
99
|
+
SIGBUS: number;
|
|
100
|
+
SIGFPE: number;
|
|
101
|
+
SIGKILL: number;
|
|
102
|
+
SIGUSR1: number;
|
|
103
|
+
SIGSEGV: number;
|
|
104
|
+
SIGUSR2: number;
|
|
105
|
+
SIGPIPE: number;
|
|
106
|
+
SIGALRM: number;
|
|
107
|
+
SIGTERM: number;
|
|
108
|
+
SIGCHLD: number;
|
|
109
|
+
SIGSTKFLT: number;
|
|
110
|
+
SIGCONT: number;
|
|
111
|
+
SIGSTOP: number;
|
|
112
|
+
SIGTSTP: number;
|
|
113
|
+
SIGTTIN: number;
|
|
114
|
+
SIGTTOU: number;
|
|
115
|
+
SIGURG: number;
|
|
116
|
+
SIGXCPU: number;
|
|
117
|
+
SIGXFSZ: number;
|
|
118
|
+
SIGVTALRM: number;
|
|
119
|
+
SIGPROF: number;
|
|
120
|
+
SIGWINCH: number;
|
|
121
|
+
SIGIO: number;
|
|
122
|
+
SIGPOLL: number;
|
|
123
|
+
SIGPWR: number;
|
|
124
|
+
SIGSYS: number;
|
|
125
|
+
};
|
|
126
|
+
export declare const priority: {
|
|
127
|
+
PRIORITY_LOW: number;
|
|
128
|
+
PRIORITY_BELOW_NORMAL: number;
|
|
129
|
+
PRIORITY_NORMAL: number;
|
|
130
|
+
PRIORITY_ABOVE_NORMAL: number;
|
|
131
|
+
PRIORITY_HIGH: number;
|
|
132
|
+
PRIORITY_HIGHEST: number;
|
|
133
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// npx -y node@22.14 -e 'const{constants}=require("os");console.log(Object.entries(constants).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
|
|
2
|
+
export const UV_UDP_REUSEADDR = 4;
|
|
3
|
+
export const dlopen = {
|
|
4
|
+
RTLD_LAZY: 1,
|
|
5
|
+
RTLD_NOW: 2,
|
|
6
|
+
RTLD_GLOBAL: 256,
|
|
7
|
+
RTLD_LOCAL: 0,
|
|
8
|
+
RTLD_DEEPBIND: 8
|
|
9
|
+
};
|
|
10
|
+
export const errno = {
|
|
11
|
+
E2BIG: 7,
|
|
12
|
+
EACCES: 13,
|
|
13
|
+
EADDRINUSE: 98,
|
|
14
|
+
EADDRNOTAVAIL: 99,
|
|
15
|
+
EAFNOSUPPORT: 97,
|
|
16
|
+
EAGAIN: 11,
|
|
17
|
+
EALREADY: 114,
|
|
18
|
+
EBADF: 9,
|
|
19
|
+
EBADMSG: 74,
|
|
20
|
+
EBUSY: 16,
|
|
21
|
+
ECANCELED: 125,
|
|
22
|
+
ECHILD: 10,
|
|
23
|
+
ECONNABORTED: 103,
|
|
24
|
+
ECONNREFUSED: 111,
|
|
25
|
+
ECONNRESET: 104,
|
|
26
|
+
EDEADLK: 35,
|
|
27
|
+
EDESTADDRREQ: 89,
|
|
28
|
+
EDOM: 33,
|
|
29
|
+
EDQUOT: 122,
|
|
30
|
+
EEXIST: 17,
|
|
31
|
+
EFAULT: 14,
|
|
32
|
+
EFBIG: 27,
|
|
33
|
+
EHOSTUNREACH: 113,
|
|
34
|
+
EIDRM: 43,
|
|
35
|
+
EILSEQ: 84,
|
|
36
|
+
EINPROGRESS: 115,
|
|
37
|
+
EINTR: 4,
|
|
38
|
+
EINVAL: 22,
|
|
39
|
+
EIO: 5,
|
|
40
|
+
EISCONN: 106,
|
|
41
|
+
EISDIR: 21,
|
|
42
|
+
ELOOP: 40,
|
|
43
|
+
EMFILE: 24,
|
|
44
|
+
EMLINK: 31,
|
|
45
|
+
EMSGSIZE: 90,
|
|
46
|
+
EMULTIHOP: 72,
|
|
47
|
+
ENAMETOOLONG: 36,
|
|
48
|
+
ENETDOWN: 100,
|
|
49
|
+
ENETRESET: 102,
|
|
50
|
+
ENETUNREACH: 101,
|
|
51
|
+
ENFILE: 23,
|
|
52
|
+
ENOBUFS: 105,
|
|
53
|
+
ENODATA: 61,
|
|
54
|
+
ENODEV: 19,
|
|
55
|
+
ENOENT: 2,
|
|
56
|
+
ENOEXEC: 8,
|
|
57
|
+
ENOLCK: 37,
|
|
58
|
+
ENOLINK: 67,
|
|
59
|
+
ENOMEM: 12,
|
|
60
|
+
ENOMSG: 42,
|
|
61
|
+
ENOPROTOOPT: 92,
|
|
62
|
+
ENOSPC: 28,
|
|
63
|
+
ENOSR: 63,
|
|
64
|
+
ENOSTR: 60,
|
|
65
|
+
ENOSYS: 38,
|
|
66
|
+
ENOTCONN: 107,
|
|
67
|
+
ENOTDIR: 20,
|
|
68
|
+
ENOTEMPTY: 39,
|
|
69
|
+
ENOTSOCK: 88,
|
|
70
|
+
ENOTSUP: 95,
|
|
71
|
+
ENOTTY: 25,
|
|
72
|
+
ENXIO: 6,
|
|
73
|
+
EOPNOTSUPP: 95,
|
|
74
|
+
EOVERFLOW: 75,
|
|
75
|
+
EPERM: 1,
|
|
76
|
+
EPIPE: 32,
|
|
77
|
+
EPROTO: 71,
|
|
78
|
+
EPROTONOSUPPORT: 93,
|
|
79
|
+
EPROTOTYPE: 91,
|
|
80
|
+
ERANGE: 34,
|
|
81
|
+
EROFS: 30,
|
|
82
|
+
ESPIPE: 29,
|
|
83
|
+
ESRCH: 3,
|
|
84
|
+
ESTALE: 116,
|
|
85
|
+
ETIME: 62,
|
|
86
|
+
ETIMEDOUT: 110,
|
|
87
|
+
ETXTBSY: 26,
|
|
88
|
+
EWOULDBLOCK: 11,
|
|
89
|
+
EXDEV: 18
|
|
90
|
+
};
|
|
91
|
+
export const signals = {
|
|
92
|
+
SIGHUP: 1,
|
|
93
|
+
SIGINT: 2,
|
|
94
|
+
SIGQUIT: 3,
|
|
95
|
+
SIGILL: 4,
|
|
96
|
+
SIGTRAP: 5,
|
|
97
|
+
SIGABRT: 6,
|
|
98
|
+
SIGIOT: 6,
|
|
99
|
+
SIGBUS: 7,
|
|
100
|
+
SIGFPE: 8,
|
|
101
|
+
SIGKILL: 9,
|
|
102
|
+
SIGUSR1: 10,
|
|
103
|
+
SIGSEGV: 11,
|
|
104
|
+
SIGUSR2: 12,
|
|
105
|
+
SIGPIPE: 13,
|
|
106
|
+
SIGALRM: 14,
|
|
107
|
+
SIGTERM: 15,
|
|
108
|
+
SIGCHLD: 17,
|
|
109
|
+
SIGSTKFLT: 16,
|
|
110
|
+
SIGCONT: 18,
|
|
111
|
+
SIGSTOP: 19,
|
|
112
|
+
SIGTSTP: 20,
|
|
113
|
+
SIGTTIN: 21,
|
|
114
|
+
SIGTTOU: 22,
|
|
115
|
+
SIGURG: 23,
|
|
116
|
+
SIGXCPU: 24,
|
|
117
|
+
SIGXFSZ: 25,
|
|
118
|
+
SIGVTALRM: 26,
|
|
119
|
+
SIGPROF: 27,
|
|
120
|
+
SIGWINCH: 28,
|
|
121
|
+
SIGIO: 29,
|
|
122
|
+
SIGPOLL: 29,
|
|
123
|
+
SIGPWR: 30,
|
|
124
|
+
SIGSYS: 31
|
|
125
|
+
};
|
|
126
|
+
export const priority = {
|
|
127
|
+
PRIORITY_LOW: 19,
|
|
128
|
+
PRIORITY_BELOW_NORMAL: 10,
|
|
129
|
+
PRIORITY_NORMAL: 0,
|
|
130
|
+
PRIORITY_ABOVE_NORMAL: -7,
|
|
131
|
+
PRIORITY_HIGH: -14,
|
|
132
|
+
PRIORITY_HIGHEST: -20
|
|
133
|
+
};
|