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
|
@@ -1,92 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
//
|
|
5
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
// of this software and associated documentation files (the 'Software'), to deal
|
|
7
|
-
// in the Software without restriction, including without limitation the rights
|
|
8
|
-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
// copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
// furnished to do so, subject to the following conditions:
|
|
11
|
-
//
|
|
12
|
-
// The above copyright notice and this permission notice shall be included in
|
|
13
|
-
// all copies or substantial portions of the Software.
|
|
14
|
-
//
|
|
15
|
-
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
// THE SOFTWARE
|
|
3
|
+
import { Transform } from 'stream';
|
|
22
4
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const rte = require('readtoend');
|
|
30
|
-
|
|
31
|
-
http.get('http://nodejs.org', function(response) {
|
|
32
|
-
rte.readToEnd(response, function(err, body) {
|
|
33
|
-
console.log(body);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
let stream = require('stream');
|
|
40
|
-
const util = require('util');
|
|
41
|
-
|
|
42
|
-
if (!stream.Transform) {
|
|
43
|
-
stream = require('readable-stream');
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function ReadToEnd(opts) {
|
|
47
|
-
if (!(this instanceof ReadToEnd)) {
|
|
48
|
-
return new ReadToEnd(opts);
|
|
5
|
+
export default class ReadToEnd extends Transform {
|
|
6
|
+
constructor(options = {}) {
|
|
7
|
+
super(options);
|
|
8
|
+
this._encoding = options.encoding || 'utf8';
|
|
9
|
+
this._buffer = '';
|
|
49
10
|
}
|
|
50
11
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
module.exports = ReadToEnd;
|
|
59
|
-
util.inherits(ReadToEnd, stream.Transform);
|
|
60
|
-
|
|
61
|
-
ReadToEnd.prototype._transform = function(chunk, encoding, done) {
|
|
62
|
-
this._buff += chunk.toString(this._rte_encoding);
|
|
63
|
-
this.push(chunk);
|
|
64
|
-
done();
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
ReadToEnd.prototype._flush = function(done) {
|
|
68
|
-
this.emit('complete', undefined, this._buff);
|
|
69
|
-
done();
|
|
70
|
-
};
|
|
12
|
+
_transform(chunk, encoding, done) {
|
|
13
|
+
this._buffer += chunk.toString(this._encoding);
|
|
14
|
+
this.push(chunk);
|
|
15
|
+
done();
|
|
16
|
+
}
|
|
71
17
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
options = {};
|
|
18
|
+
_flush(done) {
|
|
19
|
+
this.emit('complete', null, this._buffer);
|
|
20
|
+
done();
|
|
76
21
|
}
|
|
77
22
|
|
|
78
|
-
|
|
23
|
+
static readToEnd(stream, options, callback) {
|
|
24
|
+
if (typeof options === 'function') {
|
|
25
|
+
callback = options;
|
|
26
|
+
options = {};
|
|
27
|
+
}
|
|
79
28
|
|
|
80
|
-
|
|
29
|
+
const dest = new ReadToEnd(options);
|
|
81
30
|
|
|
82
|
-
|
|
83
|
-
stream.unpipe(dest);
|
|
84
|
-
cb(err);
|
|
85
|
-
});
|
|
31
|
+
stream.pipe(dest);
|
|
86
32
|
|
|
87
|
-
|
|
33
|
+
stream.on('error', (err) => {
|
|
34
|
+
stream.unpipe(dest);
|
|
35
|
+
callback(err);
|
|
36
|
+
});
|
|
88
37
|
|
|
89
|
-
|
|
38
|
+
dest.on('complete', callback);
|
|
39
|
+
dest.resume();
|
|
90
40
|
|
|
91
|
-
|
|
92
|
-
}
|
|
41
|
+
return dest;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -210,6 +210,12 @@ type X2jOptions = {
|
|
|
210
210
|
* Defaults to `(tagName, jPath, attrs) => tagName`
|
|
211
211
|
*/
|
|
212
212
|
updateTag?: (tagName: string, jPath: string, attrs: {[k: string]: string}) => string | boolean;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* If true, adds a Symbol to all object nodes, accessible by {@link XMLParser.getMetaDataSymbol} with
|
|
216
|
+
* metadata about each the node in the XML file.
|
|
217
|
+
*/
|
|
218
|
+
captureMetaData?: boolean;
|
|
213
219
|
};
|
|
214
220
|
|
|
215
221
|
type strnumOptions = {
|
|
@@ -407,6 +413,18 @@ export class XMLParser {
|
|
|
407
413
|
* @param entityValue {string} Eg: '\r'
|
|
408
414
|
*/
|
|
409
415
|
addEntity(entityIdentifier: string, entityValue: string): void;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Returns a Symbol that can be used to access the {@link XMLMetaData}
|
|
419
|
+
* property on a node.
|
|
420
|
+
*
|
|
421
|
+
* If Symbol is not available in the environment, an ordinary property is used
|
|
422
|
+
* and the name of the property is here returned.
|
|
423
|
+
*
|
|
424
|
+
* The XMLMetaData property is only present when {@link X2jOptions.captureMetaData}
|
|
425
|
+
* is true in the options.
|
|
426
|
+
*/
|
|
427
|
+
static getMetaDataSymbol() : Symbol;
|
|
410
428
|
}
|
|
411
429
|
|
|
412
430
|
export class XMLValidator{
|
|
@@ -414,5 +432,14 @@ export class XMLValidator{
|
|
|
414
432
|
}
|
|
415
433
|
export class XMLBuilder {
|
|
416
434
|
constructor(options?: XmlBuilderOptions);
|
|
417
|
-
build(jObj: any):
|
|
435
|
+
build(jObj: any): string;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* This object is available on nodes via the symbol {@link XMLParser.getMetaDataSymbol}
|
|
440
|
+
* when {@link X2jOptions.captureMetaData} is true.
|
|
441
|
+
*/
|
|
442
|
+
export interface XMLMetaData {
|
|
443
|
+
/** The index, if available, of the character where the XML node began in the input stream. */
|
|
444
|
+
startIndex?: number;
|
|
418
445
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import {validate} from './validator.js';
|
|
4
|
+
import XMLParser from './xmlparser/XMLParser.js';
|
|
5
|
+
import XMLBuilder from './xmlbuilder/json2xml.js';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const XMLValidator = {
|
|
8
|
+
validate: validate
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
XMLParser,
|
|
12
|
+
XMLValidator,
|
|
13
|
+
XMLBuilder
|
|
14
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function getIgnoreAttributesFn(ignoreAttributes) {
|
|
1
|
+
export default function getIgnoreAttributesFn(ignoreAttributes) {
|
|
2
2
|
if (typeof ignoreAttributes === 'function') {
|
|
3
3
|
return ignoreAttributes
|
|
4
4
|
}
|
|
@@ -15,6 +15,4 @@ function getIgnoreAttributesFn(ignoreAttributes) {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
return () => false
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
module.exports = getIgnoreAttributesFn
|
|
18
|
+
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
|
|
4
4
|
const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
|
|
5
|
-
const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*'
|
|
5
|
+
export const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*';
|
|
6
6
|
const regexName = new RegExp('^' + nameRegexp + '$');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
export function getAllMatches(string, regex) {
|
|
9
9
|
const matches = [];
|
|
10
10
|
let match = regex.exec(string);
|
|
11
11
|
while (match) {
|
|
@@ -19,27 +19,27 @@ const getAllMatches = function(string, regex) {
|
|
|
19
19
|
match = regex.exec(string);
|
|
20
20
|
}
|
|
21
21
|
return matches;
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
const isName = function(string) {
|
|
24
|
+
export const isName = function(string) {
|
|
25
25
|
const match = regexName.exec(string);
|
|
26
26
|
return !(match === null || typeof match === 'undefined');
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
export function isExist(v) {
|
|
30
30
|
return typeof v !== 'undefined';
|
|
31
|
-
}
|
|
31
|
+
}
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
export function isEmptyObject(obj) {
|
|
34
34
|
return Object.keys(obj).length === 0;
|
|
35
|
-
}
|
|
35
|
+
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Copy all the properties of a into b.
|
|
39
39
|
* @param {*} target
|
|
40
40
|
* @param {*} a
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
export function merge(target, a, arrayMode) {
|
|
43
43
|
if (a) {
|
|
44
44
|
const keys = Object.keys(a); // will return an array of own properties
|
|
45
45
|
const len = keys.length; //don't make it inline
|
|
@@ -51,22 +51,18 @@ exports.merge = function(target, a, arrayMode) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|
|
55
55
|
/* exports.merge =function (b,a){
|
|
56
56
|
return Object.assign(b,a);
|
|
57
57
|
} */
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
export function getValue(v) {
|
|
60
60
|
if (exports.isExist(v)) {
|
|
61
61
|
return v;
|
|
62
62
|
} else {
|
|
63
63
|
return '';
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
|
66
66
|
|
|
67
67
|
// const fakeCall = function(a) {return a;};
|
|
68
|
-
// const fakeCallNoReturn = function() {};
|
|
69
|
-
|
|
70
|
-
exports.isName = isName;
|
|
71
|
-
exports.getAllMatches = getAllMatches;
|
|
72
|
-
exports.nameRegexp = nameRegexp;
|
|
68
|
+
// const fakeCallNoReturn = function() {};
|
|
@@ -13,11 +13,10 @@ const htmlEntities = {
|
|
|
13
13
|
"copyright" : { regex: /&(copy|#169);/g, val: "©" },
|
|
14
14
|
"reg" : { regex: /&(reg|#174);/g, val: "®" },
|
|
15
15
|
"inr" : { regex: /&(inr|#8377);/g, val: "₹" },
|
|
16
|
-
"num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.
|
|
17
|
-
"num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.
|
|
16
|
+
"num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 10)) },
|
|
17
|
+
"num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCodePoint(Number.parseInt(str, 16)) },
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
class EntitiesParser{
|
|
19
|
+
export default class EntitiesParser{
|
|
21
20
|
constructor(replaceHtmlEntities) {
|
|
22
21
|
this.replaceHtmlEntities = replaceHtmlEntities;
|
|
23
22
|
this.docTypeEntities = {};
|
|
@@ -103,5 +102,3 @@ function validateEntityName(name){
|
|
|
103
102
|
}
|
|
104
103
|
return name;
|
|
105
104
|
}
|
|
106
|
-
|
|
107
|
-
module.exports = EntitiesParser;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
import {JsObjOutputBuilder} from './OutputBuilders/JsObjBuilder.js';
|
|
3
3
|
|
|
4
|
-
const defaultOptions = {
|
|
4
|
+
export const defaultOptions = {
|
|
5
5
|
preserveOrder: false,
|
|
6
6
|
removeNSPrefix: false, // remove NS from tag name or attribute name if true
|
|
7
7
|
//ignoreRootElement : false,
|
|
@@ -35,7 +35,7 @@ const defaultOptions = {
|
|
|
35
35
|
OutputBuilder: new JsObjOutputBuilder(),
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
const buildOptions = function(options) {
|
|
38
|
+
export const buildOptions = function(options) {
|
|
39
39
|
const finalOptions = { ... defaultOptions};
|
|
40
40
|
copyProperties(finalOptions,options)
|
|
41
41
|
return finalOptions;
|
|
@@ -59,6 +59,3 @@ function copyProperties(target, source) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
exports.buildOptions = buildOptions;
|
|
64
|
-
exports.defaultOptions = defaultOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {buildOptions,registerCommonValueParsers} from './ParserOptionsBuilder.js';
|
|
2
2
|
|
|
3
|
-
class OutputBuilder{
|
|
3
|
+
export default class OutputBuilder{
|
|
4
4
|
constructor(options){
|
|
5
5
|
this.options = buildOptions(options);
|
|
6
6
|
this.registeredParsers = registerCommonValueParsers(this.options);
|
|
@@ -16,7 +16,7 @@ class OutputBuilder{
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const rootName = '!js_arr';
|
|
19
|
-
|
|
19
|
+
import BaseOutputBuilder from './BaseOutputBuilder.js';
|
|
20
20
|
|
|
21
21
|
class JsArrBuilder extends BaseOutputBuilder{
|
|
22
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {buildOptions,registerCommonValueParsers} from"./ParserOptionsBuilder";
|
|
2
2
|
|
|
3
|
-
class OutputBuilder{
|
|
3
|
+
export default class OutputBuilder{
|
|
4
4
|
constructor(options){
|
|
5
5
|
this.options = buildOptions(options);
|
|
6
6
|
this.registeredParsers = registerCommonValueParsers(this.options);
|
|
@@ -15,7 +15,7 @@ class OutputBuilder{
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
import BaseOutputBuilder from "./BaseOutputBuilder.js";
|
|
19
19
|
const rootName = '^';
|
|
20
20
|
|
|
21
21
|
class JsMinArrBuilder extends BaseOutputBuilder{
|
|
@@ -98,5 +98,3 @@ class JsMinArrBuilder extends BaseOutputBuilder{
|
|
|
98
98
|
return this.root[rootName];
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
module.exports = OutputBuilder;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import {buildOptions,registerCommonValueParsers} from './ParserOptionsBuilder.js';
|
|
4
4
|
|
|
5
|
-
class OutputBuilder{
|
|
5
|
+
export default class OutputBuilder{
|
|
6
6
|
constructor(builderOptions){
|
|
7
7
|
this.options = buildOptions(builderOptions);
|
|
8
8
|
this.registeredParsers = registerCommonValueParsers(this.options);
|
|
@@ -17,7 +17,7 @@ class OutputBuilder{
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
import BaseOutputBuilder from './BaseOutputBuilder.js';
|
|
21
21
|
const rootName = '^';
|
|
22
22
|
|
|
23
23
|
class JsObjBuilder extends BaseOutputBuilder{
|
|
@@ -152,5 +152,3 @@ class JsObjBuilder extends BaseOutputBuilder{
|
|
|
152
152
|
function isEmpty(obj) {
|
|
153
153
|
return Object.keys(obj).length === 0;
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
module.exports = OutputBuilder;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import trimParser from "../valueParsers/trim";
|
|
2
|
+
import booleanParser from "../valueParsers/booleanParser";
|
|
3
|
+
import currencyParser from "../valueParsers/currency";
|
|
4
|
+
import numberParser from "../valueParsers/number";
|
|
5
5
|
|
|
6
6
|
const defaultOptions={
|
|
7
7
|
nameFor:{
|
|
@@ -44,7 +44,7 @@ const defaultOptions={
|
|
|
44
44
|
const withJoin = ["trim","join", /*"entities",*/"number","boolean","currency"/*, "date"*/]
|
|
45
45
|
const withoutJoin = ["trim", /*"entities",*/"number","boolean","currency"/*, "date"*/]
|
|
46
46
|
|
|
47
|
-
function buildOptions(options){
|
|
47
|
+
export function buildOptions(options){
|
|
48
48
|
//clone
|
|
49
49
|
const finalOptions = { ... defaultOptions};
|
|
50
50
|
|
|
@@ -78,7 +78,7 @@ function copyProperties(target, source) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
function registerCommonValueParsers(options){
|
|
81
|
+
export function registerCommonValueParsers(options){
|
|
82
82
|
return {
|
|
83
83
|
"trim": new trimParser(),
|
|
84
84
|
// "join": this.entityParser.parse,
|
|
@@ -92,8 +92,3 @@ function registerCommonValueParsers(options){
|
|
|
92
92
|
// "date": this.entityParser.parse,
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
module.exports = {
|
|
97
|
-
buildOptions : buildOptions,
|
|
98
|
-
registerCommonValueParsers: registerCommonValueParsers
|
|
99
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {TagPath} from './TagPath.js';
|
|
2
2
|
|
|
3
|
-
class TagPathMatcher{
|
|
3
|
+
export default class TagPathMatcher{
|
|
4
4
|
constructor(stack,node){
|
|
5
5
|
this.stack = stack;
|
|
6
6
|
this.node= node;
|
|
@@ -10,6 +10,4 @@ class TagPathMatcher{
|
|
|
10
10
|
const tagPath = new TagPath(path);
|
|
11
11
|
return tagPath.match(this.stack, this.node);
|
|
12
12
|
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
module.exports = TagPathMatcher;
|
|
13
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { buildOptions} from './OptionsBuilder.js';
|
|
2
|
+
import Xml2JsParser from './Xml2JsParser.js';
|
|
3
3
|
|
|
4
|
-
class XMLParser{
|
|
4
|
+
export default class XMLParser{
|
|
5
5
|
|
|
6
6
|
constructor(options){
|
|
7
7
|
this.externalEntities = {};
|
|
@@ -81,5 +81,3 @@ function isStream(stream){
|
|
|
81
81
|
if(stream && typeof stream.read === "function" && typeof stream.on === "function" && typeof stream.readableEnded === "boolean") return true;
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
module.exports = XMLParser;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import StringSource from './inputSource/StringSource.js';
|
|
2
|
+
import BufferSource from './inputSource/BufferSource.js';
|
|
3
|
+
import {readTagExp,readClosingTagName} from './XmlPartReader.js';
|
|
4
|
+
import {readComment, readCdata,readDocType,readPiTag} from './XmlSpecialTagsReader.js';
|
|
5
|
+
import TagPath from './TagPath.js';
|
|
6
|
+
import TagPathMatcher from './TagPathMatcher.js';
|
|
7
|
+
import EntitiesParser from './EntitiesParser.js';
|
|
8
8
|
|
|
9
9
|
//To hold the data of current tag
|
|
10
10
|
//This is usually used to compare jpath expression against current tag
|
|
@@ -16,7 +16,7 @@ class TagDetail{
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
class Xml2JsParser {
|
|
19
|
+
export default class Xml2JsParser {
|
|
20
20
|
constructor(options) {
|
|
21
21
|
this.options = options;
|
|
22
22
|
|
|
@@ -233,5 +233,3 @@ function resolveNameSpace(name, removeNSPrefix) {
|
|
|
233
233
|
}
|
|
234
234
|
return name;
|
|
235
235
|
}
|
|
236
|
-
|
|
237
|
-
module.exports = Xml2JsParser;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @param {string} tagName
|
|
7
7
|
* @param {number} i : start index
|
|
8
8
|
*/
|
|
9
|
-
function readStopNode(xmlDoc, tagName, i){
|
|
9
|
+
export function readStopNode(xmlDoc, tagName, i){
|
|
10
10
|
const startIndex = i;
|
|
11
11
|
// Starting at 1 since we already have an open tag
|
|
12
12
|
let openTagCount = 1;
|
|
@@ -55,7 +55,7 @@ function readStopNode(xmlDoc, tagName, i){
|
|
|
55
55
|
* @param {Source} source
|
|
56
56
|
* @returns tag name
|
|
57
57
|
*/
|
|
58
|
-
function readClosingTagName(source){
|
|
58
|
+
export function readClosingTagName(source){
|
|
59
59
|
let text = ""; //temporary data
|
|
60
60
|
while(source.canRead()){
|
|
61
61
|
let ch = source.readCh();
|
|
@@ -77,7 +77,7 @@ function readClosingTagName(source){
|
|
|
77
77
|
* @param {number} startIndex starting index
|
|
78
78
|
* @returns tag expression includes tag name & attribute string
|
|
79
79
|
*/
|
|
80
|
-
function readTagExp(parser) {
|
|
80
|
+
export function readTagExp(parser) {
|
|
81
81
|
let inSingleQuotes = false;
|
|
82
82
|
let inDoubleQuotes = false;
|
|
83
83
|
let i;
|
|
@@ -107,7 +107,7 @@ function readTagExp(parser) {
|
|
|
107
107
|
return buildTagExpObj(exp, parser)
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
function readPiExp(parser) {
|
|
110
|
+
export function readPiExp(parser) {
|
|
111
111
|
let inSingleQuotes = false;
|
|
112
112
|
let inDoubleQuotes = false;
|
|
113
113
|
let i;
|
|
@@ -208,9 +208,3 @@ const getAllMatches = function(string, regex) {
|
|
|
208
208
|
return matches;
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
module.exports = {
|
|
212
|
-
readStopNode: readStopNode,
|
|
213
|
-
readClosingTagName: readClosingTagName,
|
|
214
|
-
readTagExp: readTagExp,
|
|
215
|
-
readPiExp: readPiExp,
|
|
216
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {readPiExp} from './XmlPartReader.js';
|
|
2
2
|
|
|
3
|
-
function readCdata(parser){
|
|
3
|
+
export function readCdata(parser){
|
|
4
4
|
//<![ are already read till this point
|
|
5
5
|
let str = parser.source.readStr(6); //CDATA[
|
|
6
6
|
parser.source.updateBufferBoundary(6);
|
|
@@ -10,7 +10,7 @@ function readCdata(parser){
|
|
|
10
10
|
let text = parser.source.readUpto("]]>");
|
|
11
11
|
parser.outputBuilder.addCdata(text);
|
|
12
12
|
}
|
|
13
|
-
function readPiTag(parser){
|
|
13
|
+
export function readPiTag(parser){
|
|
14
14
|
//<? are already read till this point
|
|
15
15
|
let tagExp = readPiExp(parser, "?>");
|
|
16
16
|
if(!tagExp) throw new Error("Invalid Pi Tag expression.");
|
|
@@ -22,7 +22,7 @@ function readPiTag(parser){
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function readComment(parser){
|
|
25
|
+
export function readComment(parser){
|
|
26
26
|
//<!- are already read till this point
|
|
27
27
|
let ch = parser.source.readCh();
|
|
28
28
|
if(ch !== "-") throw new Error(`Invalid comment expression at ${parser.source.line}:${parser.source.cols}`);
|
|
@@ -36,7 +36,7 @@ const DOCTYPE_tags = {
|
|
|
36
36
|
"AT":/^TLIST\s+[^\s]+\s+[^\s]+\s+[^\s]+\s+[^\s]+\s+$/m,
|
|
37
37
|
"NO":/^TATION.+$/m
|
|
38
38
|
}
|
|
39
|
-
function readDocType(parser){
|
|
39
|
+
export function readDocType(parser){
|
|
40
40
|
//<!D are already read till this point
|
|
41
41
|
let str = parser.source.readStr(6); //OCTYPE
|
|
42
42
|
parser.source.updateBufferBoundary(6);
|
|
@@ -109,10 +109,3 @@ function registerEntity(parser){
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
module.exports = {
|
|
114
|
-
readCdata: readCdata,
|
|
115
|
-
readComment:readComment,
|
|
116
|
-
readDocType:readDocType,
|
|
117
|
-
readPiTag:readPiTag
|
|
118
|
-
}
|
|
@@ -2,7 +2,7 @@ const Constants = {
|
|
|
2
2
|
space: 32,
|
|
3
3
|
tab: 9
|
|
4
4
|
}
|
|
5
|
-
class BufferSource{
|
|
5
|
+
export default class BufferSource{
|
|
6
6
|
constructor(bytesArr){
|
|
7
7
|
this.line = 1;
|
|
8
8
|
this.cols = 0;
|
|
@@ -114,5 +114,3 @@ readUptoCloseTag(stopStr) { //stopStr: "</tagname"
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
module.exports = BufferSource;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const whiteSpaces = [" ", "\n", "\t"];
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
class StringSource{
|
|
4
|
+
export default class StringSource{
|
|
5
5
|
constructor(str){
|
|
6
6
|
this.line = 1;
|
|
7
7
|
this.cols = 0;
|
|
@@ -119,5 +119,3 @@ class StringSource{
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
module.exports = StringSource;
|