node-red-contrib-tak-registration 0.14.1 → 0.15.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/README.md +1 -1
- package/node_modules/@types/geojson/README.md +1 -1
- package/node_modules/@types/geojson/index.d.ts +36 -2
- package/node_modules/@types/geojson/package.json +2 -2
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +14 -0
- package/node_modules/@types/node/async_hooks.d.ts +64 -2
- package/node_modules/@types/node/buffer.buffer.d.ts +117 -39
- package/node_modules/@types/node/buffer.d.ts +6 -13
- package/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@types/node/crypto.d.ts +44 -10
- package/node_modules/@types/node/dgram.d.ts +10 -7
- package/node_modules/@types/node/diagnostics_channel.d.ts +20 -1
- package/node_modules/@types/node/fs/promises.d.ts +23 -26
- package/node_modules/@types/node/fs.d.ts +166 -125
- package/node_modules/@types/node/globals.d.ts +141 -338
- package/node_modules/@types/node/http.d.ts +25 -3
- package/node_modules/@types/node/http2.d.ts +3 -4
- package/node_modules/@types/node/https.d.ts +3 -1
- package/node_modules/@types/node/inspector.d.ts +36 -0
- package/node_modules/@types/node/module.d.ts +599 -236
- package/node_modules/@types/node/net.d.ts +44 -13
- package/node_modules/@types/node/package.json +9 -4
- package/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/node/process.d.ts +69 -2
- package/node_modules/@types/node/querystring.d.ts +2 -3
- package/node_modules/@types/node/readline.d.ts +6 -1
- package/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/node/sqlite.d.ts +291 -17
- package/node_modules/@types/node/stream/consumers.d.ts +32 -6
- package/node_modules/@types/node/stream/web.d.ts +9 -4
- package/node_modules/@types/node/stream.d.ts +936 -1000
- package/node_modules/@types/node/test.d.ts +169 -137
- package/node_modules/@types/node/timers/promises.d.ts +24 -13
- package/node_modules/@types/node/timers.d.ts +159 -112
- package/node_modules/@types/node/tls.d.ts +34 -1
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +110 -35
- package/node_modules/@types/node/util.d.ts +323 -110
- package/node_modules/@types/node/v8.d.ts +81 -0
- package/node_modules/@types/node/vm.d.ts +21 -6
- package/node_modules/@types/node/worker_threads.d.ts +1 -0
- package/node_modules/@types/node/zlib.d.ts +167 -36
- package/node_modules/axios/CHANGELOG.md +124 -0
- package/node_modules/axios/README.md +38 -16
- package/node_modules/axios/dist/axios.js +44 -39
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +43 -39
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +43 -39
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +74 -43
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +3 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/core/Axios.js +11 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +15 -3
- package/node_modules/axios/lib/core/buildFullPath.js +3 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +4 -3
- package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
- package/node_modules/axios/lib/platform/node/index.js +26 -0
- package/node_modules/axios/lib/utils.js +12 -28
- package/node_modules/axios/package.json +3 -3
- package/node_modules/bignumber.js/CHANGELOG.md +82 -1
- package/node_modules/bignumber.js/LICENCE.md +1 -1
- package/node_modules/bignumber.js/README.md +6 -4
- package/node_modules/bignumber.js/bignumber.d.mts +6 -0
- package/node_modules/bignumber.js/bignumber.d.ts +3 -1829
- package/node_modules/bignumber.js/bignumber.js +3 -3
- package/node_modules/bignumber.js/bignumber.mjs +3 -3
- package/node_modules/bignumber.js/package.json +17 -7
- package/node_modules/bignumber.js/types.d.ts +1821 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- 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 +29 -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 +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -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/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +63 -0
- package/node_modules/fast-xml-parser/README.md +37 -51
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +458 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
- package/node_modules/fast-xml-parser/package.json +36 -18
- package/node_modules/fast-xml-parser/src/cli/cli.js +12 -12
- package/node_modules/fast-xml-parser/src/cli/man.js +6 -1
- package/node_modules/fast-xml-parser/src/cli/read.js +30 -79
- package/node_modules/fast-xml-parser/src/fxp.d.ts +28 -1
- package/node_modules/fast-xml-parser/src/fxp.js +11 -8
- package/node_modules/fast-xml-parser/src/ignoreAttributes.js +2 -4
- package/node_modules/fast-xml-parser/src/util.js +14 -18
- package/node_modules/fast-xml-parser/src/{v5 → v6}/CharsSymbol.js +1 -1
- package/node_modules/fast-xml-parser/src/{v5 → v6}/EntitiesParser.js +3 -6
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OptionsBuilder.js +3 -6
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/BaseOutputBuilder.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsArrBuilder.js +3 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsMinArrBuilder.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsObjBuilder.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/ParserOptionsBuilder.js +6 -11
- package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPath.js +1 -1
- package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPathMatcher.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/XMLParser.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/Xml2JsParser.js +8 -10
- package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlPartReader.js +4 -10
- package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlSpecialTagsReader.js +5 -12
- package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/BufferSource.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/StringSource.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/EntitiesParser.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParser.js +1 -2
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParserExt.js +1 -2
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/currency.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/join.js +1 -2
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/number.js +2 -4
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/trim.js +1 -3
- package/node_modules/fast-xml-parser/src/validator.js +5 -5
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -4
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +1 -2
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +287 -71
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +3 -5
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +23 -23
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -8
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +8 -2
- package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +22 -7
- package/node_modules/form-data/lib/form_data.js +24 -22
- package/node_modules/form-data/package.json +17 -14
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/long/README.md +93 -87
- package/node_modules/long/index.d.ts +2 -2
- package/node_modules/long/index.js +360 -246
- package/node_modules/long/package.json +12 -4
- package/node_modules/long/types.d.ts +474 -0
- package/node_modules/long/umd/index.d.ts +2 -456
- package/node_modules/long/umd/index.js +1585 -1395
- package/node_modules/long/umd/types.d.ts +474 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +531 -80
- 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 +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +671 -144
- 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/index.d.ts +71 -13
- package/node_modules/protobufjs/package.json +4 -2
- package/node_modules/protobufjs/src/decoder.js +8 -10
- package/node_modules/protobufjs/src/encoder.js +1 -1
- package/node_modules/protobufjs/src/enum.js +25 -0
- package/node_modules/protobufjs/src/field.js +104 -28
- package/node_modules/protobufjs/src/namespace.js +124 -13
- package/node_modules/protobufjs/src/object.js +139 -4
- package/node_modules/protobufjs/src/oneof.js +19 -0
- package/node_modules/protobufjs/src/parse.js +139 -63
- package/node_modules/protobufjs/src/root.js +52 -15
- package/node_modules/protobufjs/src/service.js +23 -1
- package/node_modules/protobufjs/src/type.js +29 -4
- package/node_modules/protobufjs/src/util.js +4 -1
- package/node_modules/strnum/.github/SECURITY.md +5 -0
- package/node_modules/strnum/CHANGELOG.md +33 -0
- package/node_modules/strnum/README.md +14 -3
- package/node_modules/strnum/algo.stflow +84 -0
- package/node_modules/strnum/package.json +9 -2
- package/node_modules/strnum/strnum.js +72 -67
- package/node_modules/strnum/strnum.test.js +29 -6
- package/node_modules/strnum/test.js +9 -0
- package/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/readable.d.ts +5 -0
- package/node_modules/undici-types/webidl.d.ts +6 -0
- package/node_modules/uuid/README.md +12 -12
- package/node_modules/uuid/dist/cjs/types.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v1.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v1.js +1 -1
- package/node_modules/uuid/dist/cjs/v3.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v35.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v4.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v5.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v6.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v7.d.ts +1 -1
- package/node_modules/uuid/dist/cjs/v7.js +1 -1
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v1.js +1 -1
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +1 -1
- package/node_modules/uuid/dist/cjs-browser/v7.js +1 -1
- package/node_modules/uuid/dist/esm/types.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v1.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v1.js +1 -1
- package/node_modules/uuid/dist/esm/v3.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v35.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v4.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v5.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v6.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v7.d.ts +1 -1
- package/node_modules/uuid/dist/esm/v7.js +1 -1
- package/node_modules/uuid/dist/esm-browser/types.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v1.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +1 -1
- package/node_modules/uuid/dist/esm-browser/v7.js +1 -1
- package/node_modules/uuid/package.json +1 -1
- package/package.json +7 -7
- package/tak-registration.html +4 -4
- package/tak-registration.js +13 -6
- package/node_modules/axios/SECURITY.md +0 -6
- /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
|
@@ -147,6 +147,7 @@ declare module "node:test" {
|
|
|
147
147
|
export {
|
|
148
148
|
after,
|
|
149
149
|
afterEach,
|
|
150
|
+
assert,
|
|
150
151
|
before,
|
|
151
152
|
beforeEach,
|
|
152
153
|
describe,
|
|
@@ -564,6 +565,23 @@ declare module "node:test" {
|
|
|
564
565
|
/**
|
|
565
566
|
* An object containing assertion methods bound to the test context.
|
|
566
567
|
* The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
|
|
568
|
+
*
|
|
569
|
+
* **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the
|
|
570
|
+
* TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed**
|
|
571
|
+
* (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler:
|
|
572
|
+
* ```ts
|
|
573
|
+
* import { test, type TestContext } from 'node:test';
|
|
574
|
+
*
|
|
575
|
+
* // The test function's context parameter must have a type annotation.
|
|
576
|
+
* test('example', (t: TestContext) => {
|
|
577
|
+
* t.assert.deepStrictEqual(actual, expected);
|
|
578
|
+
* });
|
|
579
|
+
*
|
|
580
|
+
* // Omitting the type annotation will result in a compilation error.
|
|
581
|
+
* test('example', t => {
|
|
582
|
+
* t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
|
|
583
|
+
* });
|
|
584
|
+
* ```
|
|
567
585
|
* @since v22.2.0, v20.15.0
|
|
568
586
|
*/
|
|
569
587
|
readonly assert: TestContextAssert;
|
|
@@ -630,11 +648,12 @@ declare module "node:test" {
|
|
|
630
648
|
*/
|
|
631
649
|
readonly name: string;
|
|
632
650
|
/**
|
|
633
|
-
*
|
|
634
|
-
* If the number of assertions and subtests that run does not match the
|
|
651
|
+
* This function is used to set the number of assertions and subtests that are expected to run
|
|
652
|
+
* within the test. If the number of assertions and subtests that run does not match the
|
|
653
|
+
* expected count, the test will fail.
|
|
654
|
+
*
|
|
655
|
+
* > Note: To make sure assertions are tracked, `t.assert` must be used instead of `assert` directly.
|
|
635
656
|
*
|
|
636
|
-
* To make sure assertions are tracked, the assert functions on `context.assert` must be used,
|
|
637
|
-
* instead of importing from the `node:assert` module.
|
|
638
657
|
* ```js
|
|
639
658
|
* test('top level test', (t) => {
|
|
640
659
|
* t.plan(2);
|
|
@@ -643,7 +662,9 @@ declare module "node:test" {
|
|
|
643
662
|
* });
|
|
644
663
|
* ```
|
|
645
664
|
*
|
|
646
|
-
* When working with asynchronous code, the `plan` function can be used to ensure that the
|
|
665
|
+
* When working with asynchronous code, the `plan` function can be used to ensure that the
|
|
666
|
+
* correct number of assertions are run:
|
|
667
|
+
*
|
|
647
668
|
* ```js
|
|
648
669
|
* test('planning with streams', (t, done) => {
|
|
649
670
|
* function* generate() {
|
|
@@ -657,14 +678,35 @@ declare module "node:test" {
|
|
|
657
678
|
* stream.on('data', (chunk) => {
|
|
658
679
|
* t.assert.strictEqual(chunk, expected.shift());
|
|
659
680
|
* });
|
|
681
|
+
*
|
|
660
682
|
* stream.on('end', () => {
|
|
661
683
|
* done();
|
|
662
684
|
* });
|
|
663
685
|
* });
|
|
664
686
|
* ```
|
|
687
|
+
*
|
|
688
|
+
* When using the `wait` option, you can control how long the test will wait for the expected assertions.
|
|
689
|
+
* For example, setting a maximum wait time ensures that the test will wait for asynchronous assertions
|
|
690
|
+
* to complete within the specified timeframe:
|
|
691
|
+
*
|
|
692
|
+
* ```js
|
|
693
|
+
* test('plan with wait: 2000 waits for async assertions', (t) => {
|
|
694
|
+
* t.plan(1, { wait: 2000 }); // Waits for up to 2 seconds for the assertion to complete.
|
|
695
|
+
*
|
|
696
|
+
* const asyncActivity = () => {
|
|
697
|
+
* setTimeout(() => {
|
|
698
|
+
* * t.assert.ok(true, 'Async assertion completed within the wait time');
|
|
699
|
+
* }, 1000); // Completes after 1 second, within the 2-second wait time.
|
|
700
|
+
* };
|
|
701
|
+
*
|
|
702
|
+
* asyncActivity(); // The test will pass because the assertion is completed in time.
|
|
703
|
+
* });
|
|
704
|
+
* ```
|
|
705
|
+
*
|
|
706
|
+
* Note: If a `wait` timeout is specified, it begins counting down only after the test function finishes executing.
|
|
665
707
|
* @since v22.2.0
|
|
666
708
|
*/
|
|
667
|
-
plan(count: number): void;
|
|
709
|
+
plan(count: number, options?: TestContextPlanOptions): void;
|
|
668
710
|
/**
|
|
669
711
|
* If `shouldRunOnlyTests` is truthy, the test context will only run tests that
|
|
670
712
|
* have the `only` option set. Otherwise, all tests are run. If Node.js was not
|
|
@@ -736,144 +778,73 @@ declare module "node:test" {
|
|
|
736
778
|
* @returns A {@link Promise} resolved with `undefined` once the test completes.
|
|
737
779
|
*/
|
|
738
780
|
test: typeof test;
|
|
781
|
+
/**
|
|
782
|
+
* This method polls a `condition` function until that function either returns
|
|
783
|
+
* successfully or the operation times out.
|
|
784
|
+
* @since v22.14.0
|
|
785
|
+
* @param condition An assertion function that is invoked
|
|
786
|
+
* periodically until it completes successfully or the defined polling timeout
|
|
787
|
+
* elapses. Successful completion is defined as not throwing or rejecting. This
|
|
788
|
+
* function does not accept any arguments, and is allowed to return any value.
|
|
789
|
+
* @param options An optional configuration object for the polling operation.
|
|
790
|
+
* @returns Fulfilled with the value returned by `condition`.
|
|
791
|
+
*/
|
|
792
|
+
waitFor<T>(condition: () => T, options?: TestContextWaitForOptions): Promise<Awaited<T>>;
|
|
739
793
|
/**
|
|
740
794
|
* Each test provides its own MockTracker instance.
|
|
741
795
|
*/
|
|
742
796
|
readonly mock: MockTracker;
|
|
743
797
|
}
|
|
744
|
-
interface TestContextAssert
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
798
|
+
interface TestContextAssert extends
|
|
799
|
+
Pick<
|
|
800
|
+
typeof import("assert"),
|
|
801
|
+
| "deepEqual"
|
|
802
|
+
| "deepStrictEqual"
|
|
803
|
+
| "doesNotMatch"
|
|
804
|
+
| "doesNotReject"
|
|
805
|
+
| "doesNotThrow"
|
|
806
|
+
| "equal"
|
|
807
|
+
| "fail"
|
|
808
|
+
| "ifError"
|
|
809
|
+
| "match"
|
|
810
|
+
| "notDeepEqual"
|
|
811
|
+
| "notDeepStrictEqual"
|
|
812
|
+
| "notEqual"
|
|
813
|
+
| "notStrictEqual"
|
|
814
|
+
| "ok"
|
|
815
|
+
| "partialDeepStrictEqual"
|
|
816
|
+
| "rejects"
|
|
817
|
+
| "strictEqual"
|
|
818
|
+
| "throws"
|
|
819
|
+
>
|
|
820
|
+
{
|
|
821
|
+
/**
|
|
822
|
+
* This function serializes `value` and writes it to the file specified by `path`.
|
|
756
823
|
*
|
|
757
|
-
*
|
|
758
|
-
* test('
|
|
759
|
-
* t.assert.
|
|
760
|
-
* });
|
|
761
|
-
*
|
|
762
|
-
* // Omitting the type annotation will result in a compilation error.
|
|
763
|
-
* test('example', t => {
|
|
764
|
-
* t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
|
|
765
|
-
* });
|
|
766
|
-
* ```
|
|
767
|
-
*/
|
|
768
|
-
deepStrictEqual: typeof import("node:assert").deepStrictEqual;
|
|
769
|
-
/**
|
|
770
|
-
* Identical to the `doesNotMatch` function from the `node:assert` module, but bound to the test context.
|
|
771
|
-
*/
|
|
772
|
-
doesNotMatch: typeof import("node:assert").doesNotMatch;
|
|
773
|
-
/**
|
|
774
|
-
* Identical to the `doesNotReject` function from the `node:assert` module, but bound to the test context.
|
|
775
|
-
*/
|
|
776
|
-
doesNotReject: typeof import("node:assert").doesNotReject;
|
|
777
|
-
/**
|
|
778
|
-
* Identical to the `doesNotThrow` function from the `node:assert` module, but bound to the test context.
|
|
779
|
-
*/
|
|
780
|
-
doesNotThrow: typeof import("node:assert").doesNotThrow;
|
|
781
|
-
/**
|
|
782
|
-
* Identical to the `equal` function from the `node:assert` module, but bound to the test context.
|
|
783
|
-
*/
|
|
784
|
-
equal: typeof import("node:assert").equal;
|
|
785
|
-
/**
|
|
786
|
-
* Identical to the `fail` function from the `node:assert` module, but bound to the test context.
|
|
787
|
-
*/
|
|
788
|
-
fail: typeof import("node:assert").fail;
|
|
789
|
-
/**
|
|
790
|
-
* Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
|
|
791
|
-
*
|
|
792
|
-
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
793
|
-
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
794
|
-
* ```ts
|
|
795
|
-
* import { test, type TestContext } from 'node:test';
|
|
796
|
-
*
|
|
797
|
-
* // The test function's context parameter must have a type annotation.
|
|
798
|
-
* test('example', (t: TestContext) => {
|
|
799
|
-
* t.assert.ifError(err);
|
|
800
|
-
* });
|
|
801
|
-
*
|
|
802
|
-
* // Omitting the type annotation will result in a compilation error.
|
|
803
|
-
* test('example', t => {
|
|
804
|
-
* t.assert.ifError(err); // Error: 't' needs an explicit type annotation.
|
|
824
|
+
* ```js
|
|
825
|
+
* test('snapshot test with default serialization', (t) => {
|
|
826
|
+
* t.assert.fileSnapshot({ value1: 1, value2: 2 }, './snapshots/snapshot.json');
|
|
805
827
|
* });
|
|
806
828
|
* ```
|
|
807
|
-
*/
|
|
808
|
-
ifError: typeof import("node:assert").ifError;
|
|
809
|
-
/**
|
|
810
|
-
* Identical to the `match` function from the `node:assert` module, but bound to the test context.
|
|
811
|
-
*/
|
|
812
|
-
match: typeof import("node:assert").match;
|
|
813
|
-
/**
|
|
814
|
-
* Identical to the `notDeepEqual` function from the `node:assert` module, but bound to the test context.
|
|
815
|
-
*/
|
|
816
|
-
notDeepEqual: typeof import("node:assert").notDeepEqual;
|
|
817
|
-
/**
|
|
818
|
-
* Identical to the `notDeepStrictEqual` function from the `node:assert` module, but bound to the test context.
|
|
819
|
-
*/
|
|
820
|
-
notDeepStrictEqual: typeof import("node:assert").notDeepStrictEqual;
|
|
821
|
-
/**
|
|
822
|
-
* Identical to the `notEqual` function from the `node:assert` module, but bound to the test context.
|
|
823
|
-
*/
|
|
824
|
-
notEqual: typeof import("node:assert").notEqual;
|
|
825
|
-
/**
|
|
826
|
-
* Identical to the `notStrictEqual` function from the `node:assert` module, but bound to the test context.
|
|
827
|
-
*/
|
|
828
|
-
notStrictEqual: typeof import("node:assert").notStrictEqual;
|
|
829
|
-
/**
|
|
830
|
-
* Identical to the `ok` function from the `node:assert` module, but bound to the test context.
|
|
831
829
|
*
|
|
832
|
-
*
|
|
833
|
-
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
834
|
-
* ```ts
|
|
835
|
-
* import { test, type TestContext } from 'node:test';
|
|
830
|
+
* This function differs from `context.assert.snapshot()` in the following ways:
|
|
836
831
|
*
|
|
837
|
-
*
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
* });
|
|
832
|
+
* * The snapshot file path is explicitly provided by the user.
|
|
833
|
+
* * Each snapshot file is limited to a single snapshot value.
|
|
834
|
+
* * No additional escaping is performed by the test runner.
|
|
841
835
|
*
|
|
842
|
-
*
|
|
843
|
-
*
|
|
844
|
-
*
|
|
845
|
-
*
|
|
846
|
-
*
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
*
|
|
836
|
+
* These differences allow snapshot files to better support features such as syntax
|
|
837
|
+
* highlighting.
|
|
838
|
+
* @since v22.14.0
|
|
839
|
+
* @param value A value to serialize to a string. If Node.js was started with
|
|
840
|
+
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--test-update-snapshots)
|
|
841
|
+
* flag, the serialized value is written to
|
|
842
|
+
* `path`. Otherwise, the serialized value is compared to the contents of the
|
|
843
|
+
* existing snapshot file.
|
|
844
|
+
* @param path The file where the serialized `value` is written.
|
|
845
|
+
* @param options Optional configuration options.
|
|
851
846
|
*/
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
|
|
855
|
-
*
|
|
856
|
-
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
857
|
-
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
858
|
-
* ```ts
|
|
859
|
-
* import { test, type TestContext } from 'node:test';
|
|
860
|
-
*
|
|
861
|
-
* // The test function's context parameter must have a type annotation.
|
|
862
|
-
* test('example', (t: TestContext) => {
|
|
863
|
-
* t.assert.strictEqual(actual, expected);
|
|
864
|
-
* });
|
|
865
|
-
*
|
|
866
|
-
* // Omitting the type annotation will result in a compilation error.
|
|
867
|
-
* test('example', t => {
|
|
868
|
-
* t.assert.strictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
|
|
869
|
-
* });
|
|
870
|
-
* ```
|
|
871
|
-
*/
|
|
872
|
-
strictEqual: typeof import("node:assert").strictEqual;
|
|
873
|
-
/**
|
|
874
|
-
* Identical to the `throws` function from the `node:assert` module, but bound to the test context.
|
|
875
|
-
*/
|
|
876
|
-
throws: typeof import("node:assert").throws;
|
|
847
|
+
fileSnapshot(value: any, path: string, options?: AssertSnapshotOptions): void;
|
|
877
848
|
/**
|
|
878
849
|
* This function implements assertions for snapshot testing.
|
|
879
850
|
* ```js
|
|
@@ -887,12 +858,18 @@ declare module "node:test" {
|
|
|
887
858
|
* });
|
|
888
859
|
* });
|
|
889
860
|
* ```
|
|
890
|
-
*
|
|
891
|
-
* Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
|
|
892
861
|
* @since v22.3.0
|
|
893
|
-
* @
|
|
862
|
+
* @param value A value to serialize to a string. If Node.js was started with
|
|
863
|
+
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--test-update-snapshots)
|
|
864
|
+
* flag, the serialized value is written to
|
|
865
|
+
* the snapshot file. Otherwise, the serialized value is compared to the
|
|
866
|
+
* corresponding value in the existing snapshot file.
|
|
894
867
|
*/
|
|
895
868
|
snapshot(value: any, options?: AssertSnapshotOptions): void;
|
|
869
|
+
/**
|
|
870
|
+
* A custom assertion function registered with `assert.register()`.
|
|
871
|
+
*/
|
|
872
|
+
[name: string]: (...args: any[]) => void;
|
|
896
873
|
}
|
|
897
874
|
interface AssertSnapshotOptions {
|
|
898
875
|
/**
|
|
@@ -905,6 +882,34 @@ declare module "node:test" {
|
|
|
905
882
|
*/
|
|
906
883
|
serializers?: ReadonlyArray<(value: any) => any> | undefined;
|
|
907
884
|
}
|
|
885
|
+
interface TestContextPlanOptions {
|
|
886
|
+
/**
|
|
887
|
+
* The wait time for the plan:
|
|
888
|
+
* * If `true`, the plan waits indefinitely for all assertions and subtests to run.
|
|
889
|
+
* * If `false`, the plan performs an immediate check after the test function completes,
|
|
890
|
+
* without waiting for any pending assertions or subtests.
|
|
891
|
+
* Any assertions or subtests that complete after this check will not be counted towards the plan.
|
|
892
|
+
* * If a number, it specifies the maximum wait time in milliseconds
|
|
893
|
+
* before timing out while waiting for expected assertions and subtests to be matched.
|
|
894
|
+
* If the timeout is reached, the test will fail.
|
|
895
|
+
* @default false
|
|
896
|
+
*/
|
|
897
|
+
wait?: boolean | number | undefined;
|
|
898
|
+
}
|
|
899
|
+
interface TestContextWaitForOptions {
|
|
900
|
+
/**
|
|
901
|
+
* The number of milliseconds to wait after an unsuccessful
|
|
902
|
+
* invocation of `condition` before trying again.
|
|
903
|
+
* @default 50
|
|
904
|
+
*/
|
|
905
|
+
interval?: number | undefined;
|
|
906
|
+
/**
|
|
907
|
+
* The poll timeout in milliseconds. If `condition` has not
|
|
908
|
+
* succeeded by the time this elapses, an error occurs.
|
|
909
|
+
* @default 1000
|
|
910
|
+
*/
|
|
911
|
+
timeout?: number | undefined;
|
|
912
|
+
}
|
|
908
913
|
|
|
909
914
|
/**
|
|
910
915
|
* An instance of `SuiteContext` is passed to each suite function in order to
|
|
@@ -1691,9 +1696,25 @@ declare module "node:test" {
|
|
|
1691
1696
|
[Symbol.dispose](): void;
|
|
1692
1697
|
}
|
|
1693
1698
|
/**
|
|
1694
|
-
*
|
|
1699
|
+
* An object whose methods are used to configure available assertions on the
|
|
1700
|
+
* `TestContext` objects in the current process. The methods from `node:assert`
|
|
1701
|
+
* and snapshot testing functions are available by default.
|
|
1702
|
+
*
|
|
1703
|
+
* It is possible to apply the same configuration to all files by placing common
|
|
1704
|
+
* configuration code in a module
|
|
1705
|
+
* preloaded with `--require` or `--import`.
|
|
1706
|
+
* @since v22.14.0
|
|
1707
|
+
*/
|
|
1708
|
+
namespace assert {
|
|
1709
|
+
/**
|
|
1710
|
+
* Defines a new assertion function with the provided name and function. If an
|
|
1711
|
+
* assertion already exists with the same name, it is overwritten.
|
|
1712
|
+
* @since v22.14.0
|
|
1713
|
+
*/
|
|
1714
|
+
function register(name: string, fn: (this: TestContext, ...args: any[]) => void): void;
|
|
1715
|
+
}
|
|
1716
|
+
/**
|
|
1695
1717
|
* @since v22.3.0
|
|
1696
|
-
* @experimental
|
|
1697
1718
|
*/
|
|
1698
1719
|
namespace snapshot {
|
|
1699
1720
|
/**
|
|
@@ -1723,6 +1744,7 @@ declare module "node:test" {
|
|
|
1723
1744
|
export {
|
|
1724
1745
|
after,
|
|
1725
1746
|
afterEach,
|
|
1747
|
+
assert,
|
|
1726
1748
|
before,
|
|
1727
1749
|
beforeEach,
|
|
1728
1750
|
describe,
|
|
@@ -1987,6 +2009,11 @@ interface TestDequeue extends TestLocationInfo {
|
|
|
1987
2009
|
* The nesting level of the test.
|
|
1988
2010
|
*/
|
|
1989
2011
|
nesting: number;
|
|
2012
|
+
/**
|
|
2013
|
+
* The test type. Either `'suite'` or `'test'`.
|
|
2014
|
+
* @since v22.15.0
|
|
2015
|
+
*/
|
|
2016
|
+
type: "suite" | "test";
|
|
1990
2017
|
}
|
|
1991
2018
|
interface TestEnqueue extends TestLocationInfo {
|
|
1992
2019
|
/**
|
|
@@ -1997,6 +2024,11 @@ interface TestEnqueue extends TestLocationInfo {
|
|
|
1997
2024
|
* The nesting level of the test.
|
|
1998
2025
|
*/
|
|
1999
2026
|
nesting: number;
|
|
2027
|
+
/**
|
|
2028
|
+
* The test type. Either `'suite'` or `'test'`.
|
|
2029
|
+
* @since v22.15.0
|
|
2030
|
+
*/
|
|
2031
|
+
type: "suite" | "test";
|
|
2000
2032
|
}
|
|
2001
2033
|
interface TestFail extends TestLocationInfo {
|
|
2002
2034
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `timers/promises` API provides an alternative set of timer functions
|
|
3
|
-
* that return `Promise` objects. The API is accessible via
|
|
3
|
+
* that return `Promise` objects. The API is accessible via
|
|
4
|
+
* `require('node:timers/promises')`.
|
|
4
5
|
*
|
|
5
6
|
* ```js
|
|
6
7
|
* import {
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
* } from 'node:timers/promises';
|
|
11
12
|
* ```
|
|
12
13
|
* @since v15.0.0
|
|
14
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/timers/promises.js)
|
|
13
15
|
*/
|
|
14
16
|
declare module "timers/promises" {
|
|
15
17
|
import { TimerOptions } from "node:timers";
|
|
@@ -24,7 +26,8 @@ declare module "timers/promises" {
|
|
|
24
26
|
* console.log(res); // Prints 'result'
|
|
25
27
|
* ```
|
|
26
28
|
* @since v15.0.0
|
|
27
|
-
* @param
|
|
29
|
+
* @param delay The number of milliseconds to wait before fulfilling the
|
|
30
|
+
* promise. **Default:** `1`.
|
|
28
31
|
* @param value A value with which the promise is fulfilled.
|
|
29
32
|
*/
|
|
30
33
|
function setTimeout<T = void>(delay?: number, value?: T, options?: TimerOptions): Promise<T>;
|
|
@@ -62,33 +65,41 @@ declare module "timers/promises" {
|
|
|
62
65
|
* console.log(Date.now());
|
|
63
66
|
* ```
|
|
64
67
|
* @since v15.9.0
|
|
68
|
+
* @param delay The number of milliseconds to wait between iterations.
|
|
69
|
+
* **Default:** `1`.
|
|
70
|
+
* @param value A value with which the iterator returns.
|
|
65
71
|
*/
|
|
66
|
-
function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions):
|
|
72
|
+
function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): NodeJS.AsyncIterator<T>;
|
|
67
73
|
interface Scheduler {
|
|
68
74
|
/**
|
|
69
|
-
* An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification
|
|
75
|
+
* An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification
|
|
76
|
+
* being developed as a standard Web Platform API.
|
|
70
77
|
*
|
|
71
|
-
* Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent
|
|
72
|
-
*
|
|
78
|
+
* Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent
|
|
79
|
+
* to calling `timersPromises.setTimeout(delay, undefined, options)` except that
|
|
80
|
+
* the `ref` option is not supported.
|
|
73
81
|
*
|
|
74
82
|
* ```js
|
|
75
83
|
* import { scheduler } from 'node:timers/promises';
|
|
76
84
|
*
|
|
77
85
|
* await scheduler.wait(1000); // Wait one second before continuing
|
|
78
86
|
* ```
|
|
79
|
-
* @since v16.14.0
|
|
87
|
+
* @since v17.3.0, v16.14.0
|
|
80
88
|
* @experimental
|
|
81
|
-
* @param
|
|
89
|
+
* @param delay The number of milliseconds to wait before resolving the
|
|
90
|
+
* promise.
|
|
82
91
|
*/
|
|
83
|
-
wait
|
|
92
|
+
wait(delay: number, options?: { signal?: AbortSignal }): Promise<void>;
|
|
84
93
|
/**
|
|
85
|
-
* An experimental API defined by the [Scheduling APIs](https://
|
|
94
|
+
* An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification
|
|
86
95
|
* being developed as a standard Web Platform API.
|
|
87
|
-
*
|
|
88
|
-
*
|
|
96
|
+
*
|
|
97
|
+
* Calling `timersPromises.scheduler.yield()` is equivalent to calling
|
|
98
|
+
* `timersPromises.setImmediate()` with no arguments.
|
|
99
|
+
* @since v17.3.0, v16.14.0
|
|
89
100
|
* @experimental
|
|
90
101
|
*/
|
|
91
|
-
yield
|
|
102
|
+
yield(): Promise<void>;
|
|
92
103
|
}
|
|
93
104
|
const scheduler: Scheduler;
|
|
94
105
|
}
|