node-red-contrib-tak-registration 0.14.0 → 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 +16 -7
- package/node_modules/axios/SECURITY.md +0 -6
- /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2013 Raynos.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
|
20
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# function-bind <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
<!--[![coverage][codecov-image]][codecov-url]-->
|
|
5
|
+
[![dependency status][deps-svg]][deps-url]
|
|
6
|
+
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
|
7
|
+
[![License][license-image]][license-url]
|
|
8
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
9
|
+
|
|
10
|
+
[![npm badge][npm-badge-png]][package-url]
|
|
11
|
+
|
|
12
|
+
Implementation of function.prototype.bind
|
|
13
|
+
|
|
14
|
+
Old versions of phantomjs, Internet Explorer < 9, and node < 0.6 don't support `Function.prototype.bind`.
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
Function.prototype.bind = require("function-bind")
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
`npm install function-bind`
|
|
25
|
+
|
|
26
|
+
## Contributors
|
|
27
|
+
|
|
28
|
+
- Raynos
|
|
29
|
+
|
|
30
|
+
## MIT Licenced
|
|
31
|
+
|
|
32
|
+
[package-url]: https://npmjs.org/package/function-bind
|
|
33
|
+
[npm-version-svg]: https://versionbadg.es/Raynos/function-bind.svg
|
|
34
|
+
[deps-svg]: https://david-dm.org/Raynos/function-bind.svg
|
|
35
|
+
[deps-url]: https://david-dm.org/Raynos/function-bind
|
|
36
|
+
[dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg
|
|
37
|
+
[dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies
|
|
38
|
+
[npm-badge-png]: https://nodei.co/npm/function-bind.png?downloads=true&stars=true
|
|
39
|
+
[license-image]: https://img.shields.io/npm/l/function-bind.svg
|
|
40
|
+
[license-url]: LICENSE
|
|
41
|
+
[downloads-image]: https://img.shields.io/npm/dm/function-bind.svg
|
|
42
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=function-bind
|
|
43
|
+
[codecov-image]: https://codecov.io/gh/Raynos/function-bind/branch/main/graphs/badge.svg
|
|
44
|
+
[codecov-url]: https://app.codecov.io/gh/Raynos/function-bind/
|
|
45
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/Raynos/function-bind
|
|
46
|
+
[actions-url]: https://github.com/Raynos/function-bind/actions
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* eslint no-invalid-this: 1 */
|
|
4
|
+
|
|
5
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
6
|
+
var toStr = Object.prototype.toString;
|
|
7
|
+
var max = Math.max;
|
|
8
|
+
var funcType = '[object Function]';
|
|
9
|
+
|
|
10
|
+
var concatty = function concatty(a, b) {
|
|
11
|
+
var arr = [];
|
|
12
|
+
|
|
13
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
14
|
+
arr[i] = a[i];
|
|
15
|
+
}
|
|
16
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
17
|
+
arr[j + a.length] = b[j];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return arr;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var slicy = function slicy(arrLike, offset) {
|
|
24
|
+
var arr = [];
|
|
25
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
26
|
+
arr[j] = arrLike[i];
|
|
27
|
+
}
|
|
28
|
+
return arr;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var joiny = function (arr, joiner) {
|
|
32
|
+
var str = '';
|
|
33
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
34
|
+
str += arr[i];
|
|
35
|
+
if (i + 1 < arr.length) {
|
|
36
|
+
str += joiner;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return str;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
module.exports = function bind(that) {
|
|
43
|
+
var target = this;
|
|
44
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
45
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
46
|
+
}
|
|
47
|
+
var args = slicy(arguments, 1);
|
|
48
|
+
|
|
49
|
+
var bound;
|
|
50
|
+
var binder = function () {
|
|
51
|
+
if (this instanceof bound) {
|
|
52
|
+
var result = target.apply(
|
|
53
|
+
this,
|
|
54
|
+
concatty(args, arguments)
|
|
55
|
+
);
|
|
56
|
+
if (Object(result) === result) {
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
return target.apply(
|
|
62
|
+
that,
|
|
63
|
+
concatty(args, arguments)
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var boundLength = max(0, target.length - args.length);
|
|
69
|
+
var boundArgs = [];
|
|
70
|
+
for (var i = 0; i < boundLength; i++) {
|
|
71
|
+
boundArgs[i] = '$' + i;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
75
|
+
|
|
76
|
+
if (target.prototype) {
|
|
77
|
+
var Empty = function Empty() {};
|
|
78
|
+
Empty.prototype = target.prototype;
|
|
79
|
+
bound.prototype = new Empty();
|
|
80
|
+
Empty.prototype = null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return bound;
|
|
84
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "function-bind",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "Implementation of Function.prototype.bind",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"function",
|
|
7
|
+
"bind",
|
|
8
|
+
"shim",
|
|
9
|
+
"es5"
|
|
10
|
+
],
|
|
11
|
+
"author": "Raynos <raynos2@gmail.com>",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/Raynos/function-bind.git"
|
|
15
|
+
},
|
|
16
|
+
"funding": {
|
|
17
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
18
|
+
},
|
|
19
|
+
"main": "index",
|
|
20
|
+
"homepage": "https://github.com/Raynos/function-bind",
|
|
21
|
+
"contributors": [
|
|
22
|
+
{
|
|
23
|
+
"name": "Raynos"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Jordan Harband",
|
|
27
|
+
"url": "https://github.com/ljharb"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/Raynos/function-bind/issues",
|
|
32
|
+
"email": "raynos2@gmail.com"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@ljharb/eslint-config": "^21.1.0",
|
|
36
|
+
"aud": "^2.0.3",
|
|
37
|
+
"auto-changelog": "^2.4.0",
|
|
38
|
+
"eslint": "=8.8.0",
|
|
39
|
+
"in-publish": "^2.0.1",
|
|
40
|
+
"npmignore": "^0.3.0",
|
|
41
|
+
"nyc": "^10.3.2",
|
|
42
|
+
"safe-publish-latest": "^2.0.0",
|
|
43
|
+
"tape": "^5.7.1"
|
|
44
|
+
},
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"prepublishOnly": "safe-publish-latest",
|
|
48
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
49
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
50
|
+
"pretest": "npm run lint",
|
|
51
|
+
"test": "npm run tests-only",
|
|
52
|
+
"posttest": "aud --production",
|
|
53
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
54
|
+
"lint": "eslint --ext=js,mjs .",
|
|
55
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
56
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
57
|
+
},
|
|
58
|
+
"testling": {
|
|
59
|
+
"files": "test/index.js",
|
|
60
|
+
"browsers": [
|
|
61
|
+
"ie/8..latest",
|
|
62
|
+
"firefox/16..latest",
|
|
63
|
+
"firefox/nightly",
|
|
64
|
+
"chrome/22..latest",
|
|
65
|
+
"chrome/canary",
|
|
66
|
+
"opera/12..latest",
|
|
67
|
+
"opera/next",
|
|
68
|
+
"safari/5.1..latest",
|
|
69
|
+
"ipad/6.0..latest",
|
|
70
|
+
"iphone/6.0..latest",
|
|
71
|
+
"android-browser/4.2..latest"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"auto-changelog": {
|
|
75
|
+
"output": "CHANGELOG.md",
|
|
76
|
+
"template": "keepachangelog",
|
|
77
|
+
"unreleased": false,
|
|
78
|
+
"commitLimit": false,
|
|
79
|
+
"backfillLimit": false,
|
|
80
|
+
"hideCredit": true
|
|
81
|
+
},
|
|
82
|
+
"publishConfig": {
|
|
83
|
+
"ignore": [
|
|
84
|
+
".github/workflows"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// jscs:disable requireUseStrict
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
var functionBind = require('../implementation');
|
|
6
|
+
var getCurrentContext = function () { return this; };
|
|
7
|
+
|
|
8
|
+
test('functionBind is a function', function (t) {
|
|
9
|
+
t.equal(typeof functionBind, 'function');
|
|
10
|
+
t.end();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('non-functions', function (t) {
|
|
14
|
+
var nonFunctions = [true, false, [], {}, 42, 'foo', NaN, /a/g];
|
|
15
|
+
t.plan(nonFunctions.length);
|
|
16
|
+
for (var i = 0; i < nonFunctions.length; ++i) {
|
|
17
|
+
try { functionBind.call(nonFunctions[i]); } catch (ex) {
|
|
18
|
+
t.ok(ex instanceof TypeError, 'throws when given ' + String(nonFunctions[i]));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
t.end();
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test('without a context', function (t) {
|
|
25
|
+
t.test('binds properly', function (st) {
|
|
26
|
+
var args, context;
|
|
27
|
+
var namespace = {
|
|
28
|
+
func: functionBind.call(function () {
|
|
29
|
+
args = Array.prototype.slice.call(arguments);
|
|
30
|
+
context = this;
|
|
31
|
+
})
|
|
32
|
+
};
|
|
33
|
+
namespace.func(1, 2, 3);
|
|
34
|
+
st.deepEqual(args, [1, 2, 3]);
|
|
35
|
+
st.equal(context, getCurrentContext.call());
|
|
36
|
+
st.end();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
t.test('binds properly, and still supplies bound arguments', function (st) {
|
|
40
|
+
var args, context;
|
|
41
|
+
var namespace = {
|
|
42
|
+
func: functionBind.call(function () {
|
|
43
|
+
args = Array.prototype.slice.call(arguments);
|
|
44
|
+
context = this;
|
|
45
|
+
}, undefined, 1, 2, 3)
|
|
46
|
+
};
|
|
47
|
+
namespace.func(4, 5, 6);
|
|
48
|
+
st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
|
|
49
|
+
st.equal(context, getCurrentContext.call());
|
|
50
|
+
st.end();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
t.test('returns properly', function (st) {
|
|
54
|
+
var args;
|
|
55
|
+
var namespace = {
|
|
56
|
+
func: functionBind.call(function () {
|
|
57
|
+
args = Array.prototype.slice.call(arguments);
|
|
58
|
+
return this;
|
|
59
|
+
}, null)
|
|
60
|
+
};
|
|
61
|
+
var context = namespace.func(1, 2, 3);
|
|
62
|
+
st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
|
|
63
|
+
st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
|
|
64
|
+
st.end();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
t.test('returns properly with bound arguments', function (st) {
|
|
68
|
+
var args;
|
|
69
|
+
var namespace = {
|
|
70
|
+
func: functionBind.call(function () {
|
|
71
|
+
args = Array.prototype.slice.call(arguments);
|
|
72
|
+
return this;
|
|
73
|
+
}, null, 1, 2, 3)
|
|
74
|
+
};
|
|
75
|
+
var context = namespace.func(4, 5, 6);
|
|
76
|
+
st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
|
|
77
|
+
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
|
|
78
|
+
st.end();
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
t.test('called as a constructor', function (st) {
|
|
82
|
+
var thunkify = function (value) {
|
|
83
|
+
return function () { return value; };
|
|
84
|
+
};
|
|
85
|
+
st.test('returns object value', function (sst) {
|
|
86
|
+
var expectedReturnValue = [1, 2, 3];
|
|
87
|
+
var Constructor = functionBind.call(thunkify(expectedReturnValue), null);
|
|
88
|
+
var result = new Constructor();
|
|
89
|
+
sst.equal(result, expectedReturnValue);
|
|
90
|
+
sst.end();
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
st.test('does not return primitive value', function (sst) {
|
|
94
|
+
var Constructor = functionBind.call(thunkify(42), null);
|
|
95
|
+
var result = new Constructor();
|
|
96
|
+
sst.notEqual(result, 42);
|
|
97
|
+
sst.end();
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
st.test('object from bound constructor is instance of original and bound constructor', function (sst) {
|
|
101
|
+
var A = function (x) {
|
|
102
|
+
this.name = x || 'A';
|
|
103
|
+
};
|
|
104
|
+
var B = functionBind.call(A, null, 'B');
|
|
105
|
+
|
|
106
|
+
var result = new B();
|
|
107
|
+
sst.ok(result instanceof B, 'result is instance of bound constructor');
|
|
108
|
+
sst.ok(result instanceof A, 'result is instance of original constructor');
|
|
109
|
+
sst.end();
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
st.end();
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
t.end();
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
test('with a context', function (t) {
|
|
119
|
+
t.test('with no bound arguments', function (st) {
|
|
120
|
+
var args, context;
|
|
121
|
+
var boundContext = {};
|
|
122
|
+
var namespace = {
|
|
123
|
+
func: functionBind.call(function () {
|
|
124
|
+
args = Array.prototype.slice.call(arguments);
|
|
125
|
+
context = this;
|
|
126
|
+
}, boundContext)
|
|
127
|
+
};
|
|
128
|
+
namespace.func(1, 2, 3);
|
|
129
|
+
st.equal(context, boundContext, 'binds a context properly');
|
|
130
|
+
st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
|
|
131
|
+
st.end();
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
t.test('with bound arguments', function (st) {
|
|
135
|
+
var args, context;
|
|
136
|
+
var boundContext = {};
|
|
137
|
+
var namespace = {
|
|
138
|
+
func: functionBind.call(function () {
|
|
139
|
+
args = Array.prototype.slice.call(arguments);
|
|
140
|
+
context = this;
|
|
141
|
+
}, boundContext, 1, 2, 3)
|
|
142
|
+
};
|
|
143
|
+
namespace.func(4, 5, 6);
|
|
144
|
+
st.equal(context, boundContext, 'binds a context properly');
|
|
145
|
+
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
|
|
146
|
+
st.end();
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
t.test('returns properly', function (st) {
|
|
150
|
+
var boundContext = {};
|
|
151
|
+
var args;
|
|
152
|
+
var namespace = {
|
|
153
|
+
func: functionBind.call(function () {
|
|
154
|
+
args = Array.prototype.slice.call(arguments);
|
|
155
|
+
return this;
|
|
156
|
+
}, boundContext)
|
|
157
|
+
};
|
|
158
|
+
var context = namespace.func(1, 2, 3);
|
|
159
|
+
st.equal(context, boundContext, 'returned context is bound context');
|
|
160
|
+
st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
|
|
161
|
+
st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
|
|
162
|
+
st.end();
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
t.test('returns properly with bound arguments', function (st) {
|
|
166
|
+
var boundContext = {};
|
|
167
|
+
var args;
|
|
168
|
+
var namespace = {
|
|
169
|
+
func: functionBind.call(function () {
|
|
170
|
+
args = Array.prototype.slice.call(arguments);
|
|
171
|
+
return this;
|
|
172
|
+
}, boundContext, 1, 2, 3)
|
|
173
|
+
};
|
|
174
|
+
var context = namespace.func(4, 5, 6);
|
|
175
|
+
st.equal(context, boundContext, 'returned context is bound context');
|
|
176
|
+
st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
|
|
177
|
+
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
|
|
178
|
+
st.end();
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
t.test('passes the correct arguments when called as a constructor', function (st) {
|
|
182
|
+
var expected = { name: 'Correct' };
|
|
183
|
+
var namespace = {
|
|
184
|
+
Func: functionBind.call(function (arg) {
|
|
185
|
+
return arg;
|
|
186
|
+
}, { name: 'Incorrect' })
|
|
187
|
+
};
|
|
188
|
+
var returned = new namespace.Func(expected);
|
|
189
|
+
st.equal(returned, expected, 'returns the right arg when called as a constructor');
|
|
190
|
+
st.end();
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
t.test('has the new instance\'s context when called as a constructor', function (st) {
|
|
194
|
+
var actualContext;
|
|
195
|
+
var expectedContext = { foo: 'bar' };
|
|
196
|
+
var namespace = {
|
|
197
|
+
Func: functionBind.call(function () {
|
|
198
|
+
actualContext = this;
|
|
199
|
+
}, expectedContext)
|
|
200
|
+
};
|
|
201
|
+
var result = new namespace.Func();
|
|
202
|
+
st.equal(result instanceof namespace.Func, true);
|
|
203
|
+
st.notEqual(actualContext, expectedContext);
|
|
204
|
+
st.end();
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
t.end();
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
test('bound function length', function (t) {
|
|
211
|
+
t.test('sets a correct length without thisArg', function (st) {
|
|
212
|
+
var subject = functionBind.call(function (a, b, c) { return a + b + c; });
|
|
213
|
+
st.equal(subject.length, 3);
|
|
214
|
+
st.equal(subject(1, 2, 3), 6);
|
|
215
|
+
st.end();
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
t.test('sets a correct length with thisArg', function (st) {
|
|
219
|
+
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {});
|
|
220
|
+
st.equal(subject.length, 3);
|
|
221
|
+
st.equal(subject(1, 2, 3), 6);
|
|
222
|
+
st.end();
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
t.test('sets a correct length without thisArg and first argument', function (st) {
|
|
226
|
+
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1);
|
|
227
|
+
st.equal(subject.length, 2);
|
|
228
|
+
st.equal(subject(2, 3), 6);
|
|
229
|
+
st.end();
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
t.test('sets a correct length with thisArg and first argument', function (st) {
|
|
233
|
+
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1);
|
|
234
|
+
st.equal(subject.length, 2);
|
|
235
|
+
st.equal(subject(2, 3), 6);
|
|
236
|
+
st.end();
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
t.test('sets a correct length without thisArg and too many arguments', function (st) {
|
|
240
|
+
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1, 2, 3, 4);
|
|
241
|
+
st.equal(subject.length, 0);
|
|
242
|
+
st.equal(subject(), 6);
|
|
243
|
+
st.end();
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
t.test('sets a correct length with thisArg and too many arguments', function (st) {
|
|
247
|
+
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1, 2, 3, 4);
|
|
248
|
+
st.equal(subject.length, 0);
|
|
249
|
+
st.equal(subject(), 6);
|
|
250
|
+
st.end();
|
|
251
|
+
});
|
|
252
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb",
|
|
5
|
+
|
|
6
|
+
"env": {
|
|
7
|
+
"es6": true,
|
|
8
|
+
"es2017": true,
|
|
9
|
+
"es2020": true,
|
|
10
|
+
"es2021": true,
|
|
11
|
+
"es2022": true,
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
"globals": {
|
|
15
|
+
"Float16Array": false,
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
"rules": {
|
|
19
|
+
"array-bracket-newline": 0,
|
|
20
|
+
"complexity": 0,
|
|
21
|
+
"eqeqeq": [2, "allow-null"],
|
|
22
|
+
"func-name-matching": 0,
|
|
23
|
+
"id-length": 0,
|
|
24
|
+
"max-lines": 0,
|
|
25
|
+
"max-lines-per-function": [2, 90],
|
|
26
|
+
"max-params": [2, 4],
|
|
27
|
+
"max-statements": 0,
|
|
28
|
+
"max-statements-per-line": [2, { "max": 2 }],
|
|
29
|
+
"multiline-comment-style": 0,
|
|
30
|
+
"no-magic-numbers": 0,
|
|
31
|
+
"sort-keys": 0,
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"overrides": [
|
|
35
|
+
{
|
|
36
|
+
"files": "test/**",
|
|
37
|
+
"rules": {
|
|
38
|
+
"new-cap": 0,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/get-intrinsic
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|