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
|
@@ -41,13 +41,21 @@
|
|
|
41
41
|
* });
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
|
-
* See the
|
|
45
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
44
|
+
* See the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) for more information.
|
|
45
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dns.js)
|
|
46
46
|
*/
|
|
47
47
|
declare module "dns" {
|
|
48
48
|
import * as dnsPromises from "node:dns/promises";
|
|
49
49
|
// Supported getaddrinfo flags.
|
|
50
|
+
/**
|
|
51
|
+
* Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are
|
|
52
|
+
* only returned if the current system has at least one IPv4 address configured.
|
|
53
|
+
*/
|
|
50
54
|
export const ADDRCONFIG: number;
|
|
55
|
+
/**
|
|
56
|
+
* If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported
|
|
57
|
+
* on some operating systems (e.g. FreeBSD 10.1).
|
|
58
|
+
*/
|
|
51
59
|
export const V4MAPPED: number;
|
|
52
60
|
/**
|
|
53
61
|
* If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
|
|
@@ -55,11 +63,37 @@ declare module "dns" {
|
|
|
55
63
|
*/
|
|
56
64
|
export const ALL: number;
|
|
57
65
|
export interface LookupOptions {
|
|
58
|
-
|
|
66
|
+
/**
|
|
67
|
+
* The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted
|
|
68
|
+
* as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used
|
|
69
|
+
* with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned.
|
|
70
|
+
* @default 0
|
|
71
|
+
*/
|
|
72
|
+
family?: number | "IPv4" | "IPv6" | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v20.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be
|
|
75
|
+
* passed by bitwise `OR`ing their values.
|
|
76
|
+
*/
|
|
59
77
|
hints?: number | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
60
82
|
all?: boolean | undefined;
|
|
61
83
|
/**
|
|
62
|
-
*
|
|
84
|
+
* When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted
|
|
85
|
+
* by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6
|
|
86
|
+
* addresses before IPv4 addresses. Default value is configurable using
|
|
87
|
+
* {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
|
|
88
|
+
* @default `verbatim` (addresses are not reordered)
|
|
89
|
+
*/
|
|
90
|
+
order?: "ipv4first" | "ipv6first" | "verbatim" | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4
|
|
93
|
+
* addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified,
|
|
94
|
+
* `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder}
|
|
95
|
+
* or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
|
|
96
|
+
* @default true (addresses are not reordered)
|
|
63
97
|
*/
|
|
64
98
|
verbatim?: boolean | undefined;
|
|
65
99
|
}
|
|
@@ -70,7 +104,14 @@ declare module "dns" {
|
|
|
70
104
|
all: true;
|
|
71
105
|
}
|
|
72
106
|
export interface LookupAddress {
|
|
107
|
+
/**
|
|
108
|
+
* A string representation of an IPv4 or IPv6 address.
|
|
109
|
+
*/
|
|
73
110
|
address: string;
|
|
111
|
+
/**
|
|
112
|
+
* `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a
|
|
113
|
+
* bug in the name resolution service used by the operating system.
|
|
114
|
+
*/
|
|
74
115
|
family: number;
|
|
75
116
|
}
|
|
76
117
|
/**
|
|
@@ -79,7 +120,7 @@ declare module "dns" {
|
|
|
79
120
|
* integer, then it must be `4` or `6` – if `options` is `0` or not provided, then
|
|
80
121
|
* IPv4 and IPv6 addresses are both returned if found.
|
|
81
122
|
*
|
|
82
|
-
* With the `all` option set to `true`, the arguments for `callback` change to`(err, addresses)`, with `addresses` being an array of objects with the
|
|
123
|
+
* With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the
|
|
83
124
|
* properties `address` and `family`.
|
|
84
125
|
*
|
|
85
126
|
* On error, `err` is an `Error` object, where `err.code` is the error code.
|
|
@@ -91,7 +132,8 @@ declare module "dns" {
|
|
|
91
132
|
* The implementation uses an operating system facility that can associate names
|
|
92
133
|
* with addresses and vice versa. This implementation can have subtle but
|
|
93
134
|
* important consequences on the behavior of any Node.js program. Please take some
|
|
94
|
-
* time to consult the
|
|
135
|
+
* time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations)
|
|
136
|
+
* before using `dns.lookup()`.
|
|
95
137
|
*
|
|
96
138
|
* Example usage:
|
|
97
139
|
*
|
|
@@ -112,7 +154,8 @@ declare module "dns" {
|
|
|
112
154
|
* // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
|
|
113
155
|
* ```
|
|
114
156
|
*
|
|
115
|
-
* If this method is invoked as its
|
|
157
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed
|
|
158
|
+
* version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties.
|
|
116
159
|
* @since v0.1.90
|
|
117
160
|
*/
|
|
118
161
|
export function lookup(
|
|
@@ -149,9 +192,10 @@ declare module "dns" {
|
|
|
149
192
|
* the operating system's underlying `getnameinfo` implementation.
|
|
150
193
|
*
|
|
151
194
|
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
|
152
|
-
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown.
|
|
195
|
+
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
|
|
153
196
|
*
|
|
154
|
-
* On an error, `err` is an `Error` object,
|
|
197
|
+
* On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object,
|
|
198
|
+
* where `err.code` is the error code.
|
|
155
199
|
*
|
|
156
200
|
* ```js
|
|
157
201
|
* const dns = require('node:dns');
|
|
@@ -161,7 +205,8 @@ declare module "dns" {
|
|
|
161
205
|
* });
|
|
162
206
|
* ```
|
|
163
207
|
*
|
|
164
|
-
* If this method is invoked as its
|
|
208
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed
|
|
209
|
+
* version, it returns a `Promise` for an `Object` with `hostname` and `service` properties.
|
|
165
210
|
* @since v0.11.14
|
|
166
211
|
*/
|
|
167
212
|
export function lookupService(
|
|
@@ -272,12 +317,13 @@ declare module "dns" {
|
|
|
272
317
|
| AnyTxtRecord;
|
|
273
318
|
/**
|
|
274
319
|
* Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
|
|
275
|
-
* of the resource records. The `callback` function has arguments`(err, records)`. When successful, `records` will be an array of resource
|
|
320
|
+
* of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource
|
|
276
321
|
* records. The type and structure of individual results varies based on `rrtype`:
|
|
277
322
|
*
|
|
278
323
|
* <omitted>
|
|
279
324
|
*
|
|
280
|
-
* On error, `err` is an `Error` object,
|
|
325
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object,
|
|
326
|
+
* where `err.code` is one of the `DNS error codes`.
|
|
281
327
|
* @since v0.1.27
|
|
282
328
|
* @param hostname Host name to resolve.
|
|
283
329
|
* @param [rrtype='A'] Resource record type.
|
|
@@ -363,7 +409,7 @@ declare module "dns" {
|
|
|
363
409
|
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
364
410
|
}
|
|
365
411
|
/**
|
|
366
|
-
* Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the`hostname`. The `addresses` argument passed to the `callback` function
|
|
412
|
+
* Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
367
413
|
* will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
|
|
368
414
|
* @since v0.1.16
|
|
369
415
|
* @param hostname Host name to resolve.
|
|
@@ -388,7 +434,7 @@ declare module "dns" {
|
|
|
388
434
|
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
389
435
|
}
|
|
390
436
|
/**
|
|
391
|
-
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the`hostname`. The `addresses` argument passed to the `callback` function
|
|
437
|
+
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
392
438
|
* will contain an array of IPv6 addresses.
|
|
393
439
|
* @since v0.1.16
|
|
394
440
|
* @param hostname Host name to resolve.
|
|
@@ -413,8 +459,8 @@ declare module "dns" {
|
|
|
413
459
|
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
414
460
|
}
|
|
415
461
|
/**
|
|
416
|
-
* Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The`addresses` argument passed to the `callback` function
|
|
417
|
-
* will contain an array of canonical name records available for the `hostname`(e.g. `['bar.example.com']`).
|
|
462
|
+
* Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
463
|
+
* will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`).
|
|
418
464
|
* @since v0.3.2
|
|
419
465
|
*/
|
|
420
466
|
export function resolveCname(
|
|
@@ -425,7 +471,7 @@ declare module "dns" {
|
|
|
425
471
|
function __promisify__(hostname: string): Promise<string[]>;
|
|
426
472
|
}
|
|
427
473
|
/**
|
|
428
|
-
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. The`addresses` argument passed to the `callback` function
|
|
474
|
+
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
429
475
|
* will contain an array of certification authority authorization records
|
|
430
476
|
* available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`).
|
|
431
477
|
* @since v15.0.0, v14.17.0
|
|
@@ -438,8 +484,8 @@ declare module "dns" {
|
|
|
438
484
|
function __promisify__(hostname: string): Promise<CaaRecord[]>;
|
|
439
485
|
}
|
|
440
486
|
/**
|
|
441
|
-
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. The `addresses` argument passed to the `callback` function will
|
|
442
|
-
* contain an array of objects containing both a `priority` and `exchange`property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
|
|
487
|
+
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
488
|
+
* contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
|
|
443
489
|
* @since v0.1.27
|
|
444
490
|
*/
|
|
445
491
|
export function resolveMx(
|
|
@@ -450,7 +496,7 @@ declare module "dns" {
|
|
|
450
496
|
function __promisify__(hostname: string): Promise<MxRecord[]>;
|
|
451
497
|
}
|
|
452
498
|
/**
|
|
453
|
-
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR`records) for the `hostname`. The `addresses` argument passed to the `callback`function will contain an array of
|
|
499
|
+
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of
|
|
454
500
|
* objects with the following properties:
|
|
455
501
|
*
|
|
456
502
|
* * `flags`
|
|
@@ -480,8 +526,8 @@ declare module "dns" {
|
|
|
480
526
|
function __promisify__(hostname: string): Promise<NaptrRecord[]>;
|
|
481
527
|
}
|
|
482
528
|
/**
|
|
483
|
-
* Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. The `addresses` argument passed to the `callback` function will
|
|
484
|
-
* contain an array of name server records available for `hostname`(e.g. `['ns1.example.com', 'ns2.example.com']`).
|
|
529
|
+
* Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
530
|
+
* contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`).
|
|
485
531
|
* @since v0.1.90
|
|
486
532
|
*/
|
|
487
533
|
export function resolveNs(
|
|
@@ -492,7 +538,7 @@ declare module "dns" {
|
|
|
492
538
|
function __promisify__(hostname: string): Promise<string[]>;
|
|
493
539
|
}
|
|
494
540
|
/**
|
|
495
|
-
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. The `addresses` argument passed to the `callback` function will
|
|
541
|
+
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
496
542
|
* be an array of strings containing the reply records.
|
|
497
543
|
* @since v6.0.0
|
|
498
544
|
*/
|
|
@@ -537,7 +583,7 @@ declare module "dns" {
|
|
|
537
583
|
function __promisify__(hostname: string): Promise<SoaRecord>;
|
|
538
584
|
}
|
|
539
585
|
/**
|
|
540
|
-
* Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. The `addresses` argument passed to the `callback` function will
|
|
586
|
+
* Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
541
587
|
* be an array of objects with the following properties:
|
|
542
588
|
*
|
|
543
589
|
* * `priority`
|
|
@@ -563,7 +609,7 @@ declare module "dns" {
|
|
|
563
609
|
function __promisify__(hostname: string): Promise<SrvRecord[]>;
|
|
564
610
|
}
|
|
565
611
|
/**
|
|
566
|
-
* Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. The `records` argument passed to the `callback` function is a
|
|
612
|
+
* Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a
|
|
567
613
|
* two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
|
|
568
614
|
* one record. Depending on the use case, these could be either joined together or
|
|
569
615
|
* treated separately.
|
|
@@ -603,8 +649,8 @@ declare module "dns" {
|
|
|
603
649
|
* minttl: 60 } ]
|
|
604
650
|
* ```
|
|
605
651
|
*
|
|
606
|
-
* DNS server operators may choose not to respond to `ANY`queries. It may be better to call individual methods like {@link resolve4},{@link resolveMx}, and so on. For more details, see
|
|
607
|
-
* 8482](https://tools.ietf.org/html/rfc8482).
|
|
652
|
+
* DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see
|
|
653
|
+
* [RFC 8482](https://tools.ietf.org/html/rfc8482).
|
|
608
654
|
*/
|
|
609
655
|
export function resolveAny(
|
|
610
656
|
hostname: string,
|
|
@@ -617,8 +663,8 @@ declare module "dns" {
|
|
|
617
663
|
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
618
664
|
* array of host names.
|
|
619
665
|
*
|
|
620
|
-
* On error, `err` is an `Error` object, where `err.code` is
|
|
621
|
-
* one of the
|
|
666
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is
|
|
667
|
+
* one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
|
|
622
668
|
* @since v0.1.16
|
|
623
669
|
*/
|
|
624
670
|
export function reverse(
|
|
@@ -626,13 +672,15 @@ declare module "dns" {
|
|
|
626
672
|
callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void,
|
|
627
673
|
): void;
|
|
628
674
|
/**
|
|
629
|
-
* Get the default value for `
|
|
675
|
+
* Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
676
|
+
* The value could be:
|
|
630
677
|
*
|
|
631
|
-
* * `ipv4first`: for `
|
|
632
|
-
* * `
|
|
633
|
-
*
|
|
678
|
+
* * `ipv4first`: for `order` defaulting to `ipv4first`.
|
|
679
|
+
* * `ipv6first`: for `order` defaulting to `ipv6first`.
|
|
680
|
+
* * `verbatim`: for `order` defaulting to `verbatim`.
|
|
681
|
+
* @since v18.17.0
|
|
634
682
|
*/
|
|
635
|
-
export function getDefaultResultOrder(): "ipv4first" | "verbatim";
|
|
683
|
+
export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim";
|
|
636
684
|
/**
|
|
637
685
|
* Sets the IP address and port of servers to be used when performing DNS
|
|
638
686
|
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
|
|
@@ -652,14 +700,14 @@ declare module "dns" {
|
|
|
652
700
|
* The `dns.setServers()` method must not be called while a DNS query is in
|
|
653
701
|
* progress.
|
|
654
702
|
*
|
|
655
|
-
* The {@link setServers} method affects only {@link resolve}
|
|
703
|
+
* The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}).
|
|
656
704
|
*
|
|
657
705
|
* This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
658
|
-
* That is, if attempting to resolve with the first server provided results in a`NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
|
|
706
|
+
* That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
|
|
659
707
|
* subsequent servers provided. Fallback DNS servers will only be used if the
|
|
660
708
|
* earlier ones time out or result in some other error.
|
|
661
709
|
* @since v0.11.3
|
|
662
|
-
* @param servers array of
|
|
710
|
+
* @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses
|
|
663
711
|
*/
|
|
664
712
|
export function setServers(servers: readonly string[]): void;
|
|
665
713
|
/**
|
|
@@ -679,46 +727,53 @@ declare module "dns" {
|
|
|
679
727
|
*/
|
|
680
728
|
export function getServers(): string[];
|
|
681
729
|
/**
|
|
682
|
-
* Set the default value of `
|
|
730
|
+
* Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
731
|
+
* The value could be:
|
|
683
732
|
*
|
|
684
|
-
* * `ipv4first`: sets default `
|
|
685
|
-
* * `
|
|
733
|
+
* * `ipv4first`: sets default `order` to `ipv4first`.
|
|
734
|
+
* * `ipv6first`: sets default `order` to `ipv6first`.
|
|
735
|
+
* * `verbatim`: sets default `order` to `verbatim`.
|
|
686
736
|
*
|
|
687
737
|
* The default is `verbatim` and {@link setDefaultResultOrder} have higher
|
|
688
|
-
* priority than `--dns-result-order
|
|
689
|
-
*
|
|
738
|
+
* priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). When using
|
|
739
|
+
* [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main
|
|
740
|
+
* thread won't affect the default dns orders in workers.
|
|
690
741
|
* @since v16.4.0, v14.18.0
|
|
691
|
-
* @param order must be `'ipv4first'` or `'verbatim'`.
|
|
742
|
+
* @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
|
|
692
743
|
*/
|
|
693
|
-
export function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
|
|
744
|
+
export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
|
|
694
745
|
// Error codes
|
|
695
|
-
export const NODATA:
|
|
696
|
-
export const FORMERR:
|
|
697
|
-
export const SERVFAIL:
|
|
698
|
-
export const NOTFOUND:
|
|
699
|
-
export const NOTIMP:
|
|
700
|
-
export const REFUSED:
|
|
701
|
-
export const BADQUERY:
|
|
702
|
-
export const BADNAME:
|
|
703
|
-
export const BADFAMILY:
|
|
704
|
-
export const BADRESP:
|
|
705
|
-
export const CONNREFUSED:
|
|
706
|
-
export const TIMEOUT:
|
|
707
|
-
export const EOF:
|
|
708
|
-
export const FILE:
|
|
709
|
-
export const NOMEM:
|
|
710
|
-
export const DESTRUCTION:
|
|
711
|
-
export const BADSTR:
|
|
712
|
-
export const BADFLAGS:
|
|
713
|
-
export const NONAME:
|
|
714
|
-
export const BADHINTS:
|
|
715
|
-
export const NOTINITIALIZED:
|
|
716
|
-
export const LOADIPHLPAPI:
|
|
717
|
-
export const ADDRGETNETWORKPARAMS:
|
|
718
|
-
export const CANCELLED:
|
|
746
|
+
export const NODATA: "ENODATA";
|
|
747
|
+
export const FORMERR: "EFORMERR";
|
|
748
|
+
export const SERVFAIL: "ESERVFAIL";
|
|
749
|
+
export const NOTFOUND: "ENOTFOUND";
|
|
750
|
+
export const NOTIMP: "ENOTIMP";
|
|
751
|
+
export const REFUSED: "EREFUSED";
|
|
752
|
+
export const BADQUERY: "EBADQUERY";
|
|
753
|
+
export const BADNAME: "EBADNAME";
|
|
754
|
+
export const BADFAMILY: "EBADFAMILY";
|
|
755
|
+
export const BADRESP: "EBADRESP";
|
|
756
|
+
export const CONNREFUSED: "ECONNREFUSED";
|
|
757
|
+
export const TIMEOUT: "ETIMEOUT";
|
|
758
|
+
export const EOF: "EOF";
|
|
759
|
+
export const FILE: "EFILE";
|
|
760
|
+
export const NOMEM: "ENOMEM";
|
|
761
|
+
export const DESTRUCTION: "EDESTRUCTION";
|
|
762
|
+
export const BADSTR: "EBADSTR";
|
|
763
|
+
export const BADFLAGS: "EBADFLAGS";
|
|
764
|
+
export const NONAME: "ENONAME";
|
|
765
|
+
export const BADHINTS: "EBADHINTS";
|
|
766
|
+
export const NOTINITIALIZED: "ENOTINITIALIZED";
|
|
767
|
+
export const LOADIPHLPAPI: "ELOADIPHLPAPI";
|
|
768
|
+
export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
|
|
769
|
+
export const CANCELLED: "ECANCELLED";
|
|
719
770
|
export interface ResolverOptions {
|
|
771
|
+
/**
|
|
772
|
+
* Query timeout in milliseconds, or `-1` to use the default timeout.
|
|
773
|
+
*/
|
|
720
774
|
timeout?: number | undefined;
|
|
721
775
|
/**
|
|
776
|
+
* The number of tries the resolver will try contacting each name server before giving up.
|
|
722
777
|
* @default 4
|
|
723
778
|
*/
|
|
724
779
|
tries?: number;
|
|
@@ -727,7 +782,7 @@ declare module "dns" {
|
|
|
727
782
|
* An independent resolver for DNS requests.
|
|
728
783
|
*
|
|
729
784
|
* Creating a new resolver uses the default server settings. Setting
|
|
730
|
-
* the servers used for a resolver using `resolver.setServers()` does not affect
|
|
785
|
+
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnssetserversservers) does not affect
|
|
731
786
|
* other resolvers:
|
|
732
787
|
*
|
|
733
788
|
* ```js
|
|
@@ -89,6 +89,8 @@ interface AddEventListenerOptions extends EventListenerOptions {
|
|
|
89
89
|
once?: boolean;
|
|
90
90
|
/** When `true`, serves as a hint that the listener will not call the `Event` object's `preventDefault()` method. Default: false. */
|
|
91
91
|
passive?: boolean;
|
|
92
|
+
/** The listener will be removed when the given AbortSignal object's `abort()` method is called. */
|
|
93
|
+
signal?: AbortSignal;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
interface EventListener {
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* Domains provide a way to handle multiple different IO operations as a
|
|
10
10
|
* single group. If any of the event emitters or callbacks registered to a
|
|
11
11
|
* domain emit an `'error'` event, or throw an error, then the domain object
|
|
12
|
-
* will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to
|
|
12
|
+
* will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to
|
|
13
13
|
* exit immediately with an error code.
|
|
14
14
|
* @deprecated Since v1.4.2 - Deprecated
|
|
15
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
15
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/domain.js)
|
|
16
16
|
*/
|
|
17
17
|
declare module "domain" {
|
|
18
18
|
import EventEmitter = require("node:events");
|
|
@@ -29,7 +29,7 @@ declare module "domain" {
|
|
|
29
29
|
*/
|
|
30
30
|
members: Array<EventEmitter | NodeJS.Timer>;
|
|
31
31
|
/**
|
|
32
|
-
* The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and`process.domain` to the domain, and implicitly
|
|
32
|
+
* The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly
|
|
33
33
|
* pushes the domain onto the domain
|
|
34
34
|
* stack managed by the domain module (see {@link exit} for details on the
|
|
35
35
|
* domain stack). The call to `enter()` delimits the beginning of a chain of
|
|
@@ -47,7 +47,7 @@ declare module "domain" {
|
|
|
47
47
|
* The call to `exit()` delimits either the end of or an interruption to the chain
|
|
48
48
|
* of asynchronous calls and I/O operations bound to a domain.
|
|
49
49
|
*
|
|
50
|
-
* If there are multiple, nested domains bound to the current execution context
|
|
50
|
+
* If there are multiple, nested domains bound to the current execution context, `exit()` will exit any domains nested within this domain.
|
|
51
51
|
*
|
|
52
52
|
* Calling `exit()` changes only the active domain, and does not alter the domain
|
|
53
53
|
* itself. `enter()` and `exit()` can be called an arbitrary number of times on a
|