@psnext/slingcli 3.3.20260911-1 → 3.3.20260914-1
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/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-VDBOM5UG.js → chunk-BRL3MDQL.js} +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +79 -32
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert/strict.d.ts +13 -56
- package/node_modules/@types/node/assert.d.ts +189 -190
- package/node_modules/@types/node/async_hooks.d.ts +151 -43
- package/node_modules/@types/node/buffer.buffer.d.ts +12 -13
- package/node_modules/@types/node/buffer.d.ts +103 -237
- package/node_modules/@types/node/child_process.d.ts +39 -154
- package/node_modules/@types/node/cluster.d.ts +238 -384
- package/node_modules/@types/node/console.d.ts +45 -404
- package/node_modules/@types/node/constants.d.ts +3 -10
- package/node_modules/@types/node/crypto.d.ts +1000 -1593
- package/node_modules/@types/node/dgram.d.ts +133 -81
- package/node_modules/@types/node/diagnostics_channel.d.ts +277 -59
- package/node_modules/@types/node/dns/promises.d.ts +9 -15
- package/node_modules/@types/node/dns.d.ts +136 -183
- package/node_modules/@types/node/domain.d.ts +12 -32
- package/node_modules/@types/node/events.d.ts +872 -840
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +256 -85
- package/node_modules/@types/node/fs.d.ts +865 -525
- package/node_modules/@types/node/globals.d.ts +12 -34
- package/node_modules/@types/node/globals.typedarray.d.ts +63 -0
- package/node_modules/@types/node/http.d.ts +433 -312
- package/node_modules/@types/node/http2.d.ts +545 -891
- package/node_modules/@types/node/https.d.ts +64 -243
- package/node_modules/@types/node/index.d.ts +25 -7
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +70 -58
- package/node_modules/@types/node/inspector.generated.d.ts +764 -410
- package/node_modules/@types/node/module.d.ts +54 -219
- package/node_modules/@types/node/net.d.ts +208 -222
- package/node_modules/@types/node/os.d.ts +41 -49
- package/node_modules/@types/node/package.json +13 -3
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +119 -141
- package/node_modules/@types/node/perf_hooks.d.ts +339 -690
- package/node_modules/@types/node/process.d.ts +389 -205
- package/node_modules/@types/node/punycode.d.ts +3 -31
- package/node_modules/@types/node/querystring.d.ts +3 -16
- package/node_modules/@types/node/quic.d.ts +2153 -0
- package/node_modules/@types/node/readline/promises.d.ts +3 -6
- package/node_modules/@types/node/readline.d.ts +66 -152
- package/node_modules/@types/node/repl.d.ts +101 -109
- package/node_modules/@types/node/sea.d.ts +1 -116
- package/node_modules/@types/node/sqlite.d.ts +486 -68
- package/node_modules/@types/node/stream/consumers.d.ts +91 -15
- package/node_modules/@types/node/stream/iter.d.ts +452 -0
- package/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/node/stream/web.d.ts +197 -454
- package/node_modules/@types/node/stream.d.ts +603 -491
- package/node_modules/@types/node/string_decoder.d.ts +3 -43
- package/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@types/node/test.d.ts +513 -292
- package/node_modules/@types/node/timers/promises.d.ts +3 -18
- package/node_modules/@types/node/timers.d.ts +3 -141
- package/node_modules/@types/node/tls.d.ts +166 -257
- package/node_modules/@types/node/trace_events.d.ts +3 -97
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -8
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +2 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +26 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
- package/node_modules/@types/node/tty.d.ts +61 -43
- package/node_modules/@types/node/url.d.ts +156 -584
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +170 -1099
- package/node_modules/@types/node/v8.d.ts +175 -36
- package/node_modules/@types/node/vfs.d.ts +211 -0
- package/node_modules/@types/node/vm.d.ts +292 -209
- package/node_modules/@types/node/wasi.d.ts +24 -74
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +14 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +97 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +257 -407
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +24 -165
- package/node_modules/undici-types/agent.d.ts +12 -13
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +13 -12
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +63 -37
- package/node_modules/undici-types/connector.d.ts +5 -2
- package/node_modules/undici-types/cookies.d.ts +3 -1
- package/node_modules/undici-types/diagnostics-channel.d.ts +18 -10
- package/node_modules/undici-types/dispatcher.d.ts +136 -139
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +92 -54
- package/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/undici-types/fetch.d.ts +51 -25
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +10 -9
- package/node_modules/undici-types/header.d.ts +162 -1
- package/node_modules/undici-types/index.d.ts +69 -47
- package/node_modules/undici-types/interceptors.d.ts +72 -9
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +26 -21
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -14
- package/node_modules/undici-types/proxy-agent.d.ts +14 -6
- package/node_modules/undici-types/readable.d.ts +19 -16
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +148 -30
- package/node_modules/undici-types/websocket.d.ts +48 -10
- package/node_modules/zod/README.md +2 -2
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +14 -30
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +1 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +2 -11
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -4
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +53 -137
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +70 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +87 -35
- package/node_modules/zod/src/v4/core/api.ts +21 -29
- package/node_modules/zod/src/v4/core/checks.ts +61 -1
- package/node_modules/zod/src/v4/core/compile.ts +35 -24
- package/node_modules/zod/src/v4/core/core.ts +1 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +9 -63
- package/node_modules/zod/src/v4/core/memoizer.ts +2 -5
- package/node_modules/zod/src/v4/core/regexes.ts +4 -0
- package/node_modules/zod/src/v4/core/schemas.ts +36 -109
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +177 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
- package/node_modules/zod/src/v4/core/to-json-schema.ts +1 -1
- package/node_modules/zod/src/v4/core/util.ts +0 -4
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/src/v4/core/visit.ts +0 -11
- package/node_modules/zod/src/v4/locales/ar.ts +1 -0
- package/node_modules/zod/src/v4/locales/az.ts +1 -0
- package/node_modules/zod/src/v4/locales/be.ts +1 -0
- package/node_modules/zod/src/v4/locales/bg.ts +1 -0
- package/node_modules/zod/src/v4/locales/bn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ca.ts +1 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
- package/node_modules/zod/src/v4/locales/cs.ts +1 -0
- package/node_modules/zod/src/v4/locales/da.ts +1 -0
- package/node_modules/zod/src/v4/locales/de.ts +1 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +1 -0
- package/node_modules/zod/src/v4/locales/eo.ts +1 -0
- package/node_modules/zod/src/v4/locales/es.ts +1 -0
- package/node_modules/zod/src/v4/locales/fa.ts +1 -0
- package/node_modules/zod/src/v4/locales/fi.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr.ts +1 -0
- package/node_modules/zod/src/v4/locales/gu.ts +1 -0
- package/node_modules/zod/src/v4/locales/he.ts +1 -0
- package/node_modules/zod/src/v4/locales/hi.ts +1 -0
- package/node_modules/zod/src/v4/locales/hr.ts +1 -0
- package/node_modules/zod/src/v4/locales/hu.ts +1 -0
- package/node_modules/zod/src/v4/locales/hy.ts +1 -0
- package/node_modules/zod/src/v4/locales/id.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +1 -0
- package/node_modules/zod/src/v4/locales/it.ts +1 -0
- package/node_modules/zod/src/v4/locales/ja.ts +1 -0
- package/node_modules/zod/src/v4/locales/ka.ts +1 -0
- package/node_modules/zod/src/v4/locales/km.ts +1 -0
- package/node_modules/zod/src/v4/locales/kn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ko.ts +1 -0
- package/node_modules/zod/src/v4/locales/lt.ts +1 -0
- package/node_modules/zod/src/v4/locales/mk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ms.ts +1 -0
- package/node_modules/zod/src/v4/locales/ne.ts +1 -0
- package/node_modules/zod/src/v4/locales/nl.ts +1 -0
- package/node_modules/zod/src/v4/locales/nn.ts +1 -0
- package/node_modules/zod/src/v4/locales/no.ts +1 -0
- package/node_modules/zod/src/v4/locales/ota.ts +1 -0
- package/node_modules/zod/src/v4/locales/pl.ts +1 -0
- package/node_modules/zod/src/v4/locales/ps.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt.ts +1 -0
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +1 -0
- package/node_modules/zod/src/v4/locales/sk.ts +1 -0
- package/node_modules/zod/src/v4/locales/sl.ts +1 -0
- package/node_modules/zod/src/v4/locales/sv.ts +1 -0
- package/node_modules/zod/src/v4/locales/ta.ts +1 -0
- package/node_modules/zod/src/v4/locales/tg.ts +1 -0
- package/node_modules/zod/src/v4/locales/th.ts +1 -0
- package/node_modules/zod/src/v4/locales/tk.ts +1 -0
- package/node_modules/zod/src/v4/locales/tr.ts +1 -0
- package/node_modules/zod/src/v4/locales/uk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ur.ts +1 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +1 -0
- package/node_modules/zod/src/v4/locales/yo.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +12 -23
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +56 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +7 -0
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/schemas.cjs +11 -15
- package/node_modules/zod/v4/classic/schemas.d.cts +4 -6
- package/node_modules/zod/v4/classic/schemas.d.ts +4 -6
- package/node_modules/zod/v4/classic/schemas.js +9 -13
- package/node_modules/zod/v4/core/api.cjs +11 -23
- package/node_modules/zod/v4/core/api.d.cts +8 -4
- package/node_modules/zod/v4/core/api.d.ts +8 -4
- package/node_modules/zod/v4/core/api.js +11 -23
- package/node_modules/zod/v4/core/checks.cjs +32 -1
- package/node_modules/zod/v4/core/checks.d.cts +16 -0
- package/node_modules/zod/v4/core/checks.d.ts +16 -0
- package/node_modules/zod/v4/core/checks.js +31 -0
- package/node_modules/zod/v4/core/compile.cjs +12 -17
- package/node_modules/zod/v4/core/compile.js +13 -18
- package/node_modules/zod/v4/core/core.cjs +1 -1
- package/node_modules/zod/v4/core/core.js +1 -1
- package/node_modules/zod/v4/core/json-schema-processors.cjs +8 -44
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -1
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -1
- package/node_modules/zod/v4/core/json-schema-processors.js +8 -43
- package/node_modules/zod/v4/core/memoizer.cjs +2 -5
- package/node_modules/zod/v4/core/memoizer.js +2 -5
- package/node_modules/zod/v4/core/regexes.cjs +4 -2
- package/node_modules/zod/v4/core/regexes.d.cts +1 -0
- package/node_modules/zod/v4/core/regexes.d.ts +1 -0
- package/node_modules/zod/v4/core/regexes.js +2 -0
- package/node_modules/zod/v4/core/schemas.cjs +33 -73
- package/node_modules/zod/v4/core/schemas.d.cts +7 -22
- package/node_modules/zod/v4/core/schemas.d.ts +7 -22
- package/node_modules/zod/v4/core/schemas.js +30 -72
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -1
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -3
- package/node_modules/zod/v4/core/to-json-schema.js +1 -1
- package/node_modules/zod/v4/core/util.cjs +0 -4
- package/node_modules/zod/v4/core/util.js +0 -4
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/node_modules/zod/v4/core/visit.cjs +0 -12
- package/node_modules/zod/v4/core/visit.js +0 -12
- package/node_modules/zod/v4/locales/ar.cjs +1 -0
- package/node_modules/zod/v4/locales/ar.js +1 -0
- package/node_modules/zod/v4/locales/az.cjs +1 -0
- package/node_modules/zod/v4/locales/az.js +1 -0
- package/node_modules/zod/v4/locales/be.cjs +1 -0
- package/node_modules/zod/v4/locales/be.js +1 -0
- package/node_modules/zod/v4/locales/bg.cjs +1 -0
- package/node_modules/zod/v4/locales/bg.js +1 -0
- package/node_modules/zod/v4/locales/bn.cjs +1 -0
- package/node_modules/zod/v4/locales/bn.js +1 -0
- package/node_modules/zod/v4/locales/ca.cjs +1 -0
- package/node_modules/zod/v4/locales/ca.js +1 -0
- package/node_modules/zod/v4/locales/ckb.cjs +1 -0
- package/node_modules/zod/v4/locales/ckb.js +1 -0
- package/node_modules/zod/v4/locales/cs.cjs +1 -0
- package/node_modules/zod/v4/locales/cs.js +1 -0
- package/node_modules/zod/v4/locales/da.cjs +1 -0
- package/node_modules/zod/v4/locales/da.js +1 -0
- package/node_modules/zod/v4/locales/de.cjs +1 -0
- package/node_modules/zod/v4/locales/de.js +1 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +1 -0
- package/node_modules/zod/v4/locales/en.js +1 -0
- package/node_modules/zod/v4/locales/eo.cjs +1 -0
- package/node_modules/zod/v4/locales/eo.js +1 -0
- package/node_modules/zod/v4/locales/es.cjs +1 -0
- package/node_modules/zod/v4/locales/es.js +1 -0
- package/node_modules/zod/v4/locales/fa.cjs +1 -0
- package/node_modules/zod/v4/locales/fa.js +1 -0
- package/node_modules/zod/v4/locales/fi.cjs +1 -0
- package/node_modules/zod/v4/locales/fi.js +1 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
- package/node_modules/zod/v4/locales/fr-CA.js +1 -0
- package/node_modules/zod/v4/locales/fr.cjs +1 -0
- package/node_modules/zod/v4/locales/fr.js +1 -0
- package/node_modules/zod/v4/locales/gu.cjs +1 -0
- package/node_modules/zod/v4/locales/gu.js +1 -0
- package/node_modules/zod/v4/locales/he.cjs +1 -0
- package/node_modules/zod/v4/locales/he.js +1 -0
- package/node_modules/zod/v4/locales/hi.cjs +1 -0
- package/node_modules/zod/v4/locales/hi.js +1 -0
- package/node_modules/zod/v4/locales/hr.cjs +1 -0
- package/node_modules/zod/v4/locales/hr.js +1 -0
- package/node_modules/zod/v4/locales/hu.cjs +1 -0
- package/node_modules/zod/v4/locales/hu.js +1 -0
- package/node_modules/zod/v4/locales/hy.cjs +1 -0
- package/node_modules/zod/v4/locales/hy.js +1 -0
- package/node_modules/zod/v4/locales/id.cjs +1 -0
- package/node_modules/zod/v4/locales/id.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +1 -0
- package/node_modules/zod/v4/locales/is.js +1 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -0
- package/node_modules/zod/v4/locales/it.js +1 -0
- package/node_modules/zod/v4/locales/ja.cjs +1 -0
- package/node_modules/zod/v4/locales/ja.js +1 -0
- package/node_modules/zod/v4/locales/ka.cjs +1 -0
- package/node_modules/zod/v4/locales/ka.js +1 -0
- package/node_modules/zod/v4/locales/km.cjs +1 -0
- package/node_modules/zod/v4/locales/km.js +1 -0
- package/node_modules/zod/v4/locales/kn.cjs +1 -0
- package/node_modules/zod/v4/locales/kn.js +1 -0
- package/node_modules/zod/v4/locales/ko.cjs +1 -0
- package/node_modules/zod/v4/locales/ko.js +1 -0
- package/node_modules/zod/v4/locales/lt.cjs +1 -0
- package/node_modules/zod/v4/locales/lt.js +1 -0
- package/node_modules/zod/v4/locales/mk.cjs +1 -0
- package/node_modules/zod/v4/locales/mk.js +1 -0
- package/node_modules/zod/v4/locales/ms.cjs +1 -0
- package/node_modules/zod/v4/locales/ms.js +1 -0
- package/node_modules/zod/v4/locales/ne.cjs +1 -0
- package/node_modules/zod/v4/locales/ne.js +1 -0
- package/node_modules/zod/v4/locales/nl.cjs +1 -0
- package/node_modules/zod/v4/locales/nl.js +1 -0
- package/node_modules/zod/v4/locales/nn.cjs +1 -0
- package/node_modules/zod/v4/locales/nn.js +1 -0
- package/node_modules/zod/v4/locales/no.cjs +1 -0
- package/node_modules/zod/v4/locales/no.js +1 -0
- package/node_modules/zod/v4/locales/ota.cjs +1 -0
- package/node_modules/zod/v4/locales/ota.js +1 -0
- package/node_modules/zod/v4/locales/pl.cjs +1 -0
- package/node_modules/zod/v4/locales/pl.js +1 -0
- package/node_modules/zod/v4/locales/ps.cjs +1 -0
- package/node_modules/zod/v4/locales/ps.js +1 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
- package/node_modules/zod/v4/locales/pt-BR.js +1 -0
- package/node_modules/zod/v4/locales/pt.cjs +1 -0
- package/node_modules/zod/v4/locales/pt.js +1 -0
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +1 -0
- package/node_modules/zod/v4/locales/ru.js +1 -0
- package/node_modules/zod/v4/locales/sk.cjs +1 -0
- package/node_modules/zod/v4/locales/sk.js +1 -0
- package/node_modules/zod/v4/locales/sl.cjs +1 -0
- package/node_modules/zod/v4/locales/sl.js +1 -0
- package/node_modules/zod/v4/locales/sv.cjs +1 -0
- package/node_modules/zod/v4/locales/sv.js +1 -0
- package/node_modules/zod/v4/locales/ta.cjs +1 -0
- package/node_modules/zod/v4/locales/ta.js +1 -0
- package/node_modules/zod/v4/locales/tg.cjs +1 -0
- package/node_modules/zod/v4/locales/tg.js +1 -0
- package/node_modules/zod/v4/locales/th.cjs +1 -0
- package/node_modules/zod/v4/locales/th.js +1 -0
- package/node_modules/zod/v4/locales/tk.cjs +1 -0
- package/node_modules/zod/v4/locales/tk.js +1 -0
- package/node_modules/zod/v4/locales/tr.cjs +1 -0
- package/node_modules/zod/v4/locales/tr.js +1 -0
- package/node_modules/zod/v4/locales/uk.cjs +1 -0
- package/node_modules/zod/v4/locales/uk.js +1 -0
- package/node_modules/zod/v4/locales/ur.cjs +1 -0
- package/node_modules/zod/v4/locales/ur.js +1 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +1 -0
- package/node_modules/zod/v4/locales/vi.js +1 -0
- package/node_modules/zod/v4/locales/yo.cjs +1 -0
- package/node_modules/zod/v4/locales/yo.js +1 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-CN.js +1 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-TW.js +1 -0
- package/node_modules/zod/v4/mini/checks.cjs +2 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +11 -13
- package/node_modules/zod/v4/mini/schemas.d.cts +1 -4
- package/node_modules/zod/v4/mini/schemas.d.ts +1 -4
- package/node_modules/zod/v4/mini/schemas.js +9 -11
- package/package.json +2 -2
- package/slingshot/index.js +183 -182
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { IncomingHttpHeaders } from
|
|
1
|
+
import { IncomingHttpHeaders } from './header'
|
|
2
2
|
import Client from './client'
|
|
3
3
|
|
|
4
4
|
export default Errors
|
|
5
5
|
|
|
6
6
|
declare namespace Errors {
|
|
7
7
|
export class UndiciError extends Error {
|
|
8
|
-
name: string
|
|
9
|
-
code: string
|
|
8
|
+
name: string
|
|
9
|
+
code: string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/** Connect timeout error. */
|
|
13
13
|
export class ConnectTimeoutError extends UndiciError {
|
|
14
|
-
name: 'ConnectTimeoutError'
|
|
15
|
-
code: 'UND_ERR_CONNECT_TIMEOUT'
|
|
14
|
+
name: 'ConnectTimeoutError'
|
|
15
|
+
code: 'UND_ERR_CONNECT_TIMEOUT'
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/** A header exceeds the `headersTimeout` option. */
|
|
19
19
|
export class HeadersTimeoutError extends UndiciError {
|
|
20
|
-
name: 'HeadersTimeoutError'
|
|
21
|
-
code: 'UND_ERR_HEADERS_TIMEOUT'
|
|
20
|
+
name: 'HeadersTimeoutError'
|
|
21
|
+
code: 'UND_ERR_HEADERS_TIMEOUT'
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/** Headers overflow error. */
|
|
@@ -29,101 +29,102 @@ declare namespace Errors {
|
|
|
29
29
|
|
|
30
30
|
/** A body exceeds the `bodyTimeout` option. */
|
|
31
31
|
export class BodyTimeoutError extends UndiciError {
|
|
32
|
-
name: 'BodyTimeoutError'
|
|
33
|
-
code: 'UND_ERR_BODY_TIMEOUT'
|
|
32
|
+
name: 'BodyTimeoutError'
|
|
33
|
+
code: 'UND_ERR_BODY_TIMEOUT'
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export class
|
|
36
|
+
export class ResponseError extends UndiciError {
|
|
37
37
|
constructor (
|
|
38
|
-
message
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
message: string,
|
|
39
|
+
code: number,
|
|
40
|
+
options: {
|
|
41
|
+
headers?: IncomingHttpHeaders | string[] | null,
|
|
42
|
+
body?: null | Record<string, any> | string
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
name: 'ResponseError'
|
|
46
|
+
code: 'UND_ERR_RESPONSE'
|
|
47
47
|
statusCode: number
|
|
48
|
-
|
|
48
|
+
body: null | Record<string, any> | string
|
|
49
|
+
headers: IncomingHttpHeaders | string[] | null
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
/** Passed an invalid argument. */
|
|
52
53
|
export class InvalidArgumentError extends UndiciError {
|
|
53
|
-
name: 'InvalidArgumentError'
|
|
54
|
-
code: 'UND_ERR_INVALID_ARG'
|
|
54
|
+
name: 'InvalidArgumentError'
|
|
55
|
+
code: 'UND_ERR_INVALID_ARG'
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
/** Returned an invalid value. */
|
|
58
59
|
export class InvalidReturnValueError extends UndiciError {
|
|
59
|
-
name: 'InvalidReturnValueError'
|
|
60
|
-
code: 'UND_ERR_INVALID_RETURN_VALUE'
|
|
60
|
+
name: 'InvalidReturnValueError'
|
|
61
|
+
code: 'UND_ERR_INVALID_RETURN_VALUE'
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
/** The request has been aborted by the user. */
|
|
64
65
|
export class RequestAbortedError extends UndiciError {
|
|
65
|
-
name: 'AbortError'
|
|
66
|
-
code: 'UND_ERR_ABORTED'
|
|
66
|
+
name: 'AbortError'
|
|
67
|
+
code: 'UND_ERR_ABORTED'
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
/** Expected error with reason. */
|
|
70
71
|
export class InformationalError extends UndiciError {
|
|
71
|
-
name: 'InformationalError'
|
|
72
|
-
code: 'UND_ERR_INFO'
|
|
72
|
+
name: 'InformationalError'
|
|
73
|
+
code: 'UND_ERR_INFO'
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
/** Request body length does not match content-length header. */
|
|
76
77
|
export class RequestContentLengthMismatchError extends UndiciError {
|
|
77
|
-
name: 'RequestContentLengthMismatchError'
|
|
78
|
-
code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
|
|
78
|
+
name: 'RequestContentLengthMismatchError'
|
|
79
|
+
code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
/** Response body length does not match content-length header. */
|
|
82
83
|
export class ResponseContentLengthMismatchError extends UndiciError {
|
|
83
|
-
name: 'ResponseContentLengthMismatchError'
|
|
84
|
-
code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH'
|
|
84
|
+
name: 'ResponseContentLengthMismatchError'
|
|
85
|
+
code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH'
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
/** Trying to use a destroyed client. */
|
|
88
89
|
export class ClientDestroyedError extends UndiciError {
|
|
89
|
-
name: 'ClientDestroyedError'
|
|
90
|
-
code: 'UND_ERR_DESTROYED'
|
|
90
|
+
name: 'ClientDestroyedError'
|
|
91
|
+
code: 'UND_ERR_DESTROYED'
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
/** Trying to use a closed client. */
|
|
94
95
|
export class ClientClosedError extends UndiciError {
|
|
95
|
-
name: 'ClientClosedError'
|
|
96
|
-
code: 'UND_ERR_CLOSED'
|
|
96
|
+
name: 'ClientClosedError'
|
|
97
|
+
code: 'UND_ERR_CLOSED'
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
/** There is an error with the socket. */
|
|
100
101
|
export class SocketError extends UndiciError {
|
|
101
|
-
name: 'SocketError'
|
|
102
|
-
code: 'UND_ERR_SOCKET'
|
|
102
|
+
name: 'SocketError'
|
|
103
|
+
code: 'UND_ERR_SOCKET'
|
|
103
104
|
socket: Client.SocketInfo | null
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
/** Encountered unsupported functionality. */
|
|
107
108
|
export class NotSupportedError extends UndiciError {
|
|
108
|
-
name: 'NotSupportedError'
|
|
109
|
-
code: 'UND_ERR_NOT_SUPPORTED'
|
|
109
|
+
name: 'NotSupportedError'
|
|
110
|
+
code: 'UND_ERR_NOT_SUPPORTED'
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
/** No upstream has been added to the BalancedPool. */
|
|
113
114
|
export class BalancedPoolMissingUpstreamError extends UndiciError {
|
|
114
|
-
name: 'MissingUpstreamError'
|
|
115
|
-
code: 'UND_ERR_BPL_MISSING_UPSTREAM'
|
|
115
|
+
name: 'MissingUpstreamError'
|
|
116
|
+
code: 'UND_ERR_BPL_MISSING_UPSTREAM'
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
export class HTTPParserError extends UndiciError {
|
|
119
|
-
name: 'HTTPParserError'
|
|
120
|
-
code: string
|
|
120
|
+
name: 'HTTPParserError'
|
|
121
|
+
code: string
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
/** The response exceed the length allowed. */
|
|
124
125
|
export class ResponseExceededMaxSizeError extends UndiciError {
|
|
125
|
-
name: 'ResponseExceededMaxSizeError'
|
|
126
|
-
code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE'
|
|
126
|
+
name: 'ResponseExceededMaxSizeError'
|
|
127
|
+
code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE'
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
export class RequestRetryError extends UndiciError {
|
|
@@ -132,18 +133,55 @@ declare namespace Errors {
|
|
|
132
133
|
statusCode: number,
|
|
133
134
|
headers?: IncomingHttpHeaders | string[] | null,
|
|
134
135
|
body?: null | Record<string, any> | string
|
|
135
|
-
)
|
|
136
|
-
name: 'RequestRetryError'
|
|
137
|
-
code: 'UND_ERR_REQ_RETRY'
|
|
138
|
-
statusCode: number
|
|
136
|
+
)
|
|
137
|
+
name: 'RequestRetryError'
|
|
138
|
+
code: 'UND_ERR_REQ_RETRY'
|
|
139
|
+
statusCode: number
|
|
139
140
|
data: {
|
|
140
141
|
count: number;
|
|
141
|
-
}
|
|
142
|
-
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
headers: Record<string, string | string[]>
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
export class SecureProxyConnectionError extends UndiciError {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
constructor (
|
|
149
|
+
cause?: Error,
|
|
150
|
+
message?: string,
|
|
151
|
+
options?: Record<any, any>
|
|
152
|
+
)
|
|
153
|
+
name: 'SecureProxyConnectionError'
|
|
154
|
+
code: 'UND_ERR_PRX_TLS'
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export class ProxyConnectionError extends UndiciError {
|
|
158
|
+
constructor (
|
|
159
|
+
cause?: Error,
|
|
160
|
+
message?: string,
|
|
161
|
+
options?: Record<any, any>
|
|
162
|
+
)
|
|
163
|
+
name: 'ProxyConnectionError'
|
|
164
|
+
code: 'UND_ERR_PRX_CONN'
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export class MaxOriginsReachedError extends UndiciError {
|
|
168
|
+
name: 'MaxOriginsReachedError'
|
|
169
|
+
code: 'UND_ERR_MAX_ORIGINS_REACHED'
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** SOCKS5 proxy related error. */
|
|
173
|
+
export class Socks5ProxyError extends UndiciError {
|
|
174
|
+
constructor (
|
|
175
|
+
message?: string,
|
|
176
|
+
code?: string
|
|
177
|
+
)
|
|
178
|
+
name: 'Socks5ProxyError'
|
|
179
|
+
code: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** WebSocket decompressed message exceeded maximum size. */
|
|
183
|
+
export class MessageSizeExceededError extends UndiciError {
|
|
184
|
+
name: 'MessageSizeExceededError'
|
|
185
|
+
code: 'UND_ERR_WS_MESSAGE_SIZE_EXCEEDED'
|
|
148
186
|
}
|
|
149
187
|
}
|
|
@@ -18,9 +18,9 @@ interface EventSource extends EventTarget {
|
|
|
18
18
|
readonly CLOSED: 2
|
|
19
19
|
readonly CONNECTING: 0
|
|
20
20
|
readonly OPEN: 1
|
|
21
|
-
onerror: (this: EventSource, ev: ErrorEvent) => any
|
|
22
|
-
onmessage: (this: EventSource, ev: MessageEvent) => any
|
|
23
|
-
onopen: (this: EventSource, ev: Event) => any
|
|
21
|
+
onerror: ((this: EventSource, ev: ErrorEvent) => any) | null
|
|
22
|
+
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null
|
|
23
|
+
onopen: ((this: EventSource, ev: Event) => any) | null
|
|
24
24
|
readonly readyState: 0 | 1 | 2
|
|
25
25
|
readonly url: string
|
|
26
26
|
readonly withCredentials: boolean
|
|
@@ -56,6 +56,11 @@ export declare const EventSource: {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
interface EventSourceInit {
|
|
59
|
-
withCredentials?: boolean
|
|
59
|
+
withCredentials?: boolean
|
|
60
|
+
// @deprecated use `node.dispatcher` instead
|
|
60
61
|
dispatcher?: Dispatcher
|
|
62
|
+
node?: {
|
|
63
|
+
dispatcher?: Dispatcher
|
|
64
|
+
reconnectionTime?: number
|
|
65
|
+
}
|
|
61
66
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// and https://github.com/node-fetch/node-fetch/blob/914ce6be5ec67a8bab63d68510aabf07cb818b6d/index.d.ts (MIT license)
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
|
|
5
|
-
import { Blob } from 'buffer'
|
|
6
|
-
import { URL, URLSearchParams } from 'url'
|
|
7
|
-
import { ReadableStream } from 'stream/web'
|
|
5
|
+
import { Blob } from 'node:buffer'
|
|
6
|
+
import { URL, URLSearchParams } from 'node:url'
|
|
7
|
+
import { ReadableStream } from 'node:stream/web'
|
|
8
8
|
import { FormData } from './formdata'
|
|
9
|
-
|
|
9
|
+
import { HeaderRecord } from './header'
|
|
10
10
|
import Dispatcher from './dispatcher'
|
|
11
11
|
|
|
12
12
|
export type RequestInfo = string | URL | Request
|
|
@@ -33,41 +33,66 @@ export class BodyMixin {
|
|
|
33
33
|
|
|
34
34
|
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
|
35
35
|
readonly blob: () => Promise<Blob>
|
|
36
|
+
readonly bytes: () => Promise<Uint8Array>
|
|
36
37
|
/**
|
|
37
38
|
* @deprecated This method is not recommended for parsing multipart/form-data bodies in server environments.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
39
|
+
* Calling body.formData() buffers and parses the entire body. Since this is dictated by the spec,
|
|
40
|
+
* this method must only be called on responses from trusted servers.
|
|
41
|
+
* For responses from untrusted or user-controlled servers, use a dedicated streaming parser such as
|
|
42
|
+
* [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy) and apply application-specific limits as follows:
|
|
43
|
+
*
|
|
40
44
|
* @example
|
|
41
45
|
* ```js
|
|
42
46
|
* import { Busboy } from '@fastify/busboy'
|
|
43
47
|
* import { Readable } from 'node:stream'
|
|
44
|
-
*
|
|
48
|
+
*
|
|
45
49
|
* const response = await fetch('...')
|
|
46
50
|
* const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })
|
|
47
|
-
*
|
|
51
|
+
*
|
|
48
52
|
* // handle events emitted from `busboy`
|
|
49
|
-
*
|
|
53
|
+
*
|
|
50
54
|
* Readable.fromWeb(response.body).pipe(busboy)
|
|
51
55
|
* ```
|
|
52
56
|
*/
|
|
53
57
|
readonly formData: () => Promise<FormData>
|
|
54
58
|
readonly json: () => Promise<unknown>
|
|
55
59
|
readonly text: () => Promise<string>
|
|
60
|
+
readonly textStream: () => ReadableStream<string>
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
export interface SpecIterator<T, TReturn = any, TNext = undefined> {
|
|
59
64
|
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
60
65
|
}
|
|
61
66
|
|
|
62
|
-
export interface
|
|
67
|
+
export interface SpecIteratorObject<T, TReturn = undefined, TNext = unknown> extends SpecIterator<T, TReturn, TNext> {
|
|
68
|
+
[Symbol.iterator](): SpecIteratorObject<T, TReturn, TNext>;
|
|
69
|
+
map<U>(callbackfn: (value: T, index: number) => U): SpecIteratorObject<U>;
|
|
70
|
+
filter<S extends T>(predicate: (value: T, index: number) => value is S): SpecIteratorObject<S>;
|
|
71
|
+
filter(predicate: (value: T, index: number) => unknown): SpecIteratorObject<T>;
|
|
72
|
+
take(limit: number): SpecIteratorObject<T>;
|
|
73
|
+
drop(count: number): SpecIteratorObject<T>;
|
|
74
|
+
flatMap<U>(callbackfn: (value: T, index: number) => Iterator<U> | Iterable<U>): SpecIteratorObject<U>;
|
|
75
|
+
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
|
|
76
|
+
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;
|
|
77
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;
|
|
78
|
+
toArray(): T[];
|
|
79
|
+
forEach(callbackfn: (value: T, index: number) => void): void;
|
|
80
|
+
some(predicate: (value: T, index: number) => unknown): boolean;
|
|
81
|
+
every(predicate: (value: T, index: number) => unknown): boolean;
|
|
82
|
+
find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;
|
|
83
|
+
find(predicate: (value: T, index: number) => unknown): T | undefined;
|
|
84
|
+
readonly [Symbol.toStringTag]: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface SpecIterableIterator<T> extends SpecIteratorObject<T> {
|
|
63
88
|
[Symbol.iterator](): SpecIterableIterator<T>;
|
|
64
89
|
}
|
|
65
90
|
|
|
66
91
|
export interface SpecIterable<T> {
|
|
67
|
-
[Symbol.iterator]():
|
|
92
|
+
[Symbol.iterator](): SpecIterableIterator<T>;
|
|
68
93
|
}
|
|
69
94
|
|
|
70
|
-
export type HeadersInit =
|
|
95
|
+
export type HeadersInit = [string, string][] | HeaderRecord | Headers
|
|
71
96
|
|
|
72
97
|
export declare class Headers implements SpecIterable<[string, string]> {
|
|
73
98
|
constructor (init?: HeadersInit)
|
|
@@ -119,20 +144,21 @@ type RequestDestination =
|
|
|
119
144
|
| 'xslt'
|
|
120
145
|
|
|
121
146
|
export interface RequestInit {
|
|
122
|
-
method?: string
|
|
123
|
-
keepalive?: boolean
|
|
124
|
-
headers?: HeadersInit
|
|
125
147
|
body?: BodyInit | null
|
|
126
|
-
|
|
127
|
-
integrity?: string
|
|
128
|
-
signal?: AbortSignal | null
|
|
148
|
+
cache?: RequestCache
|
|
129
149
|
credentials?: RequestCredentials
|
|
150
|
+
dispatcher?: Dispatcher
|
|
151
|
+
duplex?: RequestDuplex
|
|
152
|
+
headers?: HeadersInit
|
|
153
|
+
integrity?: string
|
|
154
|
+
keepalive?: boolean
|
|
155
|
+
method?: string
|
|
130
156
|
mode?: RequestMode
|
|
157
|
+
redirect?: RequestRedirect
|
|
131
158
|
referrer?: string
|
|
132
159
|
referrerPolicy?: ReferrerPolicy
|
|
160
|
+
signal?: AbortSignal | null
|
|
133
161
|
window?: null
|
|
134
|
-
dispatcher?: Dispatcher
|
|
135
|
-
duplex?: RequestDuplex
|
|
136
162
|
}
|
|
137
163
|
|
|
138
164
|
export type ReferrerPolicy =
|
|
@@ -144,7 +170,7 @@ export type ReferrerPolicy =
|
|
|
144
170
|
| 'same-origin'
|
|
145
171
|
| 'strict-origin'
|
|
146
172
|
| 'strict-origin-when-cross-origin'
|
|
147
|
-
| 'unsafe-url'
|
|
173
|
+
| 'unsafe-url'
|
|
148
174
|
|
|
149
175
|
export type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
|
|
150
176
|
|
|
@@ -171,7 +197,7 @@ export declare class Request extends BodyMixin {
|
|
|
171
197
|
readonly signal: AbortSignal
|
|
172
198
|
readonly duplex: RequestDuplex
|
|
173
199
|
|
|
174
|
-
|
|
200
|
+
public clone (): Request
|
|
175
201
|
}
|
|
176
202
|
|
|
177
203
|
export interface ResponseInit {
|
|
@@ -201,9 +227,9 @@ export declare class Response extends BodyMixin {
|
|
|
201
227
|
readonly url: string
|
|
202
228
|
readonly redirected: boolean
|
|
203
229
|
|
|
204
|
-
|
|
230
|
+
public clone (): Response
|
|
205
231
|
|
|
206
232
|
static error (): Response
|
|
207
|
-
static json(data: any, init?: ResponseInit): Response
|
|
208
|
-
static redirect (url: string | URL, status
|
|
233
|
+
static json (data: any, init?: ResponseInit): Response
|
|
234
|
+
static redirect (url: string | URL, status?: ResponseRedirectStatus): Response
|
|
209
235
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/FormData.ts (MIT)
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
|
|
4
|
-
import { File } from '
|
|
4
|
+
import { File } from 'node:buffer'
|
|
5
5
|
import { SpecIterableIterator } from './fetch'
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -24,7 +24,7 @@ export declare class FormData {
|
|
|
24
24
|
or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
|
|
25
25
|
* @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
|
|
26
26
|
*/
|
|
27
|
-
append(name: string, value: unknown, fileName?: string): void
|
|
27
|
+
append (name: string, value: unknown, fileName?: string): void
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Set a new value for an existing key inside FormData,
|
|
@@ -36,7 +36,7 @@ export declare class FormData {
|
|
|
36
36
|
* @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
|
-
set(name: string, value: unknown, fileName?: string): void
|
|
39
|
+
set (name: string, value: unknown, fileName?: string): void
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Returns the first value associated with a given key from within a `FormData` object.
|
|
@@ -46,7 +46,7 @@ export declare class FormData {
|
|
|
46
46
|
*
|
|
47
47
|
* @returns A `FormDataEntryValue` containing the value. If the key doesn't exist, the method returns null.
|
|
48
48
|
*/
|
|
49
|
-
get(name: string): FormDataEntryValue | null
|
|
49
|
+
get (name: string): FormDataEntryValue | null
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Returns all the values associated with a given key from within a `FormData` object.
|
|
@@ -55,7 +55,7 @@ export declare class FormData {
|
|
|
55
55
|
*
|
|
56
56
|
* @returns An array of `FormDataEntryValue` whose key matches the value passed in the `name` parameter. If the key doesn't exist, the method returns an empty list.
|
|
57
57
|
*/
|
|
58
|
-
getAll(name: string): FormDataEntryValue[]
|
|
58
|
+
getAll (name: string): FormDataEntryValue[]
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Returns a boolean stating whether a `FormData` object contains a certain key.
|
|
@@ -64,14 +64,14 @@ export declare class FormData {
|
|
|
64
64
|
*
|
|
65
65
|
* @return A boolean value.
|
|
66
66
|
*/
|
|
67
|
-
has(name: string): boolean
|
|
67
|
+
has (name: string): boolean
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Deletes a key and its value(s) from a `FormData` object.
|
|
71
71
|
*
|
|
72
72
|
* @param name The name of the key you want to delete.
|
|
73
73
|
*/
|
|
74
|
-
delete(name: string): void
|
|
74
|
+
delete (name: string): void
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Executes given callback function for each field of the FormData instance
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import Dispatcher from
|
|
1
|
+
import Dispatcher from './dispatcher'
|
|
2
|
+
|
|
3
|
+
declare function setGlobalDispatcher<DispatcherImplementation extends Dispatcher> (dispatcher: DispatcherImplementation): void
|
|
4
|
+
declare function getGlobalDispatcher (): Dispatcher
|
|
2
5
|
|
|
3
6
|
export {
|
|
4
7
|
getGlobalDispatcher,
|
|
5
8
|
setGlobalDispatcher
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
declare function setGlobalDispatcher<DispatcherImplementation extends Dispatcher>(dispatcher: DispatcherImplementation): void;
|
|
9
|
-
declare function getGlobalDispatcher(): Dispatcher;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
declare function setGlobalOrigin (origin: string | URL | undefined): void
|
|
2
|
+
declare function getGlobalOrigin (): URL | undefined
|
|
3
|
+
|
|
1
4
|
export {
|
|
2
|
-
|
|
3
|
-
|
|
5
|
+
setGlobalOrigin,
|
|
6
|
+
getGlobalOrigin
|
|
4
7
|
}
|
|
5
|
-
|
|
6
|
-
declare function setGlobalOrigin(origin: string | URL | undefined): void;
|
|
7
|
-
declare function getGlobalOrigin(): URL | undefined;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { URL } from 'node:url'
|
|
2
|
+
import Dispatcher from './dispatcher'
|
|
3
|
+
import buildConnector from './connector'
|
|
4
|
+
|
|
5
|
+
type H2ClientOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A basic H2C client, mapped on top a single TCP connection. Pipelining is disabled by default.
|
|
9
|
+
*/
|
|
10
|
+
export class H2CClient extends Dispatcher {
|
|
11
|
+
constructor (url: string | URL, options?: H2CClient.Options)
|
|
12
|
+
/** Property to get and set the pipelining factor. */
|
|
13
|
+
pipelining: number
|
|
14
|
+
/** `true` after `client.close()` has been called. */
|
|
15
|
+
closed: boolean
|
|
16
|
+
/** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
|
|
17
|
+
destroyed: boolean
|
|
18
|
+
|
|
19
|
+
// Override dispatcher APIs.
|
|
20
|
+
override connect (
|
|
21
|
+
options: H2ClientOptions
|
|
22
|
+
): Promise<Dispatcher.ConnectData>
|
|
23
|
+
override connect (
|
|
24
|
+
options: H2ClientOptions,
|
|
25
|
+
callback: (err: Error | null, data: Dispatcher.ConnectData) => void
|
|
26
|
+
): void
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare namespace H2CClient {
|
|
30
|
+
export interface Options {
|
|
31
|
+
/** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
|
|
32
|
+
maxHeaderSize?: number;
|
|
33
|
+
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
|
|
34
|
+
headersTimeout?: number;
|
|
35
|
+
/** The timeout for establishing a socket connection, in milliseconds. Use `0` to disable it entirely. Default: `10e3` milliseconds (10s). */
|
|
36
|
+
connectTimeout?: number;
|
|
37
|
+
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
|
|
38
|
+
bodyTimeout?: number;
|
|
39
|
+
/** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */
|
|
40
|
+
keepAliveTimeout?: number;
|
|
41
|
+
/** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */
|
|
42
|
+
keepAliveMaxTimeout?: number;
|
|
43
|
+
/** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */
|
|
44
|
+
keepAliveTimeoutThreshold?: number;
|
|
45
|
+
/** An IPC endpoint, either a Unix domain socket or Windows named pipe. Default: `null`. */
|
|
46
|
+
socketPath?: string;
|
|
47
|
+
/** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */
|
|
48
|
+
pipelining?: number;
|
|
49
|
+
/** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
|
|
50
|
+
strictContentLength?: boolean;
|
|
51
|
+
/** Maximum number of TLS cached sessions used by the built-in connector. Use `0` to disable TLS session caching. Default: `100`. */
|
|
52
|
+
maxCachedSessions?: number;
|
|
53
|
+
/** Connector options passed to `buildConnector`, or a custom connector function. Default: `null`. */
|
|
54
|
+
connect?: Omit<Partial<buildConnector.BuildOptions>, 'allowH2'> | buildConnector.connector;
|
|
55
|
+
/** The maximum number of requests to send over a single connection before it is reset. Use `0` to disable this limit. Default: `null`. */
|
|
56
|
+
maxRequestsPerClient?: number;
|
|
57
|
+
/** Local IP address the socket should connect from. */
|
|
58
|
+
localAddress?: string;
|
|
59
|
+
/** Max response body size in bytes, -1 is disabled */
|
|
60
|
+
maxResponseSize?: number;
|
|
61
|
+
/** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
|
|
62
|
+
autoSelectFamily?: boolean;
|
|
63
|
+
/** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
|
|
64
|
+
autoSelectFamilyAttemptTimeout?: number;
|
|
65
|
+
/**
|
|
66
|
+
* @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
|
|
67
|
+
* @default 100
|
|
68
|
+
*/
|
|
69
|
+
maxConcurrentStreams?: number
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export default H2CClient
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import Dispatcher from
|
|
1
|
+
import Dispatcher from './dispatcher'
|
|
2
2
|
|
|
3
|
-
export declare class RedirectHandler implements Dispatcher.
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare class RedirectHandler implements Dispatcher.DispatchHandler {
|
|
4
|
+
static buildDispatch (dispatcher: Dispatcher, maxRedirections: number): Dispatcher.Dispatch
|
|
5
|
+
|
|
6
|
+
constructor (
|
|
7
|
+
dispatch: Dispatcher.Dispatch,
|
|
6
8
|
maxRedirections: number,
|
|
7
9
|
opts: Dispatcher.DispatchOptions,
|
|
8
|
-
handler: Dispatcher.
|
|
9
|
-
|
|
10
|
-
);
|
|
10
|
+
handler: Dispatcher.DispatchHandler
|
|
11
|
+
)
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export declare class DecoratorHandler implements Dispatcher.
|
|
14
|
-
constructor(handler: Dispatcher.
|
|
14
|
+
export declare class DecoratorHandler implements Dispatcher.DispatchHandler {
|
|
15
|
+
constructor (handler: Dispatcher.DispatchHandler)
|
|
15
16
|
}
|