node-red-contrib-tak-registration 0.11.6 → 0.12.0
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 +88 -44
- package/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/node/buffer.d.ts +29 -29
- package/node_modules/@types/node/child_process.d.ts +38 -34
- package/node_modules/@types/node/cluster.d.ts +165 -19
- package/node_modules/@types/node/console.d.ts +64 -27
- package/node_modules/@types/node/crypto.d.ts +101 -65
- package/node_modules/@types/node/dgram.d.ts +14 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +12 -3
- package/node_modules/@types/node/dns/promises.d.ts +79 -28
- package/node_modules/@types/node/dns.d.ts +124 -69
- package/node_modules/@types/node/dom-events.d.ts +2 -0
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +115 -63
- package/node_modules/@types/node/fs/promises.d.ts +18 -12
- package/node_modules/@types/node/fs.d.ts +45 -39
- package/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +69 -48
- package/node_modules/@types/node/http2.d.ts +83 -47
- package/node_modules/@types/node/https.d.ts +3 -3
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +5 -6
- package/node_modules/@types/node/net.d.ts +58 -13
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +3 -15
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +308 -48
- package/node_modules/@types/node/process.d.ts +241 -48
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/stream/web.d.ts +3 -2
- package/node_modules/@types/node/stream.d.ts +62 -56
- package/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/node/test.d.ts +350 -97
- package/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/node/url.d.ts +15 -7
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +50 -6
- package/node_modules/@types/node/vm.d.ts +43 -22
- package/node_modules/@types/node/wasi.d.ts +12 -10
- package/node_modules/@types/node/worker_threads.d.ts +19 -16
- package/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/adm-zip/README.md +2 -1
- package/node_modules/adm-zip/adm-zip.js +46 -45
- package/node_modules/adm-zip/headers/entryHeader.js +14 -12
- package/node_modules/adm-zip/headers/mainHeader.js +1 -1
- package/node_modules/adm-zip/methods/inflater.js +6 -3
- package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
- package/node_modules/adm-zip/package.json +2 -2
- package/node_modules/adm-zip/util/errors.js +1 -0
- package/node_modules/adm-zip/zipEntry.js +64 -43
- package/node_modules/adm-zip/zipFile.js +35 -35
- package/node_modules/axios/CHANGELOG.md +868 -759
- package/node_modules/axios/README.md +65 -17
- package/node_modules/axios/dist/axios.js +1330 -583
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +696 -316
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +696 -316
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +607 -257
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +17 -11
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +7 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +5 -3
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/platform/common/utils.js +4 -1
- package/node_modules/axios/lib/utils.js +7 -2
- package/node_modules/axios/package.json +27 -26
- package/node_modules/fast-xml-parser/CHANGELOG.md +14 -0
- package/node_modules/fast-xml-parser/README.md +7 -14
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +4 -4
- package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
- package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
- package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
- package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
- package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
- package/node_modules/fast-xml-parser/src/validator.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +13 -4
- package/node_modules/follow-redirects/index.js +1 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/hasown/CHANGELOG.md +12 -0
- package/node_modules/hasown/index.d.ts +2 -2
- package/node_modules/hasown/package.json +5 -2
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/object-is/.eslintrc +1 -1
- package/node_modules/object-is/.nycrc +0 -4
- package/node_modules/object-is/CHANGELOG.md +25 -0
- package/node_modules/object-is/README.md +20 -20
- package/node_modules/object-is/package.json +23 -14
- package/node_modules/protobufjs/LICENSE +39 -39
- package/node_modules/protobufjs/README.md +727 -740
- package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/debug/README.md +4 -4
- package/node_modules/protobufjs/ext/debug/index.js +71 -71
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
- package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
- package/node_modules/protobufjs/google/LICENSE +27 -27
- package/node_modules/protobufjs/google/README.md +1 -1
- package/node_modules/protobufjs/google/api/annotations.json +82 -82
- package/node_modules/protobufjs/google/api/annotations.proto +10 -10
- package/node_modules/protobufjs/google/api/http.json +85 -85
- package/node_modules/protobufjs/google/api/http.proto +30 -30
- package/node_modules/protobufjs/google/protobuf/api.json +117 -117
- package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
- package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
- package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
- package/node_modules/protobufjs/google/protobuf/type.json +201 -201
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
- package/node_modules/protobufjs/index.d.ts +2741 -2741
- package/node_modules/protobufjs/index.js +4 -4
- package/node_modules/protobufjs/light.d.ts +2 -2
- package/node_modules/protobufjs/light.js +3 -3
- package/node_modules/protobufjs/minimal.d.ts +2 -2
- package/node_modules/protobufjs/minimal.js +4 -4
- package/node_modules/protobufjs/package.json +111 -111
- package/node_modules/protobufjs/scripts/postinstall.js +32 -32
- package/node_modules/protobufjs/src/common.js +399 -399
- package/node_modules/protobufjs/src/converter.js +301 -301
- package/node_modules/protobufjs/src/decoder.js +129 -129
- package/node_modules/protobufjs/src/encoder.js +100 -100
- package/node_modules/protobufjs/src/enum.js +198 -198
- package/node_modules/protobufjs/src/field.js +377 -377
- package/node_modules/protobufjs/src/index-light.js +104 -104
- package/node_modules/protobufjs/src/index-minimal.js +36 -36
- package/node_modules/protobufjs/src/index.js +12 -12
- package/node_modules/protobufjs/src/mapfield.js +126 -126
- package/node_modules/protobufjs/src/message.js +138 -138
- package/node_modules/protobufjs/src/method.js +160 -160
- package/node_modules/protobufjs/src/namespace.js +433 -433
- package/node_modules/protobufjs/src/object.js +243 -243
- package/node_modules/protobufjs/src/oneof.js +203 -203
- package/node_modules/protobufjs/src/parse.js +889 -872
- package/node_modules/protobufjs/src/reader.js +416 -416
- package/node_modules/protobufjs/src/reader_buffer.js +51 -51
- package/node_modules/protobufjs/src/root.js +368 -368
- package/node_modules/protobufjs/src/roots.js +18 -18
- package/node_modules/protobufjs/src/rpc/service.js +142 -142
- package/node_modules/protobufjs/src/rpc.js +36 -36
- package/node_modules/protobufjs/src/service.js +167 -167
- package/node_modules/protobufjs/src/tokenize.js +416 -416
- package/node_modules/protobufjs/src/type.js +589 -589
- package/node_modules/protobufjs/src/types.js +196 -196
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
- package/node_modules/protobufjs/src/util/longbits.js +200 -200
- package/node_modules/protobufjs/src/util/minimal.js +438 -438
- package/node_modules/protobufjs/src/util.js +212 -212
- package/node_modules/protobufjs/src/verifier.js +176 -176
- package/node_modules/protobufjs/src/wrappers.js +102 -102
- package/node_modules/protobufjs/src/writer.js +465 -465
- package/node_modules/protobufjs/src/writer_buffer.js +85 -85
- package/node_modules/protobufjs/tsconfig.json +7 -7
- package/node_modules/set-function-length/CHANGELOG.md +11 -0
- package/node_modules/set-function-length/env.d.ts +9 -6
- package/node_modules/set-function-length/env.js +1 -0
- package/node_modules/set-function-length/index.d.ts +6 -6
- package/node_modules/set-function-length/index.js +1 -3
- package/node_modules/set-function-length/package.json +11 -13
- package/node_modules/set-function-length/tsconfig.json +7 -57
- package/node_modules/uuid/CHANGELOG.md +18 -0
- package/node_modules/uuid/README.md +134 -16
- package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
- package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
- package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
- package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
- package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
- package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
- package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
- package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
- package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
- package/node_modules/uuid/dist/esm-browser/index.js +9 -4
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
- package/node_modules/uuid/dist/esm-browser/native.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
- package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -3
- package/node_modules/uuid/dist/esm-node/index.js +9 -4
- package/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/node_modules/uuid/dist/esm-node/md5.js +1 -4
- package/node_modules/uuid/dist/esm-node/native.js +1 -1
- package/node_modules/uuid/dist/esm-node/parse.js +11 -9
- package/node_modules/uuid/dist/esm-node/regex.js +1 -1
- package/node_modules/uuid/dist/esm-node/rng.js +1 -3
- package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
- package/node_modules/uuid/dist/esm-node/v1.js +66 -36
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-node/v35.js +8 -19
- package/node_modules/uuid/dist/esm-node/v4.js +4 -8
- package/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/node_modules/uuid/dist/esm-node/validate.js +0 -2
- package/node_modules/uuid/dist/esm-node/version.js +0 -3
- package/node_modules/uuid/dist/index.js +40 -15
- package/node_modules/uuid/dist/max.js +7 -0
- package/node_modules/uuid/dist/md5-browser.js +8 -31
- package/node_modules/uuid/dist/md5.js +4 -10
- package/node_modules/uuid/dist/native-browser.js +2 -3
- package/node_modules/uuid/dist/native.js +5 -9
- package/node_modules/uuid/dist/nil.js +1 -2
- package/node_modules/uuid/dist/parse.js +13 -14
- package/node_modules/uuid/dist/regex.js +1 -2
- package/node_modules/uuid/dist/rng-browser.js +1 -3
- package/node_modules/uuid/dist/rng.js +3 -10
- package/node_modules/uuid/dist/sha1-browser.js +1 -23
- package/node_modules/uuid/dist/sha1.js +4 -10
- package/node_modules/uuid/dist/stringify.js +8 -14
- package/node_modules/uuid/dist/uuid-bin.js +12 -22
- package/node_modules/uuid/dist/v1.js +66 -42
- package/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/v3.js +2 -7
- package/node_modules/uuid/dist/v35.js +11 -28
- package/node_modules/uuid/dist/v4.js +6 -17
- package/node_modules/uuid/dist/v5.js +2 -7
- package/node_modules/uuid/dist/v6.js +38 -0
- package/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/v7.js +152 -0
- package/node_modules/uuid/dist/validate.js +2 -7
- package/node_modules/uuid/dist/version.js +2 -8
- package/node_modules/uuid/package.json +41 -34
- package/node_modules/uuid/wrapper.mjs +5 -0
- package/package.json +6 -6
- package/tak-ingest.js +1 -1
- package/tak-registration.js +8 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -954
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -944
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/set-function-length/env.d.ts.map +0 -1
- package/node_modules/set-function-length/index.d.ts.map +0 -1
|
@@ -2,9 +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
|
|
5
|
+
* There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v20.x/api/http.html#class-httpincomingmessage)
|
|
6
|
+
* and [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) are both stream instances.
|
|
6
7
|
*
|
|
7
|
-
* Streams can be readable, writable, or both. All streams are instances of `EventEmitter
|
|
8
|
+
* Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v20.x/api/events.html#class-eventemitter).
|
|
8
9
|
*
|
|
9
10
|
* To access the `node:stream` module:
|
|
10
11
|
*
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
*
|
|
15
16
|
* The `node:stream` module is useful for creating new types of stream instances.
|
|
16
17
|
* It is usually not necessary to use the `node:stream` module to consume streams.
|
|
17
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
18
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/stream.js)
|
|
18
19
|
*/
|
|
19
20
|
declare module "stream" {
|
|
20
21
|
import { Abortable, EventEmitter } from "node:events";
|
|
@@ -41,14 +42,20 @@ declare module "stream" {
|
|
|
41
42
|
import Readable = internal.Readable;
|
|
42
43
|
import ReadableOptions = internal.ReadableOptions;
|
|
43
44
|
interface ArrayOptions {
|
|
44
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* The maximum concurrent invocations of `fn` to call on the stream at once.
|
|
47
|
+
* @default 1
|
|
48
|
+
*/
|
|
45
49
|
concurrency?: number;
|
|
46
|
-
/**
|
|
50
|
+
/** Allows destroying the stream if the signal is aborted. */
|
|
47
51
|
signal?: AbortSignal;
|
|
48
52
|
}
|
|
49
53
|
class ReadableBase extends Stream implements NodeJS.ReadableStream {
|
|
50
54
|
/**
|
|
51
55
|
* A utility method for creating Readable Streams out of iterators.
|
|
56
|
+
* @since v12.3.0, v10.17.0
|
|
57
|
+
* @param iterable Object implementing the `Symbol.asyncIterator` or `Symbol.iterator` iterable protocol. Emits an 'error' event if a null value is passed.
|
|
58
|
+
* @param options Options provided to `new stream.Readable([options])`. By default, `Readable.from()` will set `options.objectMode` to `true`, unless this is explicitly opted out by setting `options.objectMode` to `false`.
|
|
52
59
|
*/
|
|
53
60
|
static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
|
|
54
61
|
/**
|
|
@@ -63,7 +70,7 @@ declare module "stream" {
|
|
|
63
70
|
*/
|
|
64
71
|
readonly readableAborted: boolean;
|
|
65
72
|
/**
|
|
66
|
-
* Is `true` if it is safe to call
|
|
73
|
+
* Is `true` if it is safe to call {@link read}, which means
|
|
67
74
|
* the stream has not been destroyed or emitted `'error'` or `'end'`.
|
|
68
75
|
* @since v11.4.0
|
|
69
76
|
*/
|
|
@@ -75,18 +82,18 @@ declare module "stream" {
|
|
|
75
82
|
*/
|
|
76
83
|
readonly readableDidRead: boolean;
|
|
77
84
|
/**
|
|
78
|
-
* Getter for the property `encoding` of a given `Readable` stream. The `encoding`property can be set using the
|
|
85
|
+
* Getter for the property `encoding` of a given `Readable` stream. The `encoding` property can be set using the {@link setEncoding} method.
|
|
79
86
|
* @since v12.7.0
|
|
80
87
|
*/
|
|
81
88
|
readonly readableEncoding: BufferEncoding | null;
|
|
82
89
|
/**
|
|
83
|
-
* Becomes `true` when `'end'` event is emitted.
|
|
90
|
+
* Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v20.x/api/stream.html#event-end) event is emitted.
|
|
84
91
|
* @since v12.9.0
|
|
85
92
|
*/
|
|
86
93
|
readonly readableEnded: boolean;
|
|
87
94
|
/**
|
|
88
95
|
* This property reflects the current state of a `Readable` stream as described
|
|
89
|
-
* in the
|
|
96
|
+
* in the [Three states](https://nodejs.org/docs/latest-v20.x/api/stream.html#three-states) section.
|
|
90
97
|
* @since v9.4.0
|
|
91
98
|
*/
|
|
92
99
|
readonly readableFlowing: boolean | null;
|
|
@@ -132,9 +139,10 @@ declare module "stream" {
|
|
|
132
139
|
* specified using the `readable.setEncoding()` method or the stream is operating
|
|
133
140
|
* in object mode.
|
|
134
141
|
*
|
|
135
|
-
* The optional `size` argument specifies a specific number of bytes to read. If
|
|
136
|
-
*
|
|
137
|
-
*
|
|
142
|
+
* The optional `size` argument specifies a specific number of bytes to read. If
|
|
143
|
+
* `size` bytes are not available to be read, `null` will be returned _unless_ the
|
|
144
|
+
* stream has ended, in which case all of the data remaining in the internal buffer
|
|
145
|
+
* will be returned.
|
|
138
146
|
*
|
|
139
147
|
* If the `size` argument is not specified, all of the data contained in the
|
|
140
148
|
* internal buffer will be returned.
|
|
@@ -191,7 +199,7 @@ declare module "stream" {
|
|
|
191
199
|
* ```
|
|
192
200
|
*
|
|
193
201
|
* A `Readable` stream in object mode will always return a single item from
|
|
194
|
-
* a call to `readable.read(size)`, regardless of the value of the`size` argument.
|
|
202
|
+
* a call to `readable.read(size)`, regardless of the value of the `size` argument.
|
|
195
203
|
*
|
|
196
204
|
* If the `readable.read()` method returns a chunk of data, a `'data'` event will
|
|
197
205
|
* also be emitted.
|
|
@@ -206,9 +214,9 @@ declare module "stream" {
|
|
|
206
214
|
* The `readable.setEncoding()` method sets the character encoding for
|
|
207
215
|
* data read from the `Readable` stream.
|
|
208
216
|
*
|
|
209
|
-
* By default, no encoding is assigned and stream data will be returned as`Buffer` objects. Setting an encoding causes the stream data
|
|
210
|
-
* to be returned as strings of the specified encoding rather than as `Buffer`objects. For instance, calling `readable.setEncoding('utf8')` will cause the
|
|
211
|
-
* output data to be interpreted as UTF-8 data, and passed as strings. Calling`readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal
|
|
217
|
+
* By default, no encoding is assigned and stream data will be returned as `Buffer` objects. Setting an encoding causes the stream data
|
|
218
|
+
* to be returned as strings of the specified encoding rather than as `Buffer` objects. For instance, calling `readable.setEncoding('utf8')` will cause the
|
|
219
|
+
* output data to be interpreted as UTF-8 data, and passed as strings. Calling `readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal
|
|
212
220
|
* string format.
|
|
213
221
|
*
|
|
214
222
|
* The `Readable` stream will properly handle multi-byte characters delivered
|
|
@@ -245,7 +253,7 @@ declare module "stream" {
|
|
|
245
253
|
* });
|
|
246
254
|
* ```
|
|
247
255
|
*
|
|
248
|
-
* The `readable.pause()` method has no effect if there is a `'readable'`event listener.
|
|
256
|
+
* The `readable.pause()` method has no effect if there is a `'readable'` event listener.
|
|
249
257
|
* @since v0.9.4
|
|
250
258
|
*/
|
|
251
259
|
pause(): this;
|
|
@@ -264,14 +272,14 @@ declare module "stream" {
|
|
|
264
272
|
* });
|
|
265
273
|
* ```
|
|
266
274
|
*
|
|
267
|
-
* The `readable.resume()` method has no effect if there is a `'readable'`event listener.
|
|
275
|
+
* The `readable.resume()` method has no effect if there is a `'readable'` event listener.
|
|
268
276
|
* @since v0.9.4
|
|
269
277
|
*/
|
|
270
278
|
resume(): this;
|
|
271
279
|
/**
|
|
272
|
-
* The `readable.isPaused()` method returns the current operating state of the`Readable`.
|
|
273
|
-
*
|
|
274
|
-
* use this method directly.
|
|
280
|
+
* The `readable.isPaused()` method returns the current operating state of the `Readable`.
|
|
281
|
+
* This is used primarily by the mechanism that underlies the `readable.pipe()` method.
|
|
282
|
+
* In most typical cases, there will be no reason to use this method directly.
|
|
275
283
|
*
|
|
276
284
|
* ```js
|
|
277
285
|
* const readable = new stream.Readable();
|
|
@@ -373,16 +381,16 @@ declare module "stream" {
|
|
|
373
381
|
* however it is best to simply avoid calling `readable.unshift()` while in the
|
|
374
382
|
* process of performing a read.
|
|
375
383
|
* @since v0.9.11
|
|
376
|
-
* @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must
|
|
377
|
-
* streams, `chunk` may be any JavaScript value.
|
|
384
|
+
* @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must
|
|
385
|
+
* be a {string}, {Buffer}, {TypedArray}, {DataView} or `null`. For object mode streams, `chunk` may be any JavaScript value.
|
|
378
386
|
* @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`.
|
|
379
387
|
*/
|
|
380
388
|
unshift(chunk: any, encoding?: BufferEncoding): void;
|
|
381
389
|
/**
|
|
382
|
-
* Prior to Node.js 0.10, streams did not implement the entire `node:stream`module API as it is currently defined. (See `Compatibility` for more
|
|
390
|
+
* Prior to Node.js 0.10, streams did not implement the entire `node:stream` module API as it is currently defined. (See `Compatibility` for more
|
|
383
391
|
* information.)
|
|
384
392
|
*
|
|
385
|
-
* When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the`readable.wrap()` method can be used to create a `Readable`
|
|
393
|
+
* When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the `readable.wrap()` method can be used to create a `Readable`
|
|
386
394
|
* stream that uses
|
|
387
395
|
* the old stream as its data source.
|
|
388
396
|
*
|
|
@@ -565,8 +573,8 @@ declare module "stream" {
|
|
|
565
573
|
): Promise<T>;
|
|
566
574
|
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
567
575
|
/**
|
|
568
|
-
* Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`event (unless `emitClose` is set to `false`). After this call, the readable
|
|
569
|
-
* stream will release any internal resources and subsequent calls to `push()`will be ignored.
|
|
576
|
+
* Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the readable
|
|
577
|
+
* stream will release any internal resources and subsequent calls to `push()` will be ignored.
|
|
570
578
|
*
|
|
571
579
|
* Once `destroy()` has been called any further calls will be a no-op and no
|
|
572
580
|
* further errors except from `_destroy()` may be emitted as `'error'`.
|
|
@@ -731,7 +739,7 @@ declare module "stream" {
|
|
|
731
739
|
* first argument. The `callback` is called asynchronously and before `'error'` is
|
|
732
740
|
* emitted.
|
|
733
741
|
*
|
|
734
|
-
* The return value is `true` if the internal buffer is less than the`highWaterMark` configured when the stream was created after admitting `chunk`.
|
|
742
|
+
* The return value is `true` if the internal buffer is less than the `highWaterMark` configured when the stream was created after admitting `chunk`.
|
|
735
743
|
* If `false` is returned, further attempts to write data to the stream should
|
|
736
744
|
* stop until the `'drain'` event is emitted.
|
|
737
745
|
*
|
|
@@ -774,8 +782,8 @@ declare module "stream" {
|
|
|
774
782
|
*
|
|
775
783
|
* A `Writable` stream in object mode will always ignore the `encoding` argument.
|
|
776
784
|
* @since v0.9.4
|
|
777
|
-
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a string,
|
|
778
|
-
* JavaScript value other than `null`.
|
|
785
|
+
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
|
|
786
|
+
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
|
|
779
787
|
* @param [encoding='utf8'] The encoding, if `chunk` is a string.
|
|
780
788
|
* @param callback Callback for when this chunk of data is flushed.
|
|
781
789
|
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
|
|
@@ -805,8 +813,8 @@ declare module "stream" {
|
|
|
805
813
|
* // Writing more now is not allowed!
|
|
806
814
|
* ```
|
|
807
815
|
* @since v0.9.4
|
|
808
|
-
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a string,
|
|
809
|
-
* JavaScript value other than `null`.
|
|
816
|
+
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
|
|
817
|
+
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
|
|
810
818
|
* @param encoding The encoding if `chunk` is a string
|
|
811
819
|
* @param callback Callback for when the stream is finished.
|
|
812
820
|
*/
|
|
@@ -819,10 +827,10 @@ declare module "stream" {
|
|
|
819
827
|
*
|
|
820
828
|
* The primary intent of `writable.cork()` is to accommodate a situation in which
|
|
821
829
|
* several small chunks are written to the stream in rapid succession. Instead of
|
|
822
|
-
* immediately forwarding them to the underlying destination, `writable.cork()`buffers all the chunks until `writable.uncork()` is called, which will pass them
|
|
830
|
+
* immediately forwarding them to the underlying destination, `writable.cork()` buffers all the chunks until `writable.uncork()` is called, which will pass them
|
|
823
831
|
* all to `writable._writev()`, if present. This prevents a head-of-line blocking
|
|
824
832
|
* situation where data is being buffered while waiting for the first small chunk
|
|
825
|
-
* to be processed. However, use of `writable.cork()` without implementing`writable._writev()` may have an adverse effect on throughput.
|
|
833
|
+
* to be processed. However, use of `writable.cork()` without implementing `writable._writev()` may have an adverse effect on throughput.
|
|
826
834
|
*
|
|
827
835
|
* See also: `writable.uncork()`, `writable._writev()`.
|
|
828
836
|
* @since v0.11.2
|
|
@@ -832,7 +840,7 @@ declare module "stream" {
|
|
|
832
840
|
* The `writable.uncork()` method flushes all data buffered since {@link cork} was called.
|
|
833
841
|
*
|
|
834
842
|
* When using `writable.cork()` and `writable.uncork()` to manage the buffering
|
|
835
|
-
* of writes to a stream, defer calls to `writable.uncork()` using`process.nextTick()`. Doing so allows batching of all`writable.write()` calls that occur within a given Node.js event
|
|
843
|
+
* of writes to a stream, defer calls to `writable.uncork()` using `process.nextTick()`. Doing so allows batching of all `writable.write()` calls that occur within a given Node.js event
|
|
836
844
|
* loop phase.
|
|
837
845
|
*
|
|
838
846
|
* ```js
|
|
@@ -863,10 +871,10 @@ declare module "stream" {
|
|
|
863
871
|
*/
|
|
864
872
|
uncork(): void;
|
|
865
873
|
/**
|
|
866
|
-
* Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`event (unless `emitClose` is set to `false`). After this call, the writable
|
|
874
|
+
* Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the writable
|
|
867
875
|
* stream has ended and subsequent calls to `write()` or `end()` will result in
|
|
868
876
|
* an `ERR_STREAM_DESTROYED` error.
|
|
869
|
-
* This is a destructive and immediate way to destroy a stream. Previous calls to`write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error.
|
|
877
|
+
* This is a destructive and immediate way to destroy a stream. Previous calls to `write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error.
|
|
870
878
|
* Use `end()` instead of destroy if data should flush before close, or wait for
|
|
871
879
|
* the `'drain'` event before destroying the stream.
|
|
872
880
|
*
|
|
@@ -1061,8 +1069,8 @@ declare module "stream" {
|
|
|
1061
1069
|
* readable side ends. Set initially by the `allowHalfOpen` constructor option,
|
|
1062
1070
|
* which defaults to `true`.
|
|
1063
1071
|
*
|
|
1064
|
-
* This can be changed manually to change the half-open behavior of an existing
|
|
1065
|
-
* emitted.
|
|
1072
|
+
* This can be changed manually to change the half-open behavior of an existing
|
|
1073
|
+
* `Duplex` stream instance, but must be changed before the `'end'` event is emitted.
|
|
1066
1074
|
* @since v0.9.4
|
|
1067
1075
|
*/
|
|
1068
1076
|
allowHalfOpen: boolean;
|
|
@@ -1283,7 +1291,7 @@ declare module "stream" {
|
|
|
1283
1291
|
}
|
|
1284
1292
|
/**
|
|
1285
1293
|
* The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is
|
|
1286
|
-
* primarily for examples and testing, but there are some use cases where`stream.PassThrough` is useful as a building block for novel sorts of streams.
|
|
1294
|
+
* primarily for examples and testing, but there are some use cases where `stream.PassThrough` is useful as a building block for novel sorts of streams.
|
|
1287
1295
|
*/
|
|
1288
1296
|
class PassThrough extends Transform {}
|
|
1289
1297
|
/**
|
|
@@ -1292,8 +1300,8 @@ declare module "stream" {
|
|
|
1292
1300
|
* Attaches an AbortSignal to a readable or writeable stream. This lets code
|
|
1293
1301
|
* control stream destruction using an `AbortController`.
|
|
1294
1302
|
*
|
|
1295
|
-
* Calling `abort` on the `AbortController` corresponding to the passed`AbortSignal` will behave the same way as calling `.destroy(new AbortError())`on the
|
|
1296
|
-
* AbortError())` for webstreams.
|
|
1303
|
+
* Calling `abort` on the `AbortController` corresponding to the passed `AbortSignal` will behave the same way as calling `.destroy(new AbortError())` on the
|
|
1304
|
+
* stream, and `controller.error(new AbortError())` for webstreams.
|
|
1297
1305
|
*
|
|
1298
1306
|
* ```js
|
|
1299
1307
|
* const fs = require('node:fs');
|
|
@@ -1363,20 +1371,18 @@ declare module "stream" {
|
|
|
1363
1371
|
* ```
|
|
1364
1372
|
* @since v15.4.0
|
|
1365
1373
|
* @param signal A signal representing possible cancellation
|
|
1366
|
-
* @param stream
|
|
1374
|
+
* @param stream A stream to attach a signal to.
|
|
1367
1375
|
*/
|
|
1368
1376
|
function addAbortSignal<T extends Stream>(signal: AbortSignal, stream: T): T;
|
|
1369
1377
|
/**
|
|
1370
1378
|
* Returns the default highWaterMark used by streams.
|
|
1371
1379
|
* Defaults to `16384` (16 KiB), or `16` for `objectMode`.
|
|
1372
1380
|
* @since v19.9.0
|
|
1373
|
-
* @param objectMode
|
|
1374
1381
|
*/
|
|
1375
1382
|
function getDefaultHighWaterMark(objectMode: boolean): number;
|
|
1376
1383
|
/**
|
|
1377
1384
|
* Sets the default highWaterMark used by streams.
|
|
1378
1385
|
* @since v19.9.0
|
|
1379
|
-
* @param objectMode
|
|
1380
1386
|
* @param value highWaterMark value
|
|
1381
1387
|
*/
|
|
1382
1388
|
function setDefaultHighWaterMark(objectMode: boolean, value: number): void;
|
|
@@ -1409,11 +1415,11 @@ declare module "stream" {
|
|
|
1409
1415
|
* ```
|
|
1410
1416
|
*
|
|
1411
1417
|
* Especially useful in error handling scenarios where a stream is destroyed
|
|
1412
|
-
* prematurely (like an aborted HTTP request), and will not emit `'end'`or `'finish'`.
|
|
1418
|
+
* prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
|
|
1413
1419
|
*
|
|
1414
|
-
* The `finished` API provides `promise version
|
|
1420
|
+
* The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamfinishedstream-options).
|
|
1415
1421
|
*
|
|
1416
|
-
* `stream.finished()` leaves dangling event listeners (in particular`'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been
|
|
1422
|
+
* `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been
|
|
1417
1423
|
* invoked. The reason for this is so that unexpected `'error'` events (due to
|
|
1418
1424
|
* incorrect stream implementations) do not cause unexpected crashes.
|
|
1419
1425
|
* If this is unwanted behavior then the returned cleanup function needs to be
|
|
@@ -1428,7 +1434,7 @@ declare module "stream" {
|
|
|
1428
1434
|
* @since v10.0.0
|
|
1429
1435
|
* @param stream A readable and/or writable stream.
|
|
1430
1436
|
* @param callback A callback function that takes an optional error argument.
|
|
1431
|
-
* @
|
|
1437
|
+
* @returns A cleanup function which removes all registered listeners.
|
|
1432
1438
|
*/
|
|
1433
1439
|
function finished(
|
|
1434
1440
|
stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
|
|
@@ -1499,7 +1505,7 @@ declare module "stream" {
|
|
|
1499
1505
|
* );
|
|
1500
1506
|
* ```
|
|
1501
1507
|
*
|
|
1502
|
-
* The `pipeline` API provides a `promise version
|
|
1508
|
+
* The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streampipelinesource-transforms-destination-options).
|
|
1503
1509
|
*
|
|
1504
1510
|
* `stream.pipeline()` will call `stream.destroy(err)` on all streams except:
|
|
1505
1511
|
*
|
|
@@ -1539,7 +1545,7 @@ declare module "stream" {
|
|
|
1539
1545
|
function pipeline<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
|
|
1540
1546
|
source: A,
|
|
1541
1547
|
destination: B,
|
|
1542
|
-
callback
|
|
1548
|
+
callback: PipelineCallback<B>,
|
|
1543
1549
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1544
1550
|
function pipeline<
|
|
1545
1551
|
A extends PipelineSource<any>,
|
|
@@ -1549,7 +1555,7 @@ declare module "stream" {
|
|
|
1549
1555
|
source: A,
|
|
1550
1556
|
transform1: T1,
|
|
1551
1557
|
destination: B,
|
|
1552
|
-
callback
|
|
1558
|
+
callback: PipelineCallback<B>,
|
|
1553
1559
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1554
1560
|
function pipeline<
|
|
1555
1561
|
A extends PipelineSource<any>,
|
|
@@ -1561,7 +1567,7 @@ declare module "stream" {
|
|
|
1561
1567
|
transform1: T1,
|
|
1562
1568
|
transform2: T2,
|
|
1563
1569
|
destination: B,
|
|
1564
|
-
callback
|
|
1570
|
+
callback: PipelineCallback<B>,
|
|
1565
1571
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1566
1572
|
function pipeline<
|
|
1567
1573
|
A extends PipelineSource<any>,
|
|
@@ -1575,7 +1581,7 @@ declare module "stream" {
|
|
|
1575
1581
|
transform2: T2,
|
|
1576
1582
|
transform3: T3,
|
|
1577
1583
|
destination: B,
|
|
1578
|
-
callback
|
|
1584
|
+
callback: PipelineCallback<B>,
|
|
1579
1585
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1580
1586
|
function pipeline<
|
|
1581
1587
|
A extends PipelineSource<any>,
|
|
@@ -1591,11 +1597,11 @@ declare module "stream" {
|
|
|
1591
1597
|
transform3: T3,
|
|
1592
1598
|
transform4: T4,
|
|
1593
1599
|
destination: B,
|
|
1594
|
-
callback
|
|
1600
|
+
callback: PipelineCallback<B>,
|
|
1595
1601
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1596
1602
|
function pipeline(
|
|
1597
1603
|
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
1598
|
-
callback
|
|
1604
|
+
callback: (err: NodeJS.ErrnoException | null) => void,
|
|
1599
1605
|
): NodeJS.WritableStream;
|
|
1600
1606
|
function pipeline(
|
|
1601
1607
|
stream1: NodeJS.ReadableStream,
|
|
@@ -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/v20.
|
|
39
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/string_decoder.js)
|
|
40
40
|
*/
|
|
41
41
|
declare module "string_decoder" {
|
|
42
42
|
class StringDecoder {
|
|
@@ -44,7 +44,7 @@ declare module "string_decoder" {
|
|
|
44
44
|
/**
|
|
45
45
|
* Returns a decoded string, ensuring that any incomplete multibyte characters at
|
|
46
46
|
* the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
|
|
47
|
-
* returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`.
|
|
47
|
+
* returned string and stored in an internal buffer for the next call to `stringDecoder.write()` or `stringDecoder.end()`.
|
|
48
48
|
* @since v0.1.99
|
|
49
49
|
* @param buffer The bytes to decode.
|
|
50
50
|
*/
|
|
@@ -54,7 +54,7 @@ declare module "string_decoder" {
|
|
|
54
54
|
* representing incomplete UTF-8 and UTF-16 characters will be replaced with
|
|
55
55
|
* substitution characters appropriate for the character encoding.
|
|
56
56
|
*
|
|
57
|
-
* If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input.
|
|
57
|
+
* If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input.
|
|
58
58
|
* After `end()` is called, the `stringDecoder` object can be reused for new input.
|
|
59
59
|
* @since v0.9.3
|
|
60
60
|
* @param buffer The bytes to decode.
|