node-red-contrib-tak-registration 0.14.1 → 0.16.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 +165 -0
- package/node_modules/axios/README.md +55 -33
- package/node_modules/axios/dist/axios.js +85 -43
- 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 +92 -47
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +92 -47
- 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 +123 -51
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +17 -5
- package/node_modules/axios/index.d.ts +6 -3
- package/node_modules/axios/lib/adapters/fetch.js +2 -2
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/core/Axios.js +13 -4
- 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/core/mergeConfig.js +1 -1
- 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/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toFormData.js +4 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/platform/node/index.js +26 -0
- package/node_modules/axios/lib/utils.js +48 -28
- package/node_modules/axios/package.json +14 -5
- 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 +70 -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 -19
- package/node_modules/fast-xml-parser/src/cli/cli.js +16 -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 +33 -6
- 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/CHANGELOG.md +601 -0
- package/node_modules/form-data/{Readme.md → README.md} +34 -37
- package/node_modules/form-data/lib/browser.js +3 -1
- package/node_modules/form-data/lib/form_data.js +140 -147
- package/node_modules/form-data/lib/populate.js +5 -5
- package/node_modules/form-data/package.json +34 -23
- 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 +532 -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 +672 -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/ext/descriptor/index.js +179 -69
- package/node_modules/protobufjs/google/protobuf/descriptor.json +659 -16
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +254 -6
- 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 +126 -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 +51 -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 +19 -10
- package/node_modules/axios/SECURITY.md +0 -6
- /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* work:
|
|
11
11
|
*
|
|
12
12
|
* ```js
|
|
13
|
-
* import sqlite from '
|
|
13
|
+
* import sqlite from 'sqlite';
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* The following example shows the basic usage of the `node:sqlite` module to open
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/sqlite.js)
|
|
44
44
|
*/
|
|
45
45
|
declare module "node:sqlite" {
|
|
46
|
+
type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
|
|
47
|
+
type SQLOutputValue = null | number | bigint | string | Uint8Array;
|
|
48
|
+
/** @deprecated Use `SQLInputValue` or `SQLOutputValue` instead. */
|
|
49
|
+
type SupportedValueType = SQLOutputValue;
|
|
46
50
|
interface DatabaseSyncOptions {
|
|
47
51
|
/**
|
|
48
52
|
* If `true`, the database is opened by the constructor. When
|
|
@@ -70,28 +74,135 @@ declare module "node:sqlite" {
|
|
|
70
74
|
* @default false
|
|
71
75
|
*/
|
|
72
76
|
enableDoubleQuotedStringLiterals?: boolean | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* If `true`, the database is opened in read-only mode.
|
|
79
|
+
* If the database does not exist, opening it will fail.
|
|
80
|
+
* @since v22.12.0
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
readOnly?: boolean | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* If `true`, the `loadExtension` SQL function
|
|
86
|
+
* and the `loadExtension()` method are enabled.
|
|
87
|
+
* You can call `enableLoadExtension(false)` later to disable this feature.
|
|
88
|
+
* @since v22.13.0
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
allowExtension?: boolean | undefined;
|
|
92
|
+
}
|
|
93
|
+
interface CreateSessionOptions {
|
|
94
|
+
/**
|
|
95
|
+
* A specific table to track changes for. By default, changes to all tables are tracked.
|
|
96
|
+
* @since v22.12.0
|
|
97
|
+
*/
|
|
98
|
+
table?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Name of the database to track. This is useful when multiple databases have been added using
|
|
101
|
+
* [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html).
|
|
102
|
+
* @since v22.12.0
|
|
103
|
+
* @default 'main'
|
|
104
|
+
*/
|
|
105
|
+
db?: string | undefined;
|
|
106
|
+
}
|
|
107
|
+
interface ApplyChangesetOptions {
|
|
108
|
+
/**
|
|
109
|
+
* Skip changes that, when targeted table name is supplied to this function, return a truthy value.
|
|
110
|
+
* By default, all changes are attempted.
|
|
111
|
+
* @since v22.12.0
|
|
112
|
+
*/
|
|
113
|
+
filter?: ((tableName: string) => boolean) | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* A function that determines how to handle conflicts. The function receives one argument,
|
|
116
|
+
* which can be one of the following values:
|
|
117
|
+
*
|
|
118
|
+
* * `SQLITE_CHANGESET_DATA`: A `DELETE` or `UPDATE` change does not contain the expected "before" values.
|
|
119
|
+
* * `SQLITE_CHANGESET_NOTFOUND`: A row matching the primary key of the `DELETE` or `UPDATE` change does not exist.
|
|
120
|
+
* * `SQLITE_CHANGESET_CONFLICT`: An `INSERT` change results in a duplicate primary key.
|
|
121
|
+
* * `SQLITE_CHANGESET_FOREIGN_KEY`: Applying a change would result in a foreign key violation.
|
|
122
|
+
* * `SQLITE_CHANGESET_CONSTRAINT`: Applying a change results in a `UNIQUE`, `CHECK`, or `NOT NULL` constraint
|
|
123
|
+
* violation.
|
|
124
|
+
*
|
|
125
|
+
* The function should return one of the following values:
|
|
126
|
+
*
|
|
127
|
+
* * `SQLITE_CHANGESET_OMIT`: Omit conflicting changes.
|
|
128
|
+
* * `SQLITE_CHANGESET_REPLACE`: Replace existing values with conflicting changes (only valid with
|
|
129
|
+
`SQLITE_CHANGESET_DATA` or `SQLITE_CHANGESET_CONFLICT` conflicts).
|
|
130
|
+
* * `SQLITE_CHANGESET_ABORT`: Abort on conflict and roll back the database.
|
|
131
|
+
*
|
|
132
|
+
* When an error is thrown in the conflict handler or when any other value is returned from the handler,
|
|
133
|
+
* applying the changeset is aborted and the database is rolled back.
|
|
134
|
+
*
|
|
135
|
+
* **Default**: A function that returns `SQLITE_CHANGESET_ABORT`.
|
|
136
|
+
* @since v22.12.0
|
|
137
|
+
*/
|
|
138
|
+
onConflict?: ((conflictType: number) => number) | undefined;
|
|
139
|
+
}
|
|
140
|
+
interface FunctionOptions {
|
|
141
|
+
/**
|
|
142
|
+
* If `true`, the [`SQLITE_DETERMINISTIC`](https://www.sqlite.org/c3ref/c_deterministic.html) flag is
|
|
143
|
+
* set on the created function.
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
146
|
+
deterministic?: boolean | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* If `true`, the [`SQLITE_DIRECTONLY`](https://www.sqlite.org/c3ref/c_directonly.html) flag is set on
|
|
149
|
+
* the created function.
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
directOnly?: boolean | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* If `true`, integer arguments to `function`
|
|
155
|
+
* are converted to `BigInt`s. If `false`, integer arguments are passed as
|
|
156
|
+
* JavaScript numbers.
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
159
|
+
useBigIntArguments?: boolean | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* If `true`, `function` may be invoked with any number of
|
|
162
|
+
* arguments (between zero and
|
|
163
|
+
* [`SQLITE_MAX_FUNCTION_ARG`](https://www.sqlite.org/limits.html#max_function_arg)). If `false`,
|
|
164
|
+
* `function` must be invoked with exactly `function.length` arguments.
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
varargs?: boolean | undefined;
|
|
73
168
|
}
|
|
74
169
|
/**
|
|
75
170
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
76
171
|
* exposed by this class execute synchronously.
|
|
77
172
|
* @since v22.5.0
|
|
78
173
|
*/
|
|
79
|
-
class DatabaseSync {
|
|
174
|
+
class DatabaseSync implements Disposable {
|
|
80
175
|
/**
|
|
81
176
|
* Constructs a new `DatabaseSync` instance.
|
|
82
|
-
* @param
|
|
177
|
+
* @param path The path of the database.
|
|
83
178
|
* A SQLite database can be stored in a file or completely [in memory](https://www.sqlite.org/inmemorydb.html).
|
|
84
|
-
* To use a file-backed database, the
|
|
85
|
-
* To use an in-memory database, the
|
|
179
|
+
* To use a file-backed database, the path should be a file path.
|
|
180
|
+
* To use an in-memory database, the path should be the special name `':memory:'`.
|
|
86
181
|
* @param options Configuration options for the database connection.
|
|
87
182
|
*/
|
|
88
|
-
constructor(
|
|
183
|
+
constructor(path: string | Buffer | URL, options?: DatabaseSyncOptions);
|
|
89
184
|
/**
|
|
90
185
|
* Closes the database connection. An exception is thrown if the database is not
|
|
91
186
|
* open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html).
|
|
92
187
|
* @since v22.5.0
|
|
93
188
|
*/
|
|
94
189
|
close(): void;
|
|
190
|
+
/**
|
|
191
|
+
* Loads a shared library into the database connection. This method is a wrapper
|
|
192
|
+
* around [`sqlite3_load_extension()`](https://www.sqlite.org/c3ref/load_extension.html). It is required to enable the
|
|
193
|
+
* `allowExtension` option when constructing the `DatabaseSync` instance.
|
|
194
|
+
* @since v22.13.0
|
|
195
|
+
* @param path The path to the shared library to load.
|
|
196
|
+
*/
|
|
197
|
+
loadExtension(path: string): void;
|
|
198
|
+
/**
|
|
199
|
+
* Enables or disables the `loadExtension` SQL function, and the `loadExtension()`
|
|
200
|
+
* method. When `allowExtension` is `false` when constructing, you cannot enable
|
|
201
|
+
* loading extensions for security reasons.
|
|
202
|
+
* @since v22.13.0
|
|
203
|
+
* @param allow Whether to allow loading extensions.
|
|
204
|
+
*/
|
|
205
|
+
enableLoadExtension(allow: boolean): void;
|
|
95
206
|
/**
|
|
96
207
|
* This method allows one or more SQL statements to be executed without returning
|
|
97
208
|
* any results. This method is useful when executing SQL statements read from a
|
|
@@ -101,7 +212,30 @@ declare module "node:sqlite" {
|
|
|
101
212
|
*/
|
|
102
213
|
exec(sql: string): void;
|
|
103
214
|
/**
|
|
104
|
-
*
|
|
215
|
+
* This method is used to create SQLite user-defined functions. This method is a
|
|
216
|
+
* wrapper around [`sqlite3_create_function_v2()`](https://www.sqlite.org/c3ref/create_function.html).
|
|
217
|
+
* @since v22.13.0
|
|
218
|
+
* @param name The name of the SQLite function to create.
|
|
219
|
+
* @param options Optional configuration settings for the function.
|
|
220
|
+
* @param func The JavaScript function to call when the SQLite
|
|
221
|
+
* function is invoked. The return value of this function should be a valid
|
|
222
|
+
* SQLite data type: see
|
|
223
|
+
* [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v22.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
|
|
224
|
+
* The result defaults to `NULL` if the return value is `undefined`.
|
|
225
|
+
*/
|
|
226
|
+
function(
|
|
227
|
+
name: string,
|
|
228
|
+
options: FunctionOptions,
|
|
229
|
+
func: (...args: SQLOutputValue[]) => SQLInputValue,
|
|
230
|
+
): void;
|
|
231
|
+
function(name: string, func: (...args: SQLOutputValue[]) => SQLInputValue): void;
|
|
232
|
+
/**
|
|
233
|
+
* Whether the database is currently open or not.
|
|
234
|
+
* @since v22.15.0
|
|
235
|
+
*/
|
|
236
|
+
readonly isOpen: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
|
|
105
239
|
* the constructor. An exception is thrown if the database is already open.
|
|
106
240
|
* @since v22.5.0
|
|
107
241
|
*/
|
|
@@ -114,8 +248,80 @@ declare module "node:sqlite" {
|
|
|
114
248
|
* @return The prepared statement.
|
|
115
249
|
*/
|
|
116
250
|
prepare(sql: string): StatementSync;
|
|
251
|
+
/**
|
|
252
|
+
* Creates and attaches a session to the database. This method is a wrapper around
|
|
253
|
+
* [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and
|
|
254
|
+
* [`sqlite3session_attach()`](https://www.sqlite.org/session/sqlite3session_attach.html).
|
|
255
|
+
* @param options The configuration options for the session.
|
|
256
|
+
* @returns A session handle.
|
|
257
|
+
* @since v22.12.0
|
|
258
|
+
*/
|
|
259
|
+
createSession(options?: CreateSessionOptions): Session;
|
|
260
|
+
/**
|
|
261
|
+
* An exception is thrown if the database is not
|
|
262
|
+
* open. This method is a wrapper around
|
|
263
|
+
* [`sqlite3changeset_apply()`](https://www.sqlite.org/session/sqlite3changeset_apply.html).
|
|
264
|
+
*
|
|
265
|
+
* ```js
|
|
266
|
+
* const sourceDb = new DatabaseSync(':memory:');
|
|
267
|
+
* const targetDb = new DatabaseSync(':memory:');
|
|
268
|
+
*
|
|
269
|
+
* sourceDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)');
|
|
270
|
+
* targetDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)');
|
|
271
|
+
*
|
|
272
|
+
* const session = sourceDb.createSession();
|
|
273
|
+
*
|
|
274
|
+
* const insert = sourceDb.prepare('INSERT INTO data (key, value) VALUES (?, ?)');
|
|
275
|
+
* insert.run(1, 'hello');
|
|
276
|
+
* insert.run(2, 'world');
|
|
277
|
+
*
|
|
278
|
+
* const changeset = session.changeset();
|
|
279
|
+
* targetDb.applyChangeset(changeset);
|
|
280
|
+
* // Now that the changeset has been applied, targetDb contains the same data as sourceDb.
|
|
281
|
+
* ```
|
|
282
|
+
* @param changeset A binary changeset or patchset.
|
|
283
|
+
* @param options The configuration options for how the changes will be applied.
|
|
284
|
+
* @returns Whether the changeset was applied successfully without being aborted.
|
|
285
|
+
* @since v22.12.0
|
|
286
|
+
*/
|
|
287
|
+
applyChangeset(changeset: Uint8Array, options?: ApplyChangesetOptions): boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Closes the database connection. If the database connection is already closed
|
|
290
|
+
* then this is a no-op.
|
|
291
|
+
* @since v22.15.0
|
|
292
|
+
* @experimental
|
|
293
|
+
*/
|
|
294
|
+
[Symbol.dispose](): void;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @since v22.12.0
|
|
298
|
+
*/
|
|
299
|
+
interface Session {
|
|
300
|
+
/**
|
|
301
|
+
* Retrieves a changeset containing all changes since the changeset was created. Can be called multiple times.
|
|
302
|
+
* An exception is thrown if the database or the session is not open. This method is a wrapper around
|
|
303
|
+
* [`sqlite3session_changeset()`](https://www.sqlite.org/session/sqlite3session_changeset.html).
|
|
304
|
+
* @returns Binary changeset that can be applied to other databases.
|
|
305
|
+
* @since v22.12.0
|
|
306
|
+
*/
|
|
307
|
+
changeset(): Uint8Array;
|
|
308
|
+
/**
|
|
309
|
+
* Similar to the method above, but generates a more compact patchset. See
|
|
310
|
+
* [Changesets and Patchsets](https://www.sqlite.org/sessionintro.html#changesets_and_patchsets)
|
|
311
|
+
* in the documentation of SQLite. An exception is thrown if the database or the session is not open. This method is a
|
|
312
|
+
* wrapper around
|
|
313
|
+
* [`sqlite3session_patchset()`](https://www.sqlite.org/session/sqlite3session_patchset.html).
|
|
314
|
+
* @returns Binary patchset that can be applied to other databases.
|
|
315
|
+
* @since v22.12.0
|
|
316
|
+
*/
|
|
317
|
+
patchset(): Uint8Array;
|
|
318
|
+
/**
|
|
319
|
+
* Closes the session. An exception is thrown if the database or the session is not open. This method is a
|
|
320
|
+
* wrapper around
|
|
321
|
+
* [`sqlite3session_delete()`](https://www.sqlite.org/session/sqlite3session_delete.html).
|
|
322
|
+
*/
|
|
323
|
+
close(): void;
|
|
117
324
|
}
|
|
118
|
-
type SupportedValueType = null | number | bigint | string | Uint8Array;
|
|
119
325
|
interface StatementResultingChanges {
|
|
120
326
|
/**
|
|
121
327
|
* The number of rows modified, inserted, or deleted by the most recently completed `INSERT`, `UPDATE`, or `DELETE` statement.
|
|
@@ -155,11 +361,11 @@ declare module "node:sqlite" {
|
|
|
155
361
|
* @return An array of objects. Each object corresponds to a row returned by executing the prepared statement. The keys and values of each object correspond to the column names and values of
|
|
156
362
|
* the row.
|
|
157
363
|
*/
|
|
158
|
-
all(...anonymousParameters:
|
|
364
|
+
all(...anonymousParameters: SQLInputValue[]): Record<string, SQLOutputValue>[];
|
|
159
365
|
all(
|
|
160
|
-
namedParameters: Record<string,
|
|
161
|
-
...anonymousParameters:
|
|
162
|
-
):
|
|
366
|
+
namedParameters: Record<string, SQLInputValue>,
|
|
367
|
+
...anonymousParameters: SQLInputValue[]
|
|
368
|
+
): Record<string, SQLOutputValue>[];
|
|
163
369
|
/**
|
|
164
370
|
* The source SQL text of the prepared statement with parameter
|
|
165
371
|
* placeholders replaced by the values that were used during the most recent
|
|
@@ -179,8 +385,29 @@ declare module "node:sqlite" {
|
|
|
179
385
|
* @return An object corresponding to the first row returned by executing the prepared statement. The keys and values of the object correspond to the column names and values of the row. If no
|
|
180
386
|
* rows were returned from the database then this method returns `undefined`.
|
|
181
387
|
*/
|
|
182
|
-
get(...anonymousParameters:
|
|
183
|
-
get(
|
|
388
|
+
get(...anonymousParameters: SQLInputValue[]): Record<string, SQLOutputValue> | undefined;
|
|
389
|
+
get(
|
|
390
|
+
namedParameters: Record<string, SQLInputValue>,
|
|
391
|
+
...anonymousParameters: SQLInputValue[]
|
|
392
|
+
): Record<string, SQLOutputValue> | undefined;
|
|
393
|
+
/**
|
|
394
|
+
* This method executes a prepared statement and returns an iterator of
|
|
395
|
+
* objects. If the prepared statement does not return any results, this method
|
|
396
|
+
* returns an empty iterator. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using
|
|
397
|
+
* the values in `namedParameters` and `anonymousParameters`.
|
|
398
|
+
* @since v22.13.0
|
|
399
|
+
* @param namedParameters An optional object used to bind named parameters.
|
|
400
|
+
* The keys of this object are used to configure the mapping.
|
|
401
|
+
* @param anonymousParameters Zero or more values to bind to anonymous parameters.
|
|
402
|
+
* @returns An iterable iterator of objects. Each object corresponds to a row
|
|
403
|
+
* returned by executing the prepared statement. The keys and values of each
|
|
404
|
+
* object correspond to the column names and values of the row.
|
|
405
|
+
*/
|
|
406
|
+
iterate(...anonymousParameters: SQLInputValue[]): NodeJS.Iterator<Record<string, SQLOutputValue>>;
|
|
407
|
+
iterate(
|
|
408
|
+
namedParameters: Record<string, SQLInputValue>,
|
|
409
|
+
...anonymousParameters: SQLInputValue[]
|
|
410
|
+
): NodeJS.Iterator<Record<string, SQLOutputValue>>;
|
|
184
411
|
/**
|
|
185
412
|
* This method executes a prepared statement and returns an object summarizing the
|
|
186
413
|
* resulting changes. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using the
|
|
@@ -189,10 +416,10 @@ declare module "node:sqlite" {
|
|
|
189
416
|
* @param namedParameters An optional object used to bind named parameters. The keys of this object are used to configure the mapping.
|
|
190
417
|
* @param anonymousParameters Zero or more values to bind to anonymous parameters.
|
|
191
418
|
*/
|
|
192
|
-
run(...anonymousParameters:
|
|
419
|
+
run(...anonymousParameters: SQLInputValue[]): StatementResultingChanges;
|
|
193
420
|
run(
|
|
194
|
-
namedParameters: Record<string,
|
|
195
|
-
...anonymousParameters:
|
|
421
|
+
namedParameters: Record<string, SQLInputValue>,
|
|
422
|
+
...anonymousParameters: SQLInputValue[]
|
|
196
423
|
): StatementResultingChanges;
|
|
197
424
|
/**
|
|
198
425
|
* The names of SQLite parameters begin with a prefix character. By default,`node:sqlite` requires that this prefix character is present when binding
|
|
@@ -213,6 +440,13 @@ declare module "node:sqlite" {
|
|
|
213
440
|
* @param enabled Enables or disables support for binding named parameters without the prefix character.
|
|
214
441
|
*/
|
|
215
442
|
setAllowBareNamedParameters(enabled: boolean): void;
|
|
443
|
+
/**
|
|
444
|
+
* By default, if an unknown name is encountered while binding parameters, an
|
|
445
|
+
* exception is thrown. This method allows unknown named parameters to be ignored.
|
|
446
|
+
* @since v22.15.0
|
|
447
|
+
* @param enabled Enables or disables support for unknown named parameters.
|
|
448
|
+
*/
|
|
449
|
+
setAllowUnknownNamedParameters(enabled: boolean): void;
|
|
216
450
|
/**
|
|
217
451
|
* When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
|
|
218
452
|
* numbers by default. However, SQLite `INTEGER`s can store values larger than
|
|
@@ -231,4 +465,44 @@ declare module "node:sqlite" {
|
|
|
231
465
|
*/
|
|
232
466
|
readonly sourceSQL: string;
|
|
233
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* @since v22.13.0
|
|
470
|
+
*/
|
|
471
|
+
namespace constants {
|
|
472
|
+
/**
|
|
473
|
+
* The conflict handler is invoked with this constant when processing a DELETE or UPDATE change if a row with the required PRIMARY KEY fields is present in the database, but one or more other (non primary-key) fields modified by the update do not contain the expected "before" values.
|
|
474
|
+
* @since v22.14.0
|
|
475
|
+
*/
|
|
476
|
+
const SQLITE_CHANGESET_DATA: number;
|
|
477
|
+
/**
|
|
478
|
+
* The conflict handler is invoked with this constant when processing a DELETE or UPDATE change if a row with the required PRIMARY KEY fields is not present in the database.
|
|
479
|
+
* @since v22.14.0
|
|
480
|
+
*/
|
|
481
|
+
const SQLITE_CHANGESET_NOTFOUND: number;
|
|
482
|
+
/**
|
|
483
|
+
* This constant is passed to the conflict handler while processing an INSERT change if the operation would result in duplicate primary key values.
|
|
484
|
+
* @since v22.14.0
|
|
485
|
+
*/
|
|
486
|
+
const SQLITE_CHANGESET_CONFLICT: number;
|
|
487
|
+
/**
|
|
488
|
+
* If foreign key handling is enabled, and applying a changeset leaves the database in a state containing foreign key violations, the conflict handler is invoked with this constant exactly once before the changeset is committed. If the conflict handler returns `SQLITE_CHANGESET_OMIT`, the changes, including those that caused the foreign key constraint violation, are committed. Or, if it returns `SQLITE_CHANGESET_ABORT`, the changeset is rolled back.
|
|
489
|
+
* @since v22.14.0
|
|
490
|
+
*/
|
|
491
|
+
const SQLITE_CHANGESET_FOREIGN_KEY: number;
|
|
492
|
+
/**
|
|
493
|
+
* Conflicting changes are omitted.
|
|
494
|
+
* @since v22.12.0
|
|
495
|
+
*/
|
|
496
|
+
const SQLITE_CHANGESET_OMIT: number;
|
|
497
|
+
/**
|
|
498
|
+
* Conflicting changes replace existing values. Note that this value can only be returned when the type of conflict is either `SQLITE_CHANGESET_DATA` or `SQLITE_CHANGESET_CONFLICT`.
|
|
499
|
+
* @since v22.12.0
|
|
500
|
+
*/
|
|
501
|
+
const SQLITE_CHANGESET_REPLACE: number;
|
|
502
|
+
/**
|
|
503
|
+
* Abort when a change encounters a conflict and roll back database.
|
|
504
|
+
* @since v22.12.0
|
|
505
|
+
*/
|
|
506
|
+
const SQLITE_CHANGESET_ABORT: number;
|
|
507
|
+
}
|
|
234
508
|
}
|
|
@@ -1,11 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The utility consumer functions provide common options for consuming
|
|
3
|
+
* streams.
|
|
4
|
+
* @since v16.7.0
|
|
5
|
+
*/
|
|
1
6
|
declare module "stream/consumers" {
|
|
2
7
|
import { Blob as NodeBlob } from "node:buffer";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function
|
|
8
|
+
import { ReadableStream as WebReadableStream } from "node:stream/web";
|
|
9
|
+
/**
|
|
10
|
+
* @since v16.7.0
|
|
11
|
+
* @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream.
|
|
12
|
+
*/
|
|
13
|
+
function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
|
|
14
|
+
/**
|
|
15
|
+
* @since v16.7.0
|
|
16
|
+
* @returns Fulfills with a `Blob` containing the full contents of the stream.
|
|
17
|
+
*/
|
|
18
|
+
function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NodeBlob>;
|
|
19
|
+
/**
|
|
20
|
+
* @since v16.7.0
|
|
21
|
+
* @returns Fulfills with a `Buffer` containing the full contents of the stream.
|
|
22
|
+
*/
|
|
23
|
+
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<Buffer>;
|
|
24
|
+
/**
|
|
25
|
+
* @since v16.7.0
|
|
26
|
+
* @returns Fulfills with the contents of the stream parsed as a
|
|
27
|
+
* UTF-8 encoded string that is then passed through `JSON.parse()`.
|
|
28
|
+
*/
|
|
29
|
+
function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* @since v16.7.0
|
|
32
|
+
* @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string.
|
|
33
|
+
*/
|
|
34
|
+
function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<string>;
|
|
9
35
|
}
|
|
10
36
|
declare module "node:stream/consumers" {
|
|
11
37
|
export * from "stream/consumers";
|
|
@@ -97,7 +97,7 @@ declare module "stream/web" {
|
|
|
97
97
|
signal?: AbortSignal;
|
|
98
98
|
}
|
|
99
99
|
interface ReadableStreamGenericReader {
|
|
100
|
-
readonly closed: Promise<
|
|
100
|
+
readonly closed: Promise<void>;
|
|
101
101
|
cancel(reason?: any): Promise<void>;
|
|
102
102
|
}
|
|
103
103
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
@@ -205,7 +205,12 @@ declare module "stream/web" {
|
|
|
205
205
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
|
|
206
206
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
207
207
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
|
|
208
|
-
read<T extends ArrayBufferView>(
|
|
208
|
+
read<T extends ArrayBufferView>(
|
|
209
|
+
view: T,
|
|
210
|
+
options?: {
|
|
211
|
+
min?: number;
|
|
212
|
+
},
|
|
213
|
+
): Promise<ReadableStreamReadResult<T>>;
|
|
209
214
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
|
|
210
215
|
releaseLock(): void;
|
|
211
216
|
}
|
|
@@ -302,9 +307,9 @@ declare module "stream/web" {
|
|
|
302
307
|
* sink.
|
|
303
308
|
*/
|
|
304
309
|
interface WritableStreamDefaultWriter<W = any> {
|
|
305
|
-
readonly closed: Promise<
|
|
310
|
+
readonly closed: Promise<void>;
|
|
306
311
|
readonly desiredSize: number | null;
|
|
307
|
-
readonly ready: Promise<
|
|
312
|
+
readonly ready: Promise<void>;
|
|
308
313
|
abort(reason?: any): Promise<void>;
|
|
309
314
|
close(): Promise<void>;
|
|
310
315
|
releaseLock(): void;
|