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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ```js
|
|
6
6
|
* import url from 'node:url';
|
|
7
7
|
* ```
|
|
8
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
8
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module "url" {
|
|
11
11
|
import { Blob as NodeBlob } from "node:buffer";
|
|
@@ -46,6 +46,14 @@ declare module "url" {
|
|
|
46
46
|
interface UrlWithStringQuery extends Url {
|
|
47
47
|
query: string | null;
|
|
48
48
|
}
|
|
49
|
+
interface FileUrlToPathOptions {
|
|
50
|
+
/**
|
|
51
|
+
* `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default.
|
|
52
|
+
* @default undefined
|
|
53
|
+
*/
|
|
54
|
+
windows?: boolean | undefined;
|
|
55
|
+
}
|
|
56
|
+
interface PathToFileUrlOptions extends FileUrlToPathOptions {}
|
|
49
57
|
/**
|
|
50
58
|
* The `url.parse()` method takes a URL string, parses it, and returns a URL
|
|
51
59
|
* object.
|
|
@@ -74,7 +82,7 @@ declare module "url" {
|
|
|
74
82
|
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
75
83
|
function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
|
76
84
|
/**
|
|
77
|
-
* The `url.format()` method returns a formatted URL string derived from`urlObject`.
|
|
85
|
+
* The `url.format()` method returns a formatted URL string derived from `urlObject`.
|
|
78
86
|
*
|
|
79
87
|
* ```js
|
|
80
88
|
* const url = require('node:url');
|
|
@@ -100,33 +108,33 @@ declare module "url" {
|
|
|
100
108
|
* * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
|
|
101
109
|
* * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
|
|
102
110
|
* colon (`:`) character, the literal string `:` will be appended to `result`.
|
|
103
|
-
* * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
|
|
111
|
+
* * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
|
|
104
112
|
* * `urlObject.slashes` property is true;
|
|
105
|
-
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
|
|
106
|
-
* * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
|
|
107
|
-
* and appended to `result`followed by the literal string `@`.
|
|
113
|
+
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
|
|
114
|
+
* * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
|
|
115
|
+
* and appended to `result` followed by the literal string `@`.
|
|
108
116
|
* * If the `urlObject.host` property is `undefined` then:
|
|
109
117
|
* * If the `urlObject.hostname` is a string, it is appended to `result`.
|
|
110
118
|
* * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
|
|
111
119
|
* an `Error` is thrown.
|
|
112
|
-
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
|
|
120
|
+
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
|
|
113
121
|
* * The literal string `:` is appended to `result`, and
|
|
114
|
-
* * The value of `urlObject.port` is coerced to a string and appended to`result`.
|
|
115
|
-
* * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
|
|
122
|
+
* * The value of `urlObject.port` is coerced to a string and appended to `result`.
|
|
123
|
+
* * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
|
|
116
124
|
* * If the `urlObject.pathname` property is a string that is not an empty string:
|
|
117
|
-
* * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
|
|
125
|
+
* * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
|
|
118
126
|
* (`/`), then the literal string `'/'` is appended to `result`.
|
|
119
127
|
* * The value of `urlObject.pathname` is appended to `result`.
|
|
120
128
|
* * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
|
|
121
|
-
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
|
|
122
|
-
* `querystring` module's `stringify()`method passing the value of `urlObject.query`.
|
|
129
|
+
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
|
|
130
|
+
* `querystring` module's `stringify()` method passing the value of `urlObject.query`.
|
|
123
131
|
* * Otherwise, if `urlObject.search` is a string:
|
|
124
|
-
* * If the value of `urlObject.search`_does not start_ with the ASCII question
|
|
132
|
+
* * If the value of `urlObject.search` _does not start_ with the ASCII question
|
|
125
133
|
* mark (`?`) character, the literal string `?` is appended to `result`.
|
|
126
134
|
* * The value of `urlObject.search` is appended to `result`.
|
|
127
135
|
* * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
|
|
128
136
|
* * If the `urlObject.hash` property is a string:
|
|
129
|
-
* * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
|
|
137
|
+
* * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
|
|
130
138
|
* character, the literal string `#` is appended to `result`.
|
|
131
139
|
* * The value of `urlObject.hash` is appended to `result`.
|
|
132
140
|
* * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
|
|
@@ -138,18 +146,18 @@ declare module "url" {
|
|
|
138
146
|
*/
|
|
139
147
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
140
148
|
/**
|
|
141
|
-
* The `url.format()` method returns a formatted URL string derived from`urlObject`.
|
|
149
|
+
* The `url.format()` method returns a formatted URL string derived from `urlObject`.
|
|
142
150
|
*
|
|
143
151
|
* ```js
|
|
144
|
-
* const url = require('url');
|
|
152
|
+
* const url = require('node:url');
|
|
145
153
|
* url.format({
|
|
146
154
|
* protocol: 'https',
|
|
147
155
|
* hostname: 'example.com',
|
|
148
156
|
* pathname: '/some/path',
|
|
149
157
|
* query: {
|
|
150
158
|
* page: 1,
|
|
151
|
-
* format: 'json'
|
|
152
|
-
* }
|
|
159
|
+
* format: 'json',
|
|
160
|
+
* },
|
|
153
161
|
* });
|
|
154
162
|
*
|
|
155
163
|
* // => 'https://example.com/some/path?page=1&format=json'
|
|
@@ -164,33 +172,33 @@ declare module "url" {
|
|
|
164
172
|
* * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
|
|
165
173
|
* * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
|
|
166
174
|
* colon (`:`) character, the literal string `:` will be appended to `result`.
|
|
167
|
-
* * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
|
|
175
|
+
* * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
|
|
168
176
|
* * `urlObject.slashes` property is true;
|
|
169
|
-
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
|
|
170
|
-
* * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
|
|
171
|
-
* and appended to `result`followed by the literal string `@`.
|
|
177
|
+
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
|
|
178
|
+
* * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
|
|
179
|
+
* and appended to `result` followed by the literal string `@`.
|
|
172
180
|
* * If the `urlObject.host` property is `undefined` then:
|
|
173
181
|
* * If the `urlObject.hostname` is a string, it is appended to `result`.
|
|
174
182
|
* * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
|
|
175
183
|
* an `Error` is thrown.
|
|
176
|
-
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
|
|
184
|
+
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
|
|
177
185
|
* * The literal string `:` is appended to `result`, and
|
|
178
|
-
* * The value of `urlObject.port` is coerced to a string and appended to`result`.
|
|
179
|
-
* * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
|
|
186
|
+
* * The value of `urlObject.port` is coerced to a string and appended to `result`.
|
|
187
|
+
* * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
|
|
180
188
|
* * If the `urlObject.pathname` property is a string that is not an empty string:
|
|
181
|
-
* * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
|
|
189
|
+
* * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
|
|
182
190
|
* (`/`), then the literal string `'/'` is appended to `result`.
|
|
183
191
|
* * The value of `urlObject.pathname` is appended to `result`.
|
|
184
192
|
* * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
|
|
185
|
-
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
|
|
186
|
-
* `querystring` module's `stringify()`method passing the value of `urlObject.query`.
|
|
193
|
+
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
|
|
194
|
+
* `querystring` module's `stringify()` method passing the value of `urlObject.query`.
|
|
187
195
|
* * Otherwise, if `urlObject.search` is a string:
|
|
188
|
-
* * If the value of `urlObject.search`_does not start_ with the ASCII question
|
|
196
|
+
* * If the value of `urlObject.search` _does not start_ with the ASCII question
|
|
189
197
|
* mark (`?`) character, the literal string `?` is appended to `result`.
|
|
190
198
|
* * The value of `urlObject.search` is appended to `result`.
|
|
191
199
|
* * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
|
|
192
200
|
* * If the `urlObject.hash` property is a string:
|
|
193
|
-
* * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
|
|
201
|
+
* * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
|
|
194
202
|
* character, the literal string `#` is appended to `result`.
|
|
195
203
|
* * The value of `urlObject.hash` is appended to `result`.
|
|
196
204
|
* * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
|
|
@@ -298,7 +306,7 @@ declare module "url" {
|
|
|
298
306
|
* @param url The file URL string or URL object to convert to a path.
|
|
299
307
|
* @return The fully-resolved platform-specific Node.js file path.
|
|
300
308
|
*/
|
|
301
|
-
function fileURLToPath(url: string | URL): string;
|
|
309
|
+
function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string;
|
|
302
310
|
/**
|
|
303
311
|
* This function ensures that `path` is resolved absolutely, and that the URL
|
|
304
312
|
* control characters are correctly encoded when converting into a File URL.
|
|
@@ -316,7 +324,7 @@ declare module "url" {
|
|
|
316
324
|
* @param path The path to convert to a File URL.
|
|
317
325
|
* @return The file URL object.
|
|
318
326
|
*/
|
|
319
|
-
function pathToFileURL(path: string): URL;
|
|
327
|
+
function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL;
|
|
320
328
|
/**
|
|
321
329
|
* This utility function converts a URL object into an ordinary options object as
|
|
322
330
|
* expected by the `http.request()` and `https.request()` APIs.
|
|
@@ -345,9 +353,26 @@ declare module "url" {
|
|
|
345
353
|
*/
|
|
346
354
|
function urlToHttpOptions(url: URL): ClientRequestArgs;
|
|
347
355
|
interface URLFormatOptions {
|
|
356
|
+
/**
|
|
357
|
+
* `true` if the serialized URL string should include the username and password, `false` otherwise.
|
|
358
|
+
* @default true
|
|
359
|
+
*/
|
|
348
360
|
auth?: boolean | undefined;
|
|
361
|
+
/**
|
|
362
|
+
* `true` if the serialized URL string should include the fragment, `false` otherwise.
|
|
363
|
+
* @default true
|
|
364
|
+
*/
|
|
349
365
|
fragment?: boolean | undefined;
|
|
366
|
+
/**
|
|
367
|
+
* `true` if the serialized URL string should include the search query, `false` otherwise.
|
|
368
|
+
* @default true
|
|
369
|
+
*/
|
|
350
370
|
search?: boolean | undefined;
|
|
371
|
+
/**
|
|
372
|
+
* `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to
|
|
373
|
+
* being Punycode encoded.
|
|
374
|
+
* @default false
|
|
375
|
+
*/
|
|
351
376
|
unicode?: boolean | undefined;
|
|
352
377
|
}
|
|
353
378
|
/**
|
|
@@ -357,7 +382,7 @@ declare module "url" {
|
|
|
357
382
|
*
|
|
358
383
|
* In accordance with browser conventions, all properties of `URL` objects
|
|
359
384
|
* are implemented as getters and setters on the class prototype, rather than as
|
|
360
|
-
* data properties on the object itself. Thus, unlike `legacy urlObject`
|
|
385
|
+
* data properties on the object itself. Thus, unlike `legacy urlObject`s,
|
|
361
386
|
* using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
|
|
362
387
|
* return `true`.
|
|
363
388
|
* @since v7.0.0, v6.13.0
|
|
@@ -381,7 +406,7 @@ declare module "url" {
|
|
|
381
406
|
* console.log(otherBlob.size);
|
|
382
407
|
* ```
|
|
383
408
|
*
|
|
384
|
-
* The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it.
|
|
409
|
+
* The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it.
|
|
385
410
|
*
|
|
386
411
|
* `Blob` objects are registered within the current thread. If using Worker
|
|
387
412
|
* Threads, `Blob` objects registered within one Worker will not be available
|
|
@@ -397,7 +422,7 @@ declare module "url" {
|
|
|
397
422
|
* @experimental
|
|
398
423
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
|
399
424
|
*/
|
|
400
|
-
static revokeObjectURL(
|
|
425
|
+
static revokeObjectURL(id: string): void;
|
|
401
426
|
/**
|
|
402
427
|
* Checks if an `input` relative to the `base` can be parsed to a `URL`.
|
|
403
428
|
*
|
|
@@ -412,7 +437,7 @@ declare module "url" {
|
|
|
412
437
|
* @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
|
|
413
438
|
*/
|
|
414
439
|
static canParse(input: string, base?: string): boolean;
|
|
415
|
-
constructor(input: string, base?: string | URL);
|
|
440
|
+
constructor(input: string | { toString: () => string }, base?: string | URL);
|
|
416
441
|
/**
|
|
417
442
|
* Gets and sets the fragment portion of the URL.
|
|
418
443
|
*
|
|
@@ -486,9 +511,9 @@ declare module "url" {
|
|
|
486
511
|
* Getting the value of the `href` property is equivalent to calling {@link toString}.
|
|
487
512
|
*
|
|
488
513
|
* Setting the value of this property to a new value is equivalent to creating a
|
|
489
|
-
* new `URL` object using `new URL(value)`. Each of the `URL`object's properties will be modified.
|
|
514
|
+
* new `URL` object using `new URL(value)`. Each of the `URL` object's properties will be modified.
|
|
490
515
|
*
|
|
491
|
-
* If the value assigned to the `href` property is not a valid URL, a `TypeError`will be thrown.
|
|
516
|
+
* If the value assigned to the `href` property is not a valid URL, a `TypeError` will be thrown.
|
|
492
517
|
*/
|
|
493
518
|
href: string;
|
|
494
519
|
/**
|
|
@@ -541,14 +566,14 @@ declare module "url" {
|
|
|
541
566
|
* // Prints https://example.org/abcdef?123
|
|
542
567
|
* ```
|
|
543
568
|
*
|
|
544
|
-
* Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters
|
|
569
|
+
* Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters
|
|
545
570
|
* to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
|
|
546
571
|
*/
|
|
547
572
|
pathname: string;
|
|
548
573
|
/**
|
|
549
574
|
* Gets and sets the port portion of the URL.
|
|
550
575
|
*
|
|
551
|
-
* The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will
|
|
576
|
+
* The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will
|
|
552
577
|
* result in the `port` value becoming
|
|
553
578
|
* the empty string (`''`).
|
|
554
579
|
*
|
|
@@ -647,7 +672,7 @@ declare module "url" {
|
|
|
647
672
|
* // Prints https://example.org/abc?abc=xyz
|
|
648
673
|
* ```
|
|
649
674
|
*
|
|
650
|
-
* Any invalid URL characters appearing in the value assigned the `search`property will be `percent-encoded`. The selection of which
|
|
675
|
+
* Any invalid URL characters appearing in the value assigned the `search` property will be `percent-encoded`. The selection of which
|
|
651
676
|
* characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
|
|
652
677
|
*/
|
|
653
678
|
search: string;
|
|
@@ -688,7 +713,7 @@ declare module "url" {
|
|
|
688
713
|
* // Prints https://123:xyz@example.com/
|
|
689
714
|
* ```
|
|
690
715
|
*
|
|
691
|
-
* Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which
|
|
716
|
+
* Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which
|
|
692
717
|
* characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
|
|
693
718
|
*/
|
|
694
719
|
username: string;
|
|
@@ -716,7 +741,7 @@ declare module "url" {
|
|
|
716
741
|
toJSON(): string;
|
|
717
742
|
}
|
|
718
743
|
/**
|
|
719
|
-
* The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the
|
|
744
|
+
* The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
|
|
720
745
|
* four following constructors.
|
|
721
746
|
* The `URLSearchParams` class is also available on the global object.
|
|
722
747
|
*
|
|
@@ -774,14 +799,14 @@ declare module "url" {
|
|
|
774
799
|
append(name: string, value: string): void;
|
|
775
800
|
/**
|
|
776
801
|
* If `value` is provided, removes all name-value pairs
|
|
777
|
-
* where name is `name` and value is `value
|
|
802
|
+
* where name is `name` and value is `value`.
|
|
778
803
|
*
|
|
779
804
|
* If `value` is not provided, removes all name-value pairs whose name is `name`.
|
|
780
805
|
*/
|
|
781
806
|
delete(name: string, value?: string): void;
|
|
782
807
|
/**
|
|
783
808
|
* Returns an ES6 `Iterator` over each of the name-value pairs in the query.
|
|
784
|
-
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`.
|
|
809
|
+
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`.
|
|
785
810
|
*
|
|
786
811
|
* Alias for `urlSearchParams[@@iterator]()`.
|
|
787
812
|
*/
|
|
@@ -802,7 +827,7 @@ declare module "url" {
|
|
|
802
827
|
* @param thisArg To be used as `this` value for when `fn` is called
|
|
803
828
|
*/
|
|
804
829
|
forEach<TThis = this>(
|
|
805
|
-
|
|
830
|
+
fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void,
|
|
806
831
|
thisArg?: TThis,
|
|
807
832
|
): void;
|
|
808
833
|
/**
|
|
@@ -817,7 +842,7 @@ declare module "url" {
|
|
|
817
842
|
*/
|
|
818
843
|
getAll(name: string): string[];
|
|
819
844
|
/**
|
|
820
|
-
* Checks if the `URLSearchParams` object contains key-value pair(s) based on`name` and an optional `value` argument.
|
|
845
|
+
* Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument.
|
|
821
846
|
*
|
|
822
847
|
* If `value` is provided, returns `true` when name-value pair with
|
|
823
848
|
* same `name` and `value` exists.
|
|
@@ -841,7 +866,7 @@ declare module "url" {
|
|
|
841
866
|
*/
|
|
842
867
|
keys(): IterableIterator<string>;
|
|
843
868
|
/**
|
|
844
|
-
* Sets the value in the `URLSearchParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
869
|
+
* Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
845
870
|
* set the first such pair's value to `value` and remove all others. If not,
|
|
846
871
|
* append the name-value pair to the query string.
|
|
847
872
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* const util = require('node:util');
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module "util" {
|
|
12
12
|
import * as types from "node:util/types";
|
|
@@ -110,7 +110,7 @@ declare module "util" {
|
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
* The `util.format()` method returns a formatted string using the first argument
|
|
113
|
-
* as a `printf
|
|
113
|
+
* as a `printf`-like format string which can contain zero or more format
|
|
114
114
|
* specifiers. Each specifier is replaced with the converted value from the
|
|
115
115
|
* corresponding argument. Supported specifiers are:
|
|
116
116
|
*
|
|
@@ -121,7 +121,7 @@ declare module "util" {
|
|
|
121
121
|
* // Returns: 'foo:%s'
|
|
122
122
|
* ```
|
|
123
123
|
*
|
|
124
|
-
* Values that are not part of the format string are formatted using`util.inspect()` if their type is not `string`.
|
|
124
|
+
* Values that are not part of the format string are formatted using `util.inspect()` if their type is not `string`.
|
|
125
125
|
*
|
|
126
126
|
* If there are more arguments passed to the `util.format()` method than the
|
|
127
127
|
* number of specifiers, the extra arguments are concatenated to the returned
|
|
@@ -132,7 +132,7 @@ declare module "util" {
|
|
|
132
132
|
* // Returns: 'foo:bar baz'
|
|
133
133
|
* ```
|
|
134
134
|
*
|
|
135
|
-
* If the first argument does not contain a valid format specifier, `util.format()`returns a string that is the concatenation of all arguments separated by spaces:
|
|
135
|
+
* If the first argument does not contain a valid format specifier, `util.format()` returns a string that is the concatenation of all arguments separated by spaces:
|
|
136
136
|
*
|
|
137
137
|
* ```js
|
|
138
138
|
* util.format(1, 2, 3);
|
|
@@ -265,7 +265,7 @@ declare module "util" {
|
|
|
265
265
|
* The `util.inspect()` method returns a string representation of `object` that is
|
|
266
266
|
* intended for debugging. The output of `util.inspect` may change at any time
|
|
267
267
|
* and should not be depended upon programmatically. Additional `options` may be
|
|
268
|
-
* passed that alter the result
|
|
268
|
+
* passed that alter the result. `util.inspect()` will use the constructor's name and/or `@@toStringTag` to make
|
|
269
269
|
* an identifiable tag for an inspected value.
|
|
270
270
|
*
|
|
271
271
|
* ```js
|
|
@@ -507,7 +507,7 @@ declare module "util" {
|
|
|
507
507
|
*/
|
|
508
508
|
export function isDate(object: unknown): object is Date;
|
|
509
509
|
/**
|
|
510
|
-
* Returns `true` if the given `object` is an `Error`. Otherwise, returns`false`.
|
|
510
|
+
* Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`.
|
|
511
511
|
*
|
|
512
512
|
* ```js
|
|
513
513
|
* const util = require('node:util');
|
|
@@ -521,7 +521,7 @@ declare module "util" {
|
|
|
521
521
|
* ```
|
|
522
522
|
*
|
|
523
523
|
* This method relies on `Object.prototype.toString()` behavior. It is
|
|
524
|
-
* possible to obtain an incorrect result when the `object` argument manipulates`@@toStringTag`.
|
|
524
|
+
* possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`.
|
|
525
525
|
*
|
|
526
526
|
* ```js
|
|
527
527
|
* const util = require('node:util');
|
|
@@ -538,11 +538,11 @@ declare module "util" {
|
|
|
538
538
|
*/
|
|
539
539
|
export function isError(object: unknown): object is Error;
|
|
540
540
|
/**
|
|
541
|
-
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and`extends` keywords to get language level inheritance support. Also note
|
|
541
|
+
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note
|
|
542
542
|
* that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179).
|
|
543
543
|
*
|
|
544
544
|
* Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The
|
|
545
|
-
* prototype of `constructor` will be set to a new object created from`superConstructor`.
|
|
545
|
+
* prototype of `constructor` will be set to a new object created from `superConstructor`.
|
|
546
546
|
*
|
|
547
547
|
* This mainly adds some input validation on top of`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`.
|
|
548
548
|
* As an additional convenience, `superConstructor` will be accessible
|
|
@@ -693,7 +693,7 @@ declare module "util" {
|
|
|
693
693
|
*/
|
|
694
694
|
export function isBuffer(object: unknown): object is Buffer;
|
|
695
695
|
/**
|
|
696
|
-
* Returns `true` if the given `object` is a `Function`. Otherwise, returns`false`.
|
|
696
|
+
* Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`.
|
|
697
697
|
*
|
|
698
698
|
* ```js
|
|
699
699
|
* const util = require('node:util');
|
|
@@ -881,7 +881,7 @@ declare module "util" {
|
|
|
881
881
|
* }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.');
|
|
882
882
|
* ```
|
|
883
883
|
*
|
|
884
|
-
* When called, `util.deprecate()` will return a function that will emit a`DeprecationWarning` using the `'warning'` event. The warning will
|
|
884
|
+
* When called, `util.deprecate()` will return a function that will emit a `DeprecationWarning` using the `'warning'` event. The warning will
|
|
885
885
|
* be emitted and printed to `stderr` the first time the returned function is
|
|
886
886
|
* called. After the warning is emitted, the wrapped function is called without
|
|
887
887
|
* emitting a warning.
|
|
@@ -907,10 +907,10 @@ declare module "util" {
|
|
|
907
907
|
* stack trace are printed to `stderr` the first time the deprecated function is
|
|
908
908
|
* called.
|
|
909
909
|
*
|
|
910
|
-
* If the `--throw-deprecation` command-line flag is set, or the`process.throwDeprecation` property is set to `true`, then an exception will be
|
|
910
|
+
* If the `--throw-deprecation` command-line flag is set, or the `process.throwDeprecation` property is set to `true`, then an exception will be
|
|
911
911
|
* thrown when the deprecated function is called.
|
|
912
912
|
*
|
|
913
|
-
* The `--throw-deprecation` command-line flag and `process.throwDeprecation`property take precedence over `--trace-deprecation` and`process.traceDeprecation`.
|
|
913
|
+
* The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`.
|
|
914
914
|
* @since v0.8.0
|
|
915
915
|
* @param fn The function that is being deprecated.
|
|
916
916
|
* @param msg A warning message to display when the deprecated function is invoked.
|
|
@@ -941,7 +941,7 @@ declare module "util" {
|
|
|
941
941
|
* Takes an `async` function (or a function that returns a `Promise`) and returns a
|
|
942
942
|
* function following the error-first callback style, i.e. taking
|
|
943
943
|
* an `(err, value) => ...` callback as the last argument. In the callback, the
|
|
944
|
-
* first argument will be the rejection reason (or `null` if the `Promise`resolved), and the second argument will be the resolved value.
|
|
944
|
+
* first argument will be the rejection reason (or `null` if the `Promise` resolved), and the second argument will be the resolved value.
|
|
945
945
|
*
|
|
946
946
|
* ```js
|
|
947
947
|
* const util = require('node:util');
|
|
@@ -968,7 +968,7 @@ declare module "util" {
|
|
|
968
968
|
*
|
|
969
969
|
* Since `null` has a special meaning as the first argument to a callback, if a
|
|
970
970
|
* wrapped function rejects a `Promise` with a falsy value as a reason, the value
|
|
971
|
-
* is wrapped in an `Error` with the original value stored in a field named`reason`.
|
|
971
|
+
* is wrapped in an `Error` with the original value stored in a field named `reason`.
|
|
972
972
|
*
|
|
973
973
|
* ```js
|
|
974
974
|
* function fn() {
|
|
@@ -1097,10 +1097,10 @@ declare module "util" {
|
|
|
1097
1097
|
* callStat();
|
|
1098
1098
|
* ```
|
|
1099
1099
|
*
|
|
1100
|
-
* If there is an `original[util.promisify.custom]` property present, `promisify`will return its value, see `Custom promisified functions`.
|
|
1100
|
+
* If there is an `original[util.promisify.custom]` property present, `promisify` will return its value, see `Custom promisified functions`.
|
|
1101
1101
|
*
|
|
1102
1102
|
* `promisify()` assumes that `original` is a function taking a callback as its
|
|
1103
|
-
* final argument in all cases. If `original` is not a function, `promisify()`will throw an error. If `original` is a function but its last argument is not
|
|
1103
|
+
* final argument in all cases. If `original` is not a function, `promisify()` will throw an error. If `original` is a function but its last argument is not
|
|
1104
1104
|
* an error-first callback, it will still be passed an error-first
|
|
1105
1105
|
* callback as its last argument.
|
|
1106
1106
|
*
|
|
@@ -1173,6 +1173,115 @@ declare module "util" {
|
|
|
1173
1173
|
*/
|
|
1174
1174
|
const custom: unique symbol;
|
|
1175
1175
|
}
|
|
1176
|
+
/**
|
|
1177
|
+
* Stability: 1.1 - Active development
|
|
1178
|
+
* Given an example `.env` file:
|
|
1179
|
+
*
|
|
1180
|
+
* ```js
|
|
1181
|
+
* const { parseEnv } = require('node:util');
|
|
1182
|
+
*
|
|
1183
|
+
* parseEnv('HELLO=world\nHELLO=oh my\n');
|
|
1184
|
+
* // Returns: { HELLO: 'oh my' }
|
|
1185
|
+
* ```
|
|
1186
|
+
* @param content The raw contents of a `.env` file.
|
|
1187
|
+
* @since v20.12.0
|
|
1188
|
+
*/
|
|
1189
|
+
export function parseEnv(content: string): object;
|
|
1190
|
+
// https://nodejs.org/docs/latest/api/util.html#foreground-colors
|
|
1191
|
+
type ForegroundColors =
|
|
1192
|
+
| "black"
|
|
1193
|
+
| "blackBright"
|
|
1194
|
+
| "blue"
|
|
1195
|
+
| "blueBright"
|
|
1196
|
+
| "cyan"
|
|
1197
|
+
| "cyanBright"
|
|
1198
|
+
| "gray"
|
|
1199
|
+
| "green"
|
|
1200
|
+
| "greenBright"
|
|
1201
|
+
| "grey"
|
|
1202
|
+
| "magenta"
|
|
1203
|
+
| "magentaBright"
|
|
1204
|
+
| "red"
|
|
1205
|
+
| "redBright"
|
|
1206
|
+
| "white"
|
|
1207
|
+
| "whiteBright"
|
|
1208
|
+
| "yellow"
|
|
1209
|
+
| "yellowBright";
|
|
1210
|
+
// https://nodejs.org/docs/latest/api/util.html#background-colors
|
|
1211
|
+
type BackgroundColors =
|
|
1212
|
+
| "bgBlack"
|
|
1213
|
+
| "bgBlackBright"
|
|
1214
|
+
| "bgBlue"
|
|
1215
|
+
| "bgBlueBright"
|
|
1216
|
+
| "bgCyan"
|
|
1217
|
+
| "bgCyanBright"
|
|
1218
|
+
| "bgGray"
|
|
1219
|
+
| "bgGreen"
|
|
1220
|
+
| "bgGreenBright"
|
|
1221
|
+
| "bgGrey"
|
|
1222
|
+
| "bgMagenta"
|
|
1223
|
+
| "bgMagentaBright"
|
|
1224
|
+
| "bgRed"
|
|
1225
|
+
| "bgRedBright"
|
|
1226
|
+
| "bgWhite"
|
|
1227
|
+
| "bgWhiteBright"
|
|
1228
|
+
| "bgYellow"
|
|
1229
|
+
| "bgYellowBright";
|
|
1230
|
+
// https://nodejs.org/docs/latest/api/util.html#modifiers
|
|
1231
|
+
type Modifiers =
|
|
1232
|
+
| "blink"
|
|
1233
|
+
| "bold"
|
|
1234
|
+
| "dim"
|
|
1235
|
+
| "doubleunderline"
|
|
1236
|
+
| "framed"
|
|
1237
|
+
| "hidden"
|
|
1238
|
+
| "inverse"
|
|
1239
|
+
| "italic"
|
|
1240
|
+
| "overlined"
|
|
1241
|
+
| "reset"
|
|
1242
|
+
| "strikethrough"
|
|
1243
|
+
| "underline";
|
|
1244
|
+
/**
|
|
1245
|
+
* Stability: 1.1 - Active development
|
|
1246
|
+
*
|
|
1247
|
+
* This function returns a formatted text considering the `format` passed.
|
|
1248
|
+
*
|
|
1249
|
+
* ```js
|
|
1250
|
+
* const { styleText } = require('node:util');
|
|
1251
|
+
* const errorMessage = styleText('red', 'Error! Error!');
|
|
1252
|
+
* console.log(errorMessage);
|
|
1253
|
+
* ```
|
|
1254
|
+
*
|
|
1255
|
+
* `util.inspect.colors` also provides text formats such as `italic`, and `underline` and you can combine both:
|
|
1256
|
+
*
|
|
1257
|
+
* ```js
|
|
1258
|
+
* console.log(
|
|
1259
|
+
* util.styleText(['underline', 'italic'], 'My italic underlined message'),
|
|
1260
|
+
* );
|
|
1261
|
+
* ```
|
|
1262
|
+
*
|
|
1263
|
+
* When passing an array of formats, the order of the format applied is left to right so the following style
|
|
1264
|
+
* might overwrite the previous one.
|
|
1265
|
+
*
|
|
1266
|
+
* ```js
|
|
1267
|
+
* console.log(
|
|
1268
|
+
* util.styleText(['red', 'green'], 'text'), // green
|
|
1269
|
+
* );
|
|
1270
|
+
* ```
|
|
1271
|
+
*
|
|
1272
|
+
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v20.x/api/util.html#modifiers).
|
|
1273
|
+
* @param format A text format or an Array of text formats defined in `util.inspect.colors`.
|
|
1274
|
+
* @param text The text to to be formatted.
|
|
1275
|
+
* @since v20.12.0
|
|
1276
|
+
*/
|
|
1277
|
+
export function styleText(
|
|
1278
|
+
format:
|
|
1279
|
+
| ForegroundColors
|
|
1280
|
+
| BackgroundColors
|
|
1281
|
+
| Modifiers
|
|
1282
|
+
| Array<ForegroundColors | BackgroundColors | Modifiers>,
|
|
1283
|
+
text: string,
|
|
1284
|
+
): string;
|
|
1176
1285
|
/**
|
|
1177
1286
|
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
|
|
1178
1287
|
*
|
|
@@ -1210,7 +1319,7 @@ declare module "util" {
|
|
|
1210
1319
|
* incomplete byte sequences occurring at the end of the `input` are buffered
|
|
1211
1320
|
* internally and emitted after the next call to `textDecoder.decode()`.
|
|
1212
1321
|
*
|
|
1213
|
-
* If `textDecoder.fatal` is `true`, decoding errors that occur will result in a`TypeError` being thrown.
|
|
1322
|
+
* If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown.
|
|
1214
1323
|
* @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data.
|
|
1215
1324
|
*/
|
|
1216
1325
|
decode(
|
|
@@ -1589,7 +1698,7 @@ declare module "util" {
|
|
|
1589
1698
|
toString(): string;
|
|
1590
1699
|
}
|
|
1591
1700
|
/**
|
|
1592
|
-
* The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
|
|
1701
|
+
* The `MIMEParams` API provides read and write access to the parameters of a `MIMEType`.
|
|
1593
1702
|
* @since v19.1.0, v18.13.0
|
|
1594
1703
|
*/
|
|
1595
1704
|
export class MIMEParams {
|
|
@@ -1630,7 +1739,7 @@ declare module "util" {
|
|
|
1630
1739
|
*/
|
|
1631
1740
|
keys(): IterableIterator<string>;
|
|
1632
1741
|
/**
|
|
1633
|
-
* Sets the value in the `MIMEParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
1742
|
+
* Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
1634
1743
|
* set the first such pair's value to `value`.
|
|
1635
1744
|
*
|
|
1636
1745
|
* ```js
|
|
@@ -1965,8 +2074,8 @@ declare module "util/types" {
|
|
|
1965
2074
|
* console.log(util.types.isNativeError(new MyError())); // true
|
|
1966
2075
|
* ```
|
|
1967
2076
|
*
|
|
1968
|
-
* A value being `instanceof` a native error class is not equivalent to `isNativeError()`returning `true` for that value. `isNativeError()` returns `true` for errors
|
|
1969
|
-
* which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false`for these errors:
|
|
2077
|
+
* A value being `instanceof` a native error class is not equivalent to `isNativeError()` returning `true` for that value. `isNativeError()` returns `true` for errors
|
|
2078
|
+
* which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false` for these errors:
|
|
1970
2079
|
*
|
|
1971
2080
|
* ```js
|
|
1972
2081
|
* const vm = require('node:vm');
|