node-red-contrib-tak-registration 0.11.5 → 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 +37 -36
- 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 +139 -72
- package/node_modules/@types/node/dgram.d.ts +24 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +365 -2
- 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 +72 -46
- package/node_modules/@types/node/globals.d.ts +27 -0
- package/node_modules/@types/node/http.d.ts +75 -55
- 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/module.d.ts +14 -0
- package/node_modules/@types/node/net.d.ts +66 -16
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +320 -54
- package/node_modules/@types/node/process.d.ts +265 -50
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +21 -9
- 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 +18 -1
- package/node_modules/@types/node/stream.d.ts +62 -56
- package/node_modules/@types/node/string_decoder.d.ts +5 -5
- package/node_modules/@types/node/test.d.ts +445 -109
- 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 +40 -33
- 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 +73 -48
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +183 -10
- package/node_modules/@types/node/vm.d.ts +43 -22
- package/node_modules/@types/node/wasi.d.ts +38 -15
- 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 +873 -711
- package/node_modules/axios/README.md +98 -8
- package/node_modules/axios/dist/axios.js +1461 -350
- 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 +710 -306
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +710 -306
- 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 +628 -250
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +6 -3
- package/node_modules/axios/index.d.ts +6 -3
- 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 +7 -3
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +28 -1
- 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/combineURLs.js +1 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -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/call-bind/CHANGELOG.md +16 -0
- package/node_modules/call-bind/index.js +2 -11
- package/node_modules/call-bind/package.json +11 -6
- package/node_modules/define-data-property/CHANGELOG.md +29 -0
- package/node_modules/define-data-property/index.d.ts +12 -3
- package/node_modules/define-data-property/index.js +4 -16
- package/node_modules/define-data-property/package.json +26 -33
- package/node_modules/define-data-property/test/index.js +10 -10
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +15 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +16 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +55 -0
- package/node_modules/es-define-property/tsconfig.json +50 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +17 -0
- package/node_modules/fast-xml-parser/README.md +9 -15
- package/node_modules/fast-xml-parser/package.json +4 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +365 -71
- 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 +18 -9
- package/node_modules/follow-redirects/index.js +115 -76
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
- package/node_modules/get-intrinsic/index.js +15 -7
- package/node_modules/get-intrinsic/package.json +12 -12
- package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
- package/node_modules/has-property-descriptors/index.js +3 -14
- package/node_modules/has-property-descriptors/package.json +5 -5
- package/node_modules/has-proto/CHANGELOG.md +15 -0
- package/node_modules/has-proto/index.d.ts +3 -0
- package/node_modules/has-proto/index.js +5 -1
- package/node_modules/has-proto/package.json +9 -5
- package/node_modules/has-proto/tsconfig.json +49 -0
- package/node_modules/has-tostringtag/.eslintrc +0 -6
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +1 -0
- package/node_modules/has-tostringtag/package.json +37 -13
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +1 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
- package/node_modules/has-tostringtag/test/tests.js +2 -1
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/index.d.ts +3 -3
- package/node_modules/hasown/index.js +1 -1
- package/node_modules/hasown/package.json +16 -15
- 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/polygon-clipping/README.md +29 -26
- package/node_modules/polygon-clipping/dist/polygon-clipping.cjs.js +1398 -1421
- package/node_modules/polygon-clipping/dist/polygon-clipping.d.ts +13 -10
- package/node_modules/polygon-clipping/dist/polygon-clipping.esm.js +1139 -1427
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.js +1770 -1831
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js +22 -8
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js.map +1 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/LICENSE +24 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/README.md +82 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/util.js +138 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.d.ts +49 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.js +5 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/package.json +75 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.js +908 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.js +914 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.js +280 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.js +601 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.js +2328 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.min.js +1 -0
- package/node_modules/polygon-clipping/package.json +30 -25
- 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 +3 -3
- 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/regexp.prototype.flags/CHANGELOG.md +13 -0
- package/node_modules/regexp.prototype.flags/implementation.js +2 -2
- package/node_modules/regexp.prototype.flags/package.json +11 -10
- package/node_modules/regexp.prototype.flags/test/tests.js +13 -13
- package/node_modules/set-function-length/CHANGELOG.md +29 -0
- package/node_modules/set-function-length/env.d.ts +9 -0
- package/node_modules/set-function-length/env.js +10 -4
- package/node_modules/set-function-length/index.d.ts +7 -0
- package/node_modules/set-function-length/index.js +4 -3
- package/node_modules/set-function-length/package.json +29 -11
- package/node_modules/set-function-length/tsconfig.json +9 -0
- package/node_modules/set-function-name/.eslintrc +1 -0
- package/node_modules/set-function-name/CHANGELOG.md +9 -0
- package/node_modules/set-function-name/index.d.ts +5 -0
- package/node_modules/set-function-name/index.js +4 -3
- package/node_modules/set-function-name/package.json +28 -9
- package/node_modules/set-function-name/tsconfig.json +59 -0
- 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 +5 -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 -2362
- 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 -4455
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- 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 -4291
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- 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 -301
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- 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 -639
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
- 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 -350
- 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 -1382
- 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 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- 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/define-data-property/index.d.ts.map +0 -1
- package/node_modules/hasown/index.d.ts.map +0 -1
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/polygon-clipping/CHANGELOG.md +0 -129
|
@@ -43,18 +43,18 @@ declare module "dns/promises" {
|
|
|
43
43
|
* integer, then it must be `4` or `6` – if `options` is not provided, then IPv4
|
|
44
44
|
* and IPv6 addresses are both returned if found.
|
|
45
45
|
*
|
|
46
|
-
* With the `all` option set to `true`, the `Promise` is resolved with `addresses`being an array of objects with the properties `address` and `family`.
|
|
46
|
+
* With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`.
|
|
47
47
|
*
|
|
48
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code.
|
|
48
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
|
|
49
49
|
* Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
|
|
50
50
|
* the host name does not exist but also when the lookup fails in other ways
|
|
51
51
|
* such as no available file descriptors.
|
|
52
52
|
*
|
|
53
|
-
* `dnsPromises.lookup()` does not necessarily have anything to do with the DNS
|
|
53
|
+
* [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS
|
|
54
54
|
* protocol. The implementation uses an operating system facility that can
|
|
55
55
|
* associate names with addresses and vice versa. This implementation can have
|
|
56
56
|
* subtle but important consequences on the behavior of any Node.js program. Please
|
|
57
|
-
* take some time to consult the
|
|
57
|
+
* take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before
|
|
58
58
|
* using `dnsPromises.lookup()`.
|
|
59
59
|
*
|
|
60
60
|
* Example usage:
|
|
@@ -91,9 +91,9 @@ declare module "dns/promises" {
|
|
|
91
91
|
* the operating system's underlying `getnameinfo` implementation.
|
|
92
92
|
*
|
|
93
93
|
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
|
94
|
-
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown.
|
|
94
|
+
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
|
|
95
95
|
*
|
|
96
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code.
|
|
96
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
|
|
97
97
|
*
|
|
98
98
|
* ```js
|
|
99
99
|
* const dnsPromises = require('node:dns').promises;
|
|
@@ -119,7 +119,8 @@ declare module "dns/promises" {
|
|
|
119
119
|
*
|
|
120
120
|
* <omitted>
|
|
121
121
|
*
|
|
122
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`
|
|
122
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
|
|
123
|
+
* is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
|
|
123
124
|
* @since v10.6.0
|
|
124
125
|
* @param hostname Host name to resolve.
|
|
125
126
|
* @param [rrtype='A'] Resource record type.
|
|
@@ -142,7 +143,7 @@ declare module "dns/promises" {
|
|
|
142
143
|
rrtype: string,
|
|
143
144
|
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
144
145
|
/**
|
|
145
|
-
* Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv4
|
|
146
|
+
* Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4
|
|
146
147
|
* addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
|
|
147
148
|
* @since v10.6.0
|
|
148
149
|
* @param hostname Host name to resolve.
|
|
@@ -151,7 +152,7 @@ declare module "dns/promises" {
|
|
|
151
152
|
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
152
153
|
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
153
154
|
/**
|
|
154
|
-
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv6
|
|
155
|
+
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6
|
|
155
156
|
* addresses.
|
|
156
157
|
* @since v10.6.0
|
|
157
158
|
* @param hostname Host name to resolve.
|
|
@@ -191,7 +192,7 @@ declare module "dns/promises" {
|
|
|
191
192
|
/**
|
|
192
193
|
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
|
|
193
194
|
* the `Promise` is resolved with an array of objects containing available
|
|
194
|
-
* certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
|
|
195
|
+
* certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
|
|
195
196
|
* @since v15.0.0, v14.17.0
|
|
196
197
|
*/
|
|
197
198
|
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
|
@@ -203,13 +204,13 @@ declare module "dns/promises" {
|
|
|
203
204
|
*/
|
|
204
205
|
function resolveCname(hostname: string): Promise<string[]>;
|
|
205
206
|
/**
|
|
206
|
-
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects
|
|
207
|
+
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects
|
|
207
208
|
* containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`).
|
|
208
209
|
* @since v10.6.0
|
|
209
210
|
*/
|
|
210
211
|
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
|
211
212
|
/**
|
|
212
|
-
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR`records) for the `hostname`. On success, the `Promise` is resolved with an array
|
|
213
|
+
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array
|
|
213
214
|
* of objects with the following properties:
|
|
214
215
|
*
|
|
215
216
|
* * `flags`
|
|
@@ -233,13 +234,13 @@ declare module "dns/promises" {
|
|
|
233
234
|
*/
|
|
234
235
|
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
|
235
236
|
/**
|
|
236
|
-
* Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. On success, the `Promise` is resolved with an array of name server
|
|
237
|
+
* Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server
|
|
237
238
|
* records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`).
|
|
238
239
|
* @since v10.6.0
|
|
239
240
|
*/
|
|
240
241
|
function resolveNs(hostname: string): Promise<string[]>;
|
|
241
242
|
/**
|
|
242
|
-
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. On success, the `Promise` is resolved with an array of strings
|
|
243
|
+
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings
|
|
243
244
|
* containing the reply records.
|
|
244
245
|
* @since v10.6.0
|
|
245
246
|
*/
|
|
@@ -272,7 +273,7 @@ declare module "dns/promises" {
|
|
|
272
273
|
*/
|
|
273
274
|
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
|
274
275
|
/**
|
|
275
|
-
* Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects with
|
|
276
|
+
* Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with
|
|
276
277
|
* the following properties:
|
|
277
278
|
*
|
|
278
279
|
* * `priority`
|
|
@@ -292,7 +293,7 @@ declare module "dns/promises" {
|
|
|
292
293
|
*/
|
|
293
294
|
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
|
294
295
|
/**
|
|
295
|
-
* Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. On success, the `Promise` is resolved with a two-dimensional array
|
|
296
|
+
* Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array
|
|
296
297
|
* of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
|
|
297
298
|
* one record. Depending on the use case, these could be either joined together or
|
|
298
299
|
* treated separately.
|
|
@@ -303,12 +304,14 @@ declare module "dns/promises" {
|
|
|
303
304
|
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
304
305
|
* array of host names.
|
|
305
306
|
*
|
|
306
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`
|
|
307
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
|
|
308
|
+
* is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
|
|
307
309
|
* @since v10.6.0
|
|
308
310
|
*/
|
|
309
311
|
function reverse(ip: string): Promise<string[]>;
|
|
310
312
|
/**
|
|
311
|
-
* Get the default value for `verbatim` in {@link lookup} and
|
|
313
|
+
* Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
314
|
+
* The value could be:
|
|
312
315
|
*
|
|
313
316
|
* * `ipv4first`: for `verbatim` defaulting to `false`.
|
|
314
317
|
* * `verbatim`: for `verbatim` defaulting to `true`.
|
|
@@ -335,7 +338,7 @@ declare module "dns/promises" {
|
|
|
335
338
|
* progress.
|
|
336
339
|
*
|
|
337
340
|
* This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
338
|
-
* 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
|
|
341
|
+
* 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
|
|
339
342
|
* subsequent servers provided. Fallback DNS servers will only be used if the
|
|
340
343
|
* earlier ones time out or result in some other error.
|
|
341
344
|
* @since v10.6.0
|
|
@@ -343,23 +346,51 @@ declare module "dns/promises" {
|
|
|
343
346
|
*/
|
|
344
347
|
function setServers(servers: readonly string[]): void;
|
|
345
348
|
/**
|
|
346
|
-
* Set the default value of `
|
|
349
|
+
* Set the default value of `order` in `dns.lookup()` and `{@link lookup}`. The value could be:
|
|
347
350
|
*
|
|
348
|
-
* * `ipv4first`: sets default `
|
|
349
|
-
* * `
|
|
351
|
+
* * `ipv4first`: sets default `order` to `ipv4first`.
|
|
352
|
+
* * `ipv6first`: sets default `order` to `ipv6first`.
|
|
353
|
+
* * `verbatim`: sets default `order` to `verbatim`.
|
|
350
354
|
*
|
|
351
|
-
* The default is `verbatim` and
|
|
352
|
-
* higher priority than `--dns-result-order
|
|
353
|
-
*
|
|
355
|
+
* The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
|
|
356
|
+
* have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
|
|
357
|
+
* When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
|
|
358
|
+
* from the main thread won't affect the default dns orders in workers.
|
|
354
359
|
* @since v16.4.0, v14.18.0
|
|
355
|
-
* @param order must be `'ipv4first'` or `'verbatim'`.
|
|
360
|
+
* @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
|
|
356
361
|
*/
|
|
357
|
-
function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
|
|
362
|
+
function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
|
|
363
|
+
// Error codes
|
|
364
|
+
const NODATA: "ENODATA";
|
|
365
|
+
const FORMERR: "EFORMERR";
|
|
366
|
+
const SERVFAIL: "ESERVFAIL";
|
|
367
|
+
const NOTFOUND: "ENOTFOUND";
|
|
368
|
+
const NOTIMP: "ENOTIMP";
|
|
369
|
+
const REFUSED: "EREFUSED";
|
|
370
|
+
const BADQUERY: "EBADQUERY";
|
|
371
|
+
const BADNAME: "EBADNAME";
|
|
372
|
+
const BADFAMILY: "EBADFAMILY";
|
|
373
|
+
const BADRESP: "EBADRESP";
|
|
374
|
+
const CONNREFUSED: "ECONNREFUSED";
|
|
375
|
+
const TIMEOUT: "ETIMEOUT";
|
|
376
|
+
const EOF: "EOF";
|
|
377
|
+
const FILE: "EFILE";
|
|
378
|
+
const NOMEM: "ENOMEM";
|
|
379
|
+
const DESTRUCTION: "EDESTRUCTION";
|
|
380
|
+
const BADSTR: "EBADSTR";
|
|
381
|
+
const BADFLAGS: "EBADFLAGS";
|
|
382
|
+
const NONAME: "ENONAME";
|
|
383
|
+
const BADHINTS: "EBADHINTS";
|
|
384
|
+
const NOTINITIALIZED: "ENOTINITIALIZED";
|
|
385
|
+
const LOADIPHLPAPI: "ELOADIPHLPAPI";
|
|
386
|
+
const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
|
|
387
|
+
const CANCELLED: "ECANCELLED";
|
|
388
|
+
|
|
358
389
|
/**
|
|
359
390
|
* An independent resolver for DNS requests.
|
|
360
391
|
*
|
|
361
392
|
* Creating a new resolver uses the default server settings. Setting
|
|
362
|
-
* the servers used for a resolver using `resolver.setServers()` does not affect
|
|
393
|
+
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect
|
|
363
394
|
* other resolvers:
|
|
364
395
|
*
|
|
365
396
|
* ```js
|
|
@@ -400,6 +431,11 @@ declare module "dns/promises" {
|
|
|
400
431
|
*/
|
|
401
432
|
class Resolver {
|
|
402
433
|
constructor(options?: ResolverOptions);
|
|
434
|
+
/**
|
|
435
|
+
* Cancel all outstanding DNS queries made by this resolver. The corresponding
|
|
436
|
+
* callbacks will be called with an error with code `ECANCELLED`.
|
|
437
|
+
* @since v8.3.0
|
|
438
|
+
*/
|
|
403
439
|
cancel(): void;
|
|
404
440
|
getServers: typeof getServers;
|
|
405
441
|
resolve: typeof resolve;
|
|
@@ -416,6 +452,21 @@ declare module "dns/promises" {
|
|
|
416
452
|
resolveSrv: typeof resolveSrv;
|
|
417
453
|
resolveTxt: typeof resolveTxt;
|
|
418
454
|
reverse: typeof reverse;
|
|
455
|
+
/**
|
|
456
|
+
* The resolver instance will send its requests from the specified IP address.
|
|
457
|
+
* This allows programs to specify outbound interfaces when used on multi-homed
|
|
458
|
+
* systems.
|
|
459
|
+
*
|
|
460
|
+
* If a v4 or v6 address is not specified, it is set to the default and the
|
|
461
|
+
* operating system will choose a local address automatically.
|
|
462
|
+
*
|
|
463
|
+
* The resolver will use the v4 local address when making requests to IPv4 DNS
|
|
464
|
+
* servers, and the v6 local address when making requests to IPv6 DNS servers.
|
|
465
|
+
* The `rrtype` of resolution requests has no impact on the local address used.
|
|
466
|
+
* @since v15.1.0, v14.17.0
|
|
467
|
+
* @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
|
|
468
|
+
* @param [ipv6='::0'] A string representation of an IPv6 address.
|
|
469
|
+
*/
|
|
419
470
|
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
420
471
|
setServers: typeof setServers;
|
|
421
472
|
}
|
|
@@ -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 {
|