node-red-contrib-tak-registration 0.16.0 → 0.16.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/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +8 -6
- package/node_modules/@types/node/async_hooks.d.ts +26 -6
- package/node_modules/@types/node/buffer.d.ts +7 -3
- package/node_modules/@types/node/child_process.d.ts +28 -124
- package/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/node/crypto.d.ts +95 -38
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/diagnostics_channel.d.ts +18 -13
- package/node_modules/@types/node/dns/promises.d.ts +36 -9
- package/node_modules/@types/node/dns.d.ts +89 -36
- package/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@types/node/fs/promises.d.ts +67 -40
- package/node_modules/@types/node/fs.d.ts +88 -52
- package/node_modules/@types/node/globals.d.ts +148 -351
- package/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +73 -7
- package/node_modules/@types/node/http2.d.ts +88 -15
- package/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/node/index.d.ts +13 -6
- package/node_modules/@types/node/inspector.d.ts +222 -13
- package/node_modules/@types/node/module.d.ts +153 -31
- package/node_modules/@types/node/net.d.ts +3 -6
- package/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/node/package.json +14 -84
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +24 -10
- package/node_modules/@types/node/process.d.ts +21 -11
- package/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/node/readline.d.ts +13 -13
- package/node_modules/@types/node/repl.d.ts +25 -17
- package/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/node/sqlite.d.ts +209 -3
- package/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@types/node/stream.d.ts +30 -24
- package/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +2029 -1975
- package/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/node/timers.d.ts +1 -3
- package/node_modules/@types/node/tls.d.ts +2 -48
- package/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +15 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +101 -0
- package/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/node/url.d.ts +73 -20
- package/node_modules/@types/node/util.d.ts +23 -298
- package/node_modules/@types/node/v8.d.ts +62 -32
- package/node_modules/@types/node/vm.d.ts +132 -24
- package/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +94 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +85 -26
- package/node_modules/@types/node/zlib.d.ts +13 -9
- package/node_modules/axios/CHANGELOG.md +58 -0
- package/node_modules/axios/README.md +87 -10
- package/node_modules/axios/dist/axios.js +355 -289
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +286 -213
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +286 -213
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +377 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +12 -5
- package/node_modules/axios/index.d.ts +13 -4
- package/node_modules/axios/lib/adapters/adapters.js +6 -4
- package/node_modules/axios/lib/adapters/fetch.js +221 -162
- package/node_modules/axios/lib/adapters/http.js +18 -0
- package/node_modules/axios/lib/adapters/xhr.js +11 -8
- package/node_modules/axios/lib/core/Axios.js +0 -2
- package/node_modules/axios/lib/core/AxiosError.js +10 -3
- package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -3
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
- package/node_modules/axios/lib/utils.js +5 -3
- package/node_modules/axios/package.json +18 -12
- package/node_modules/bignumber.js/CHANGELOG.md +6 -1
- package/node_modules/bignumber.js/README.md +5 -4
- package/node_modules/bignumber.js/bignumber.js +2 -2
- package/node_modules/bignumber.js/bignumber.mjs +2 -2
- package/node_modules/bignumber.js/package.json +1 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.min.js +2 -2
- package/node_modules/protobufjs/google/protobuf/descriptor.json +2 -2
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +2 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/undici-types/agent.d.ts +11 -7
- package/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +18 -16
- package/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +19 -10
- package/node_modules/undici-types/dispatcher.d.ts +119 -93
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/undici-types/eventsource.d.ts +3 -3
- package/node_modules/undici-types/fetch.d.ts +18 -16
- 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 +75 -0
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/undici-types/interceptors.d.ts +25 -8
- 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 +21 -19
- 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 -12
- package/node_modules/undici-types/proxy-agent.d.ts +5 -4
- package/node_modules/undici-types/readable.d.ts +18 -15
- 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/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +50 -8
- package/node_modules/undici-types/websocket.d.ts +36 -2
- package/node_modules/uuid/README.md +8 -19
- package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
- package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
- package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
- package/node_modules/uuid/dist-node/native.js +2 -0
- package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
- package/node_modules/uuid/package.json +28 -41
- package/package.json +4 -4
- package/tak-registration.bak +557 -0
- package/tak-registration.js +8 -8
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/node/dom-events.d.ts +0 -124
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
- /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* ```
|
|
41
41
|
* @since v22.5.0
|
|
42
42
|
* @experimental
|
|
43
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
43
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/sqlite.js)
|
|
44
44
|
*/
|
|
45
45
|
declare module "node:sqlite" {
|
|
46
46
|
type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
|
|
@@ -89,6 +89,41 @@ declare module "node:sqlite" {
|
|
|
89
89
|
* @default false
|
|
90
90
|
*/
|
|
91
91
|
allowExtension?: boolean | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* The [busy timeout](https://sqlite.org/c3ref/busy_timeout.html) in milliseconds. This is the maximum amount of
|
|
94
|
+
* time that SQLite will wait for a database lock to be released before
|
|
95
|
+
* returning an error.
|
|
96
|
+
* @since v24.0.0
|
|
97
|
+
* @default 0
|
|
98
|
+
*/
|
|
99
|
+
timeout?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* If `true`, integer fields are read as JavaScript `BigInt` values. If `false`,
|
|
102
|
+
* integer fields are read as JavaScript numbers.
|
|
103
|
+
* @since v24.4.0
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
readBigInts?: boolean | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* If `true`, query results are returned as arrays instead of objects.
|
|
109
|
+
* @since v24.4.0
|
|
110
|
+
* @default false
|
|
111
|
+
*/
|
|
112
|
+
returnArrays?: boolean | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* If `true`, allows binding named parameters without the prefix
|
|
115
|
+
* character (e.g., `foo` instead of `:foo`).
|
|
116
|
+
* @since v24.4.40
|
|
117
|
+
* @default true
|
|
118
|
+
*/
|
|
119
|
+
allowBareNamedParameters?: boolean | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* If `true`, unknown named parameters are ignored when binding.
|
|
122
|
+
* If `false`, an exception is thrown for unknown named parameters.
|
|
123
|
+
* @since v24.4.40
|
|
124
|
+
* @default false
|
|
125
|
+
*/
|
|
126
|
+
allowUnknownNamedParameters?: boolean | undefined;
|
|
92
127
|
}
|
|
93
128
|
interface CreateSessionOptions {
|
|
94
129
|
/**
|
|
@@ -166,6 +201,31 @@ declare module "node:sqlite" {
|
|
|
166
201
|
*/
|
|
167
202
|
varargs?: boolean | undefined;
|
|
168
203
|
}
|
|
204
|
+
interface AggregateOptions<T extends SQLInputValue = SQLInputValue> extends FunctionOptions {
|
|
205
|
+
/**
|
|
206
|
+
* The identity value for the aggregation function. This value is used when the aggregation
|
|
207
|
+
* function is initialized. When a `Function` is passed the identity will be its return value.
|
|
208
|
+
*/
|
|
209
|
+
start: T | (() => T);
|
|
210
|
+
/**
|
|
211
|
+
* The function to call for each row in the aggregation. The
|
|
212
|
+
* function receives the current state and the row value. The return value of
|
|
213
|
+
* this function should be the new state.
|
|
214
|
+
*/
|
|
215
|
+
step: (accumulator: T, ...args: SQLOutputValue[]) => T;
|
|
216
|
+
/**
|
|
217
|
+
* The function to call to get the result of the
|
|
218
|
+
* aggregation. The function receives the final state and should return the
|
|
219
|
+
* result of the aggregation.
|
|
220
|
+
*/
|
|
221
|
+
result?: ((accumulator: T) => SQLInputValue) | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* When this function is provided, the `aggregate` method will work as a window function.
|
|
224
|
+
* The function receives the current state and the dropped row value. The return value of this function should be the
|
|
225
|
+
* new state.
|
|
226
|
+
*/
|
|
227
|
+
inverse?: ((accumulator: T, ...args: SQLOutputValue[]) => T) | undefined;
|
|
228
|
+
}
|
|
169
229
|
/**
|
|
170
230
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
171
231
|
* exposed by this class execute synchronously.
|
|
@@ -181,6 +241,38 @@ declare module "node:sqlite" {
|
|
|
181
241
|
* @param options Configuration options for the database connection.
|
|
182
242
|
*/
|
|
183
243
|
constructor(path: string | Buffer | URL, options?: DatabaseSyncOptions);
|
|
244
|
+
/**
|
|
245
|
+
* Registers a new aggregate function with the SQLite database. This method is a wrapper around
|
|
246
|
+
* [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html).
|
|
247
|
+
*
|
|
248
|
+
* When used as a window function, the `result` function will be called multiple times.
|
|
249
|
+
*
|
|
250
|
+
* ```js
|
|
251
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
252
|
+
*
|
|
253
|
+
* const db = new DatabaseSync(':memory:');
|
|
254
|
+
* db.exec(`
|
|
255
|
+
* CREATE TABLE t3(x, y);
|
|
256
|
+
* INSERT INTO t3 VALUES ('a', 4),
|
|
257
|
+
* ('b', 5),
|
|
258
|
+
* ('c', 3),
|
|
259
|
+
* ('d', 8),
|
|
260
|
+
* ('e', 1);
|
|
261
|
+
* `);
|
|
262
|
+
*
|
|
263
|
+
* db.aggregate('sumint', {
|
|
264
|
+
* start: 0,
|
|
265
|
+
* step: (acc, value) => acc + value,
|
|
266
|
+
* });
|
|
267
|
+
*
|
|
268
|
+
* db.prepare('SELECT sumint(y) as total FROM t3').get(); // { total: 21 }
|
|
269
|
+
* ```
|
|
270
|
+
* @since v24.0.0
|
|
271
|
+
* @param name The name of the SQLite function to create.
|
|
272
|
+
* @param options Function configuration settings.
|
|
273
|
+
*/
|
|
274
|
+
aggregate(name: string, options: AggregateOptions): void;
|
|
275
|
+
aggregate<T extends SQLInputValue>(name: string, options: AggregateOptions<T>): void;
|
|
184
276
|
/**
|
|
185
277
|
* Closes the database connection. An exception is thrown if the database is not
|
|
186
278
|
* open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html).
|
|
@@ -203,6 +295,15 @@ declare module "node:sqlite" {
|
|
|
203
295
|
* @param allow Whether to allow loading extensions.
|
|
204
296
|
*/
|
|
205
297
|
enableLoadExtension(allow: boolean): void;
|
|
298
|
+
/**
|
|
299
|
+
* This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
|
|
300
|
+
* @since v24.0.0
|
|
301
|
+
* @param dbName Name of the database. This can be `'main'` (the default primary database) or any other
|
|
302
|
+
* database that has been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) **Default:** `'main'`.
|
|
303
|
+
* @returns The location of the database file. When using an in-memory database,
|
|
304
|
+
* this method returns null.
|
|
305
|
+
*/
|
|
306
|
+
location(dbName?: string): string | null;
|
|
206
307
|
/**
|
|
207
308
|
* This method allows one or more SQL statements to be executed without returning
|
|
208
309
|
* any results. This method is useful when executing SQL statements read from a
|
|
@@ -220,7 +321,7 @@ declare module "node:sqlite" {
|
|
|
220
321
|
* @param func The JavaScript function to call when the SQLite
|
|
221
322
|
* function is invoked. The return value of this function should be a valid
|
|
222
323
|
* SQLite data type: see
|
|
223
|
-
* [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-
|
|
324
|
+
* [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v24.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
|
|
224
325
|
* The result defaults to `NULL` if the return value is `undefined`.
|
|
225
326
|
*/
|
|
226
327
|
function(
|
|
@@ -234,6 +335,12 @@ declare module "node:sqlite" {
|
|
|
234
335
|
* @since v22.15.0
|
|
235
336
|
*/
|
|
236
337
|
readonly isOpen: boolean;
|
|
338
|
+
/**
|
|
339
|
+
* Whether the database is currently within a transaction. This method
|
|
340
|
+
* is a wrapper around [`sqlite3_get_autocommit()`](https://sqlite.org/c3ref/get_autocommit.html).
|
|
341
|
+
* @since v24.0.0
|
|
342
|
+
*/
|
|
343
|
+
readonly isTransaction: boolean;
|
|
237
344
|
/**
|
|
238
345
|
* Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
|
|
239
346
|
* the constructor. An exception is thrown if the database is already open.
|
|
@@ -289,7 +396,6 @@ declare module "node:sqlite" {
|
|
|
289
396
|
* Closes the database connection. If the database connection is already closed
|
|
290
397
|
* then this is a no-op.
|
|
291
398
|
* @since v22.15.0
|
|
292
|
-
* @experimental
|
|
293
399
|
*/
|
|
294
400
|
[Symbol.dispose](): void;
|
|
295
401
|
}
|
|
@@ -322,6 +428,38 @@ declare module "node:sqlite" {
|
|
|
322
428
|
*/
|
|
323
429
|
close(): void;
|
|
324
430
|
}
|
|
431
|
+
interface StatementColumnMetadata {
|
|
432
|
+
/**
|
|
433
|
+
* The unaliased name of the column in the origin
|
|
434
|
+
* table, or `null` if the column is the result of an expression or subquery.
|
|
435
|
+
* This property is the result of [`sqlite3_column_origin_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
|
|
436
|
+
*/
|
|
437
|
+
column: string | null;
|
|
438
|
+
/**
|
|
439
|
+
* The unaliased name of the origin database, or
|
|
440
|
+
* `null` if the column is the result of an expression or subquery. This
|
|
441
|
+
* property is the result of [`sqlite3_column_database_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
|
|
442
|
+
*/
|
|
443
|
+
database: string | null;
|
|
444
|
+
/**
|
|
445
|
+
* The name assigned to the column in the result set of a
|
|
446
|
+
* `SELECT` statement. This property is the result of
|
|
447
|
+
* [`sqlite3_column_name()`](https://www.sqlite.org/c3ref/column_name.html).
|
|
448
|
+
*/
|
|
449
|
+
name: string;
|
|
450
|
+
/**
|
|
451
|
+
* The unaliased name of the origin table, or `null` if
|
|
452
|
+
* the column is the result of an expression or subquery. This property is the
|
|
453
|
+
* result of [`sqlite3_column_table_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
|
|
454
|
+
*/
|
|
455
|
+
table: string | null;
|
|
456
|
+
/**
|
|
457
|
+
* The declared data type of the column, or `null` if the
|
|
458
|
+
* column is the result of an expression or subquery. This property is the
|
|
459
|
+
* result of [`sqlite3_column_decltype()`](https://www.sqlite.org/c3ref/column_decltype.html).
|
|
460
|
+
*/
|
|
461
|
+
type: string | null;
|
|
462
|
+
}
|
|
325
463
|
interface StatementResultingChanges {
|
|
326
464
|
/**
|
|
327
465
|
* The number of rows modified, inserted, or deleted by the most recently completed `INSERT`, `UPDATE`, or `DELETE` statement.
|
|
@@ -366,6 +504,14 @@ declare module "node:sqlite" {
|
|
|
366
504
|
namedParameters: Record<string, SQLInputValue>,
|
|
367
505
|
...anonymousParameters: SQLInputValue[]
|
|
368
506
|
): Record<string, SQLOutputValue>[];
|
|
507
|
+
/**
|
|
508
|
+
* This method is used to retrieve information about the columns returned by the
|
|
509
|
+
* prepared statement.
|
|
510
|
+
* @since v23.11.0
|
|
511
|
+
* @returns An array of objects. Each object corresponds to a column
|
|
512
|
+
* in the prepared statement, and contains the following properties:
|
|
513
|
+
*/
|
|
514
|
+
columns(): StatementColumnMetadata[];
|
|
369
515
|
/**
|
|
370
516
|
* The source SQL text of the prepared statement with parameter
|
|
371
517
|
* placeholders replaced by the values that were used during the most recent
|
|
@@ -465,6 +611,66 @@ declare module "node:sqlite" {
|
|
|
465
611
|
*/
|
|
466
612
|
readonly sourceSQL: string;
|
|
467
613
|
}
|
|
614
|
+
interface BackupOptions {
|
|
615
|
+
/**
|
|
616
|
+
* Name of the source database. This can be `'main'` (the default primary database) or any other
|
|
617
|
+
* database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html)
|
|
618
|
+
* @default 'main'
|
|
619
|
+
*/
|
|
620
|
+
source?: string | undefined;
|
|
621
|
+
/**
|
|
622
|
+
* Name of the target database. This can be `'main'` (the default primary database) or any other
|
|
623
|
+
* database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html)
|
|
624
|
+
* @default 'main'
|
|
625
|
+
*/
|
|
626
|
+
target?: string | undefined;
|
|
627
|
+
/**
|
|
628
|
+
* Number of pages to be transmitted in each batch of the backup.
|
|
629
|
+
* @default 100
|
|
630
|
+
*/
|
|
631
|
+
rate?: number | undefined;
|
|
632
|
+
/**
|
|
633
|
+
* Callback function that will be called with the number of pages copied and the total number of
|
|
634
|
+
* pages.
|
|
635
|
+
*/
|
|
636
|
+
progress?: ((progressInfo: BackupProgressInfo) => void) | undefined;
|
|
637
|
+
}
|
|
638
|
+
interface BackupProgressInfo {
|
|
639
|
+
totalPages: number;
|
|
640
|
+
remainingPages: number;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* This method makes a database backup. This method abstracts the
|
|
644
|
+
* [`sqlite3_backup_init()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupinit),
|
|
645
|
+
* [`sqlite3_backup_step()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupstep)
|
|
646
|
+
* and [`sqlite3_backup_finish()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupfinish) functions.
|
|
647
|
+
*
|
|
648
|
+
* The backed-up database can be used normally during the backup process. Mutations coming from the same connection - same
|
|
649
|
+
* `DatabaseSync` - object will be reflected in the backup right away. However, mutations from other connections will cause
|
|
650
|
+
* the backup process to restart.
|
|
651
|
+
*
|
|
652
|
+
* ```js
|
|
653
|
+
* import { backup, DatabaseSync } from 'node:sqlite';
|
|
654
|
+
*
|
|
655
|
+
* const sourceDb = new DatabaseSync('source.db');
|
|
656
|
+
* const totalPagesTransferred = await backup(sourceDb, 'backup.db', {
|
|
657
|
+
* rate: 1, // Copy one page at a time.
|
|
658
|
+
* progress: ({ totalPages, remainingPages }) => {
|
|
659
|
+
* console.log('Backup in progress', { totalPages, remainingPages });
|
|
660
|
+
* },
|
|
661
|
+
* });
|
|
662
|
+
*
|
|
663
|
+
* console.log('Backup completed', totalPagesTransferred);
|
|
664
|
+
* ```
|
|
665
|
+
* @since v23.8.0
|
|
666
|
+
* @param sourceDb The database to backup. The source database must be open.
|
|
667
|
+
* @param path The path where the backup will be created. If the file already exists,
|
|
668
|
+
* the contents will be overwritten.
|
|
669
|
+
* @param options Optional configuration for the backup. The
|
|
670
|
+
* following properties are supported:
|
|
671
|
+
* @returns A promise that resolves when the backup is completed and rejects if an error occurs.
|
|
672
|
+
*/
|
|
673
|
+
function backup(sourceDb: DatabaseSync, path: string | Buffer | URL, options?: BackupOptions): Promise<void>;
|
|
468
674
|
/**
|
|
469
675
|
* @since v22.13.0
|
|
470
676
|
*/
|
|
@@ -6,6 +6,8 @@ type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
|
6
6
|
: import("stream/web").CountQueuingStrategy;
|
|
7
7
|
type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
8
8
|
: import("stream/web").DecompressionStream;
|
|
9
|
+
type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
10
|
+
: import("stream/web").QueuingStrategy<T>;
|
|
9
11
|
type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
|
|
10
12
|
: import("stream/web").ReadableByteStreamController;
|
|
11
13
|
type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
@@ -143,6 +145,9 @@ declare module "stream/web" {
|
|
|
143
145
|
interface TransformerTransformCallback<I, O> {
|
|
144
146
|
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
145
147
|
}
|
|
148
|
+
interface TransformerCancelCallback {
|
|
149
|
+
(reason: any): void | PromiseLike<void>;
|
|
150
|
+
}
|
|
146
151
|
interface UnderlyingByteSource {
|
|
147
152
|
autoAllocateChunkSize?: number;
|
|
148
153
|
cancel?: ReadableStreamErrorCallback;
|
|
@@ -261,6 +266,7 @@ declare module "stream/web" {
|
|
|
261
266
|
readableType?: undefined;
|
|
262
267
|
start?: TransformerStartCallback<O>;
|
|
263
268
|
transform?: TransformerTransformCallback<I, O>;
|
|
269
|
+
cancel?: TransformerCancelCallback;
|
|
264
270
|
writableType?: undefined;
|
|
265
271
|
}
|
|
266
272
|
interface TransformStream<I = any, O = any> {
|
|
@@ -483,6 +489,8 @@ declare module "stream/web" {
|
|
|
483
489
|
}
|
|
484
490
|
: typeof import("stream/web").DecompressionStream;
|
|
485
491
|
|
|
492
|
+
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
493
|
+
|
|
486
494
|
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
487
495
|
/**
|
|
488
496
|
* `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* A stream is an abstract interface for working with streaming data in Node.js.
|
|
3
3
|
* The `node:stream` module provides an API for implementing the stream interface.
|
|
4
4
|
*
|
|
5
|
-
* There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-
|
|
6
|
-
* and [`process.stdout`](https://nodejs.org/docs/latest-
|
|
5
|
+
* There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v24.x/api/http.html#class-httpincomingmessage)
|
|
6
|
+
* and [`process.stdout`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstdout) are both stream instances.
|
|
7
7
|
*
|
|
8
|
-
* Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-
|
|
8
|
+
* Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v24.x/api/events.html#class-eventemitter).
|
|
9
9
|
*
|
|
10
10
|
* To access the `node:stream` module:
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* The `node:stream` module is useful for creating new types of stream instances.
|
|
17
17
|
* It is usually not necessary to use the `node:stream` module to consume streams.
|
|
18
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
18
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/stream.js)
|
|
19
19
|
*/
|
|
20
20
|
declare module "stream" {
|
|
21
21
|
import { Abortable, EventEmitter } from "node:events";
|
|
@@ -76,7 +76,6 @@ declare module "stream" {
|
|
|
76
76
|
/**
|
|
77
77
|
* A utility method for creating a `Readable` from a web `ReadableStream`.
|
|
78
78
|
* @since v17.0.0
|
|
79
|
-
* @experimental
|
|
80
79
|
*/
|
|
81
80
|
static fromWeb(
|
|
82
81
|
readableStream: streamWeb.ReadableStream,
|
|
@@ -85,7 +84,6 @@ declare module "stream" {
|
|
|
85
84
|
/**
|
|
86
85
|
* A utility method for creating a web `ReadableStream` from a `Readable`.
|
|
87
86
|
* @since v17.0.0
|
|
88
|
-
* @experimental
|
|
89
87
|
*/
|
|
90
88
|
static toWeb(
|
|
91
89
|
streamReadable: Readable,
|
|
@@ -101,7 +99,6 @@ declare module "stream" {
|
|
|
101
99
|
/**
|
|
102
100
|
* Returns whether the stream was destroyed or errored before emitting `'end'`.
|
|
103
101
|
* @since v16.8.0
|
|
104
|
-
* @experimental
|
|
105
102
|
*/
|
|
106
103
|
readonly readableAborted: boolean;
|
|
107
104
|
/**
|
|
@@ -113,7 +110,6 @@ declare module "stream" {
|
|
|
113
110
|
/**
|
|
114
111
|
* Returns whether `'data'` has been emitted.
|
|
115
112
|
* @since v16.7.0, v14.18.0
|
|
116
|
-
* @experimental
|
|
117
113
|
*/
|
|
118
114
|
readonly readableDidRead: boolean;
|
|
119
115
|
/**
|
|
@@ -122,13 +118,13 @@ declare module "stream" {
|
|
|
122
118
|
*/
|
|
123
119
|
readonly readableEncoding: BufferEncoding | null;
|
|
124
120
|
/**
|
|
125
|
-
* Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-
|
|
121
|
+
* Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v24.x/api/stream.html#event-end) event is emitted.
|
|
126
122
|
* @since v12.9.0
|
|
127
123
|
*/
|
|
128
124
|
readonly readableEnded: boolean;
|
|
129
125
|
/**
|
|
130
126
|
* This property reflects the current state of a `Readable` stream as described
|
|
131
|
-
* in the [Three states](https://nodejs.org/docs/latest-
|
|
127
|
+
* in the [Three states](https://nodejs.org/docs/latest-v24.x/api/stream.html#three-states) section.
|
|
132
128
|
* @since v9.4.0
|
|
133
129
|
*/
|
|
134
130
|
readonly readableFlowing: boolean | null;
|
|
@@ -619,6 +615,17 @@ declare module "stream" {
|
|
|
619
615
|
* @param error Error which will be passed as payload in `'error'` event
|
|
620
616
|
*/
|
|
621
617
|
destroy(error?: Error): this;
|
|
618
|
+
/**
|
|
619
|
+
* @returns `AsyncIterator` to fully consume the stream.
|
|
620
|
+
* @since v10.0.0
|
|
621
|
+
*/
|
|
622
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
|
|
623
|
+
/**
|
|
624
|
+
* Calls `readable.destroy()` with an `AbortError` and returns
|
|
625
|
+
* a promise that fulfills when the stream is finished.
|
|
626
|
+
* @since v20.4.0
|
|
627
|
+
*/
|
|
628
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
622
629
|
/**
|
|
623
630
|
* Event emitter
|
|
624
631
|
* The defined events on documents including:
|
|
@@ -686,12 +693,6 @@ declare module "stream" {
|
|
|
686
693
|
removeListener(event: "readable", listener: () => void): this;
|
|
687
694
|
removeListener(event: "resume", listener: () => void): this;
|
|
688
695
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
689
|
-
[Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
|
|
690
|
-
/**
|
|
691
|
-
* Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
|
|
692
|
-
* @since v20.4.0
|
|
693
|
-
*/
|
|
694
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
695
696
|
}
|
|
696
697
|
interface WritableOptions<T extends Writable = Writable> extends StreamOptions<T> {
|
|
697
698
|
decodeStrings?: boolean | undefined;
|
|
@@ -719,7 +720,6 @@ declare module "stream" {
|
|
|
719
720
|
/**
|
|
720
721
|
* A utility method for creating a `Writable` from a web `WritableStream`.
|
|
721
722
|
* @since v17.0.0
|
|
722
|
-
* @experimental
|
|
723
723
|
*/
|
|
724
724
|
static fromWeb(
|
|
725
725
|
writableStream: streamWeb.WritableStream,
|
|
@@ -728,7 +728,6 @@ declare module "stream" {
|
|
|
728
728
|
/**
|
|
729
729
|
* A utility method for creating a web `WritableStream` from a `Writable`.
|
|
730
730
|
* @since v17.0.0
|
|
731
|
-
* @experimental
|
|
732
731
|
*/
|
|
733
732
|
static toWeb(streamWritable: Writable): streamWeb.WritableStream;
|
|
734
733
|
/**
|
|
@@ -737,6 +736,11 @@ declare module "stream" {
|
|
|
737
736
|
* @since v11.4.0
|
|
738
737
|
*/
|
|
739
738
|
readonly writable: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Returns whether the stream was destroyed or errored before emitting `'finish'`.
|
|
741
|
+
* @since v18.0.0, v16.17.0
|
|
742
|
+
*/
|
|
743
|
+
readonly writableAborted: boolean;
|
|
740
744
|
/**
|
|
741
745
|
* Is `true` after `writable.end()` has been called. This property
|
|
742
746
|
* does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead.
|
|
@@ -958,6 +962,12 @@ declare module "stream" {
|
|
|
958
962
|
* @param error Optional, an error to emit with `'error'` event.
|
|
959
963
|
*/
|
|
960
964
|
destroy(error?: Error): this;
|
|
965
|
+
/**
|
|
966
|
+
* Calls `writable.destroy()` with an `AbortError` and returns
|
|
967
|
+
* a promise that fulfills when the stream is finished.
|
|
968
|
+
* @since v22.4.0, v20.16.0
|
|
969
|
+
*/
|
|
970
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
961
971
|
/**
|
|
962
972
|
* Event emitter
|
|
963
973
|
* The defined events on documents including:
|
|
@@ -1084,7 +1094,6 @@ declare module "stream" {
|
|
|
1084
1094
|
/**
|
|
1085
1095
|
* A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.
|
|
1086
1096
|
* @since v17.0.0
|
|
1087
|
-
* @experimental
|
|
1088
1097
|
*/
|
|
1089
1098
|
static toWeb(streamDuplex: Duplex): {
|
|
1090
1099
|
readable: streamWeb.ReadableStream;
|
|
@@ -1093,7 +1102,6 @@ declare module "stream" {
|
|
|
1093
1102
|
/**
|
|
1094
1103
|
* A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`.
|
|
1095
1104
|
* @since v17.0.0
|
|
1096
|
-
* @experimental
|
|
1097
1105
|
*/
|
|
1098
1106
|
static fromWeb(
|
|
1099
1107
|
duplexStream: {
|
|
@@ -1374,7 +1382,7 @@ declare module "stream" {
|
|
|
1374
1382
|
* Especially useful in error handling scenarios where a stream is destroyed
|
|
1375
1383
|
* prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
|
|
1376
1384
|
*
|
|
1377
|
-
* The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-
|
|
1385
|
+
* The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v24.x/api/stream.html#streamfinishedstream-options).
|
|
1378
1386
|
*
|
|
1379
1387
|
* `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been
|
|
1380
1388
|
* invoked. The reason for this is so that unexpected `'error'` events (due to
|
|
@@ -1462,7 +1470,7 @@ declare module "stream" {
|
|
|
1462
1470
|
* );
|
|
1463
1471
|
* ```
|
|
1464
1472
|
*
|
|
1465
|
-
* The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-
|
|
1473
|
+
* The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v24.x/api/stream.html#streampipelinesource-transforms-destination-options).
|
|
1466
1474
|
*
|
|
1467
1475
|
* `stream.pipeline()` will call `stream.destroy(err)` on all streams except:
|
|
1468
1476
|
*
|
|
@@ -1644,13 +1652,11 @@ declare module "stream" {
|
|
|
1644
1652
|
/**
|
|
1645
1653
|
* Returns whether the stream has encountered an error.
|
|
1646
1654
|
* @since v17.3.0, v16.14.0
|
|
1647
|
-
* @experimental
|
|
1648
1655
|
*/
|
|
1649
1656
|
function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
|
|
1650
1657
|
/**
|
|
1651
1658
|
* Returns whether the stream is readable.
|
|
1652
1659
|
* @since v17.4.0, v16.14.0
|
|
1653
|
-
* @experimental
|
|
1654
1660
|
*/
|
|
1655
1661
|
function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
1656
1662
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* decoder.write(Buffer.from([0x82]));
|
|
37
37
|
* console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
|
|
38
38
|
* ```
|
|
39
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
39
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/string_decoder.js)
|
|
40
40
|
*/
|
|
41
41
|
declare module "string_decoder" {
|
|
42
42
|
class StringDecoder {
|