node-red-contrib-tak-registration 0.11.6 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +88 -44
- package/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/node/buffer.d.ts +29 -29
- package/node_modules/@types/node/child_process.d.ts +38 -34
- package/node_modules/@types/node/cluster.d.ts +165 -19
- package/node_modules/@types/node/console.d.ts +64 -27
- package/node_modules/@types/node/crypto.d.ts +101 -65
- package/node_modules/@types/node/dgram.d.ts +14 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +12 -3
- package/node_modules/@types/node/dns/promises.d.ts +79 -28
- package/node_modules/@types/node/dns.d.ts +124 -69
- package/node_modules/@types/node/dom-events.d.ts +2 -0
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +115 -63
- package/node_modules/@types/node/fs/promises.d.ts +18 -12
- package/node_modules/@types/node/fs.d.ts +45 -39
- package/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +69 -48
- package/node_modules/@types/node/http2.d.ts +83 -47
- package/node_modules/@types/node/https.d.ts +3 -3
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +5 -6
- package/node_modules/@types/node/net.d.ts +58 -13
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +3 -15
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +308 -48
- package/node_modules/@types/node/process.d.ts +241 -48
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/stream/web.d.ts +3 -2
- package/node_modules/@types/node/stream.d.ts +62 -56
- package/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/node/test.d.ts +350 -97
- package/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/node/url.d.ts +15 -7
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +50 -6
- package/node_modules/@types/node/vm.d.ts +43 -22
- package/node_modules/@types/node/wasi.d.ts +12 -10
- package/node_modules/@types/node/worker_threads.d.ts +19 -16
- package/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/adm-zip/README.md +2 -1
- package/node_modules/adm-zip/adm-zip.js +46 -45
- package/node_modules/adm-zip/headers/entryHeader.js +14 -12
- package/node_modules/adm-zip/headers/mainHeader.js +1 -1
- package/node_modules/adm-zip/methods/inflater.js +6 -3
- package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
- package/node_modules/adm-zip/package.json +2 -2
- package/node_modules/adm-zip/util/errors.js +1 -0
- package/node_modules/adm-zip/zipEntry.js +64 -43
- package/node_modules/adm-zip/zipFile.js +35 -35
- package/node_modules/axios/CHANGELOG.md +868 -759
- package/node_modules/axios/README.md +65 -17
- package/node_modules/axios/dist/axios.js +1330 -583
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +696 -316
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +696 -316
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +607 -257
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +17 -11
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +7 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +5 -3
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/platform/common/utils.js +4 -1
- package/node_modules/axios/lib/utils.js +7 -2
- package/node_modules/axios/package.json +27 -26
- package/node_modules/fast-xml-parser/CHANGELOG.md +14 -0
- package/node_modules/fast-xml-parser/README.md +7 -14
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +4 -4
- package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
- package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
- package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
- package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
- package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
- package/node_modules/fast-xml-parser/src/validator.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +13 -4
- package/node_modules/follow-redirects/index.js +1 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/hasown/CHANGELOG.md +12 -0
- package/node_modules/hasown/index.d.ts +2 -2
- package/node_modules/hasown/package.json +5 -2
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/object-is/.eslintrc +1 -1
- package/node_modules/object-is/.nycrc +0 -4
- package/node_modules/object-is/CHANGELOG.md +25 -0
- package/node_modules/object-is/README.md +20 -20
- package/node_modules/object-is/package.json +23 -14
- package/node_modules/protobufjs/LICENSE +39 -39
- package/node_modules/protobufjs/README.md +727 -740
- package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/debug/README.md +4 -4
- package/node_modules/protobufjs/ext/debug/index.js +71 -71
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
- package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
- package/node_modules/protobufjs/google/LICENSE +27 -27
- package/node_modules/protobufjs/google/README.md +1 -1
- package/node_modules/protobufjs/google/api/annotations.json +82 -82
- package/node_modules/protobufjs/google/api/annotations.proto +10 -10
- package/node_modules/protobufjs/google/api/http.json +85 -85
- package/node_modules/protobufjs/google/api/http.proto +30 -30
- package/node_modules/protobufjs/google/protobuf/api.json +117 -117
- package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
- package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
- package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
- package/node_modules/protobufjs/google/protobuf/type.json +201 -201
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
- package/node_modules/protobufjs/index.d.ts +2741 -2741
- package/node_modules/protobufjs/index.js +4 -4
- package/node_modules/protobufjs/light.d.ts +2 -2
- package/node_modules/protobufjs/light.js +3 -3
- package/node_modules/protobufjs/minimal.d.ts +2 -2
- package/node_modules/protobufjs/minimal.js +4 -4
- package/node_modules/protobufjs/package.json +111 -111
- package/node_modules/protobufjs/scripts/postinstall.js +32 -32
- package/node_modules/protobufjs/src/common.js +399 -399
- package/node_modules/protobufjs/src/converter.js +301 -301
- package/node_modules/protobufjs/src/decoder.js +129 -129
- package/node_modules/protobufjs/src/encoder.js +100 -100
- package/node_modules/protobufjs/src/enum.js +198 -198
- package/node_modules/protobufjs/src/field.js +377 -377
- package/node_modules/protobufjs/src/index-light.js +104 -104
- package/node_modules/protobufjs/src/index-minimal.js +36 -36
- package/node_modules/protobufjs/src/index.js +12 -12
- package/node_modules/protobufjs/src/mapfield.js +126 -126
- package/node_modules/protobufjs/src/message.js +138 -138
- package/node_modules/protobufjs/src/method.js +160 -160
- package/node_modules/protobufjs/src/namespace.js +433 -433
- package/node_modules/protobufjs/src/object.js +243 -243
- package/node_modules/protobufjs/src/oneof.js +203 -203
- package/node_modules/protobufjs/src/parse.js +889 -872
- package/node_modules/protobufjs/src/reader.js +416 -416
- package/node_modules/protobufjs/src/reader_buffer.js +51 -51
- package/node_modules/protobufjs/src/root.js +368 -368
- package/node_modules/protobufjs/src/roots.js +18 -18
- package/node_modules/protobufjs/src/rpc/service.js +142 -142
- package/node_modules/protobufjs/src/rpc.js +36 -36
- package/node_modules/protobufjs/src/service.js +167 -167
- package/node_modules/protobufjs/src/tokenize.js +416 -416
- package/node_modules/protobufjs/src/type.js +589 -589
- package/node_modules/protobufjs/src/types.js +196 -196
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
- package/node_modules/protobufjs/src/util/longbits.js +200 -200
- package/node_modules/protobufjs/src/util/minimal.js +438 -438
- package/node_modules/protobufjs/src/util.js +212 -212
- package/node_modules/protobufjs/src/verifier.js +176 -176
- package/node_modules/protobufjs/src/wrappers.js +102 -102
- package/node_modules/protobufjs/src/writer.js +465 -465
- package/node_modules/protobufjs/src/writer_buffer.js +85 -85
- package/node_modules/protobufjs/tsconfig.json +7 -7
- package/node_modules/set-function-length/CHANGELOG.md +11 -0
- package/node_modules/set-function-length/env.d.ts +9 -6
- package/node_modules/set-function-length/env.js +1 -0
- package/node_modules/set-function-length/index.d.ts +6 -6
- package/node_modules/set-function-length/index.js +1 -3
- package/node_modules/set-function-length/package.json +11 -13
- package/node_modules/set-function-length/tsconfig.json +7 -57
- package/node_modules/uuid/CHANGELOG.md +18 -0
- package/node_modules/uuid/README.md +134 -16
- package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
- package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
- package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
- package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
- package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
- package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
- package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
- package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
- package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
- package/node_modules/uuid/dist/esm-browser/index.js +9 -4
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
- package/node_modules/uuid/dist/esm-browser/native.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
- package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -3
- package/node_modules/uuid/dist/esm-node/index.js +9 -4
- package/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/node_modules/uuid/dist/esm-node/md5.js +1 -4
- package/node_modules/uuid/dist/esm-node/native.js +1 -1
- package/node_modules/uuid/dist/esm-node/parse.js +11 -9
- package/node_modules/uuid/dist/esm-node/regex.js +1 -1
- package/node_modules/uuid/dist/esm-node/rng.js +1 -3
- package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
- package/node_modules/uuid/dist/esm-node/v1.js +66 -36
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-node/v35.js +8 -19
- package/node_modules/uuid/dist/esm-node/v4.js +4 -8
- package/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/node_modules/uuid/dist/esm-node/validate.js +0 -2
- package/node_modules/uuid/dist/esm-node/version.js +0 -3
- package/node_modules/uuid/dist/index.js +40 -15
- package/node_modules/uuid/dist/max.js +7 -0
- package/node_modules/uuid/dist/md5-browser.js +8 -31
- package/node_modules/uuid/dist/md5.js +4 -10
- package/node_modules/uuid/dist/native-browser.js +2 -3
- package/node_modules/uuid/dist/native.js +5 -9
- package/node_modules/uuid/dist/nil.js +1 -2
- package/node_modules/uuid/dist/parse.js +13 -14
- package/node_modules/uuid/dist/regex.js +1 -2
- package/node_modules/uuid/dist/rng-browser.js +1 -3
- package/node_modules/uuid/dist/rng.js +3 -10
- package/node_modules/uuid/dist/sha1-browser.js +1 -23
- package/node_modules/uuid/dist/sha1.js +4 -10
- package/node_modules/uuid/dist/stringify.js +8 -14
- package/node_modules/uuid/dist/uuid-bin.js +12 -22
- package/node_modules/uuid/dist/v1.js +66 -42
- package/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/v3.js +2 -7
- package/node_modules/uuid/dist/v35.js +11 -28
- package/node_modules/uuid/dist/v4.js +6 -17
- package/node_modules/uuid/dist/v5.js +2 -7
- package/node_modules/uuid/dist/v6.js +38 -0
- package/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/v7.js +152 -0
- package/node_modules/uuid/dist/validate.js +2 -7
- package/node_modules/uuid/dist/version.js +2 -8
- package/node_modules/uuid/package.json +41 -34
- package/node_modules/uuid/wrapper.mjs +5 -0
- package/package.json +6 -6
- package/tak-ingest.js +1 -1
- package/tak-registration.js +8 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -954
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -944
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/set-function-length/env.d.ts.map +0 -1
- package/node_modules/set-function-length/index.d.ts.map +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
const Constants = {
|
|
2
|
+
space: 32,
|
|
3
|
+
tab: 9
|
|
4
|
+
}
|
|
5
|
+
class BufferSource{
|
|
6
|
+
constructor(bytesArr){
|
|
7
|
+
this.line = 1;
|
|
8
|
+
this.cols = 0;
|
|
9
|
+
this.buffer = bytesArr;
|
|
10
|
+
this.startIndex = 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
readCh() {
|
|
16
|
+
return String.fromCharCode(this.buffer[this.startIndex++]);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
readChAt(index) {
|
|
20
|
+
return String.fromCharCode(this.buffer[this.startIndex+index]);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
readStr(n,from){
|
|
24
|
+
if(typeof from === "undefined") from = this.startIndex;
|
|
25
|
+
return this.buffer.slice(from, from + n).toString();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
readUpto(stopStr) {
|
|
29
|
+
const inputLength = this.buffer.length;
|
|
30
|
+
const stopLength = stopStr.length;
|
|
31
|
+
const stopBuffer = Buffer.from(stopStr);
|
|
32
|
+
|
|
33
|
+
for (let i = this.startIndex; i < inputLength; i++) {
|
|
34
|
+
let match = true;
|
|
35
|
+
for (let j = 0; j < stopLength; j++) {
|
|
36
|
+
if (this.buffer[i + j] !== stopBuffer[j]) {
|
|
37
|
+
match = false;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (match) {
|
|
43
|
+
const result = this.buffer.slice(this.startIndex, i).toString();
|
|
44
|
+
this.startIndex = i + stopLength;
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
throw new Error(`Unexpected end of source. Reading '${stopStr}'`);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
readUptoCloseTag(stopStr) { //stopStr: "</tagname"
|
|
53
|
+
const inputLength = this.buffer.length;
|
|
54
|
+
const stopLength = stopStr.length;
|
|
55
|
+
const stopBuffer = Buffer.from(stopStr);
|
|
56
|
+
let stopIndex = 0;
|
|
57
|
+
//0: non-matching, 1: matching stop string, 2: matching closing
|
|
58
|
+
let match = 0;
|
|
59
|
+
|
|
60
|
+
for (let i = this.startIndex; i < inputLength; i++) {
|
|
61
|
+
if(match === 1){//initial part matched
|
|
62
|
+
if(stopIndex === 0) stopIndex = i;
|
|
63
|
+
if(this.buffer[i] === Constants.space || this.buffer[i] === Constants.tab) continue;
|
|
64
|
+
else if(this.buffer[i] === '>'){ //TODO: if it should be equivalent ASCII
|
|
65
|
+
match = 2;
|
|
66
|
+
//tag boundary found
|
|
67
|
+
// this.startIndex
|
|
68
|
+
}
|
|
69
|
+
}else{
|
|
70
|
+
match = 1;
|
|
71
|
+
for (let j = 0; j < stopLength; j++) {
|
|
72
|
+
if (this.buffer[i + j] !== stopBuffer[j]) {
|
|
73
|
+
match = 0;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (match === 2) {//matched closing part
|
|
79
|
+
const result = this.buffer.slice(this.startIndex, stopIndex - 1 ).toString();
|
|
80
|
+
this.startIndex = i + 1;
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
throw new Error(`Unexpected end of source. Reading '${stopStr}'`);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
readFromBuffer(n, shouldUpdate) {
|
|
89
|
+
let ch;
|
|
90
|
+
if (n === 1) {
|
|
91
|
+
ch = this.buffer[this.startIndex];
|
|
92
|
+
if (ch === 10) {
|
|
93
|
+
this.line++;
|
|
94
|
+
this.cols = 1;
|
|
95
|
+
} else {
|
|
96
|
+
this.cols++;
|
|
97
|
+
}
|
|
98
|
+
ch = String.fromCharCode(ch);
|
|
99
|
+
} else {
|
|
100
|
+
this.cols += n;
|
|
101
|
+
ch = this.buffer.slice(this.startIndex, this.startIndex + n).toString();
|
|
102
|
+
}
|
|
103
|
+
if (shouldUpdate) this.updateBuffer(n);
|
|
104
|
+
return ch;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
updateBufferBoundary(n = 1) { //n: number of characters read
|
|
108
|
+
this.startIndex += n;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
canRead(n){
|
|
112
|
+
n = n || this.startIndex;
|
|
113
|
+
return this.buffer.length - n + 1 > 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
module.exports = BufferSource;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
const whiteSpaces = [" ", "\n", "\t"];
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class StringSource{
|
|
5
|
+
constructor(str){
|
|
6
|
+
this.line = 1;
|
|
7
|
+
this.cols = 0;
|
|
8
|
+
this.buffer = str;
|
|
9
|
+
//a boundary pointer to indicate where from the buffer dat should be read
|
|
10
|
+
// data before this pointer can be deleted to free the memory
|
|
11
|
+
this.startIndex = 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
readCh() {
|
|
15
|
+
return this.buffer[this.startIndex++];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
readChAt(index) {
|
|
19
|
+
return this.buffer[this.startIndex+index];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
readStr(n,from){
|
|
23
|
+
if(typeof from === "undefined") from = this.startIndex;
|
|
24
|
+
return this.buffer.substring(from, from + n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
readUpto(stopStr) {
|
|
28
|
+
const inputLength = this.buffer.length;
|
|
29
|
+
const stopLength = stopStr.length;
|
|
30
|
+
|
|
31
|
+
for (let i = this.startIndex; i < inputLength; i++) {
|
|
32
|
+
let match = true;
|
|
33
|
+
for (let j = 0; j < stopLength; j++) {
|
|
34
|
+
if (this.buffer[i + j] !== stopStr[j]) {
|
|
35
|
+
match = false;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (match) {
|
|
41
|
+
const result = this.buffer.substring(this.startIndex, i);
|
|
42
|
+
this.startIndex = i + stopLength;
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
throw new Error(`Unexpected end of source. Reading '${stopStr}'`);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
readUptoCloseTag(stopStr) { //stopStr: "</tagname"
|
|
51
|
+
const inputLength = this.buffer.length;
|
|
52
|
+
const stopLength = stopStr.length;
|
|
53
|
+
let stopIndex = 0;
|
|
54
|
+
//0: non-matching, 1: matching stop string, 2: matching closing
|
|
55
|
+
let match = 0;
|
|
56
|
+
|
|
57
|
+
for (let i = this.startIndex; i < inputLength; i++) {
|
|
58
|
+
if(match === 1){//initial part matched
|
|
59
|
+
if(stopIndex === 0) stopIndex = i;
|
|
60
|
+
if(this.buffer[i] === ' ' || this.buffer[i] === '\t') continue;
|
|
61
|
+
else if(this.buffer[i] === '>'){
|
|
62
|
+
match = 2;
|
|
63
|
+
//tag boundary found
|
|
64
|
+
// this.startIndex
|
|
65
|
+
}
|
|
66
|
+
}else{
|
|
67
|
+
match = 1;
|
|
68
|
+
for (let j = 0; j < stopLength; j++) {
|
|
69
|
+
if (this.buffer[i + j] !== stopStr[j]) {
|
|
70
|
+
match = 0;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (match === 2) {//matched closing part
|
|
76
|
+
const result = this.buffer.substring(this.startIndex, stopIndex - 1 );
|
|
77
|
+
this.startIndex = i + 1;
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
throw new Error(`Unexpected end of source. Reading '${stopStr}'`);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
readFromBuffer(n, updateIndex){
|
|
86
|
+
let ch;
|
|
87
|
+
if(n===1){
|
|
88
|
+
ch = this.buffer[this.startIndex];
|
|
89
|
+
// if(ch === "\n") {
|
|
90
|
+
// this.line++;
|
|
91
|
+
// this.cols = 1;
|
|
92
|
+
// }else{
|
|
93
|
+
// this.cols++;
|
|
94
|
+
// }
|
|
95
|
+
}else{
|
|
96
|
+
ch = this.buffer.substring(this.startIndex, this.startIndex + n);
|
|
97
|
+
// if("".indexOf("\n") !== -1){
|
|
98
|
+
// //TODO: handle the scenario when there are multiple lines
|
|
99
|
+
// //TODO: col should be set to number of chars after last '\n'
|
|
100
|
+
// // this.cols = 1;
|
|
101
|
+
// }else{
|
|
102
|
+
// this.cols += n;
|
|
103
|
+
|
|
104
|
+
// }
|
|
105
|
+
}
|
|
106
|
+
if(updateIndex) this.updateBufferBoundary(n);
|
|
107
|
+
return ch;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
//TODO: rename to updateBufferReadIndex
|
|
111
|
+
|
|
112
|
+
updateBufferBoundary(n = 1) { //n: number of characters read
|
|
113
|
+
this.startIndex += n;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
canRead(n){
|
|
117
|
+
n = n || this.startIndex;
|
|
118
|
+
return this.buffer.length - n + 1 > 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
module.exports = StringSource;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
const ampEntity = { regex: /&(amp|#38|#x26);/g, val : "&"};
|
|
2
|
+
const htmlEntities = {
|
|
3
|
+
"space": { regex: /&(nbsp|#160);/g, val: " " },
|
|
4
|
+
// "lt" : { regex: /&(lt|#60);/g, val: "<" },
|
|
5
|
+
// "gt" : { regex: /&(gt|#62);/g, val: ">" },
|
|
6
|
+
// "amp" : { regex: /&(amp|#38);/g, val: "&" },
|
|
7
|
+
// "quot" : { regex: /&(quot|#34);/g, val: "\"" },
|
|
8
|
+
// "apos" : { regex: /&(apos|#39);/g, val: "'" },
|
|
9
|
+
"cent" : { regex: /&(cent|#162);/g, val: "¢" },
|
|
10
|
+
"pound" : { regex: /&(pound|#163);/g, val: "£" },
|
|
11
|
+
"yen" : { regex: /&(yen|#165);/g, val: "¥" },
|
|
12
|
+
"euro" : { regex: /&(euro|#8364);/g, val: "€" },
|
|
13
|
+
"copyright" : { regex: /&(copy|#169);/g, val: "©" },
|
|
14
|
+
"reg" : { regex: /&(reg|#174);/g, val: "®" },
|
|
15
|
+
"inr" : { regex: /&(inr|#8377);/g, val: "₹" },
|
|
16
|
+
"num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 10)) },
|
|
17
|
+
"num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 16)) },
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
class EntitiesParser{
|
|
21
|
+
constructor(replaceHtmlEntities) {
|
|
22
|
+
this.replaceHtmlEntities = replaceHtmlEntities;
|
|
23
|
+
this.docTypeEntities = {};
|
|
24
|
+
this.lastEntities = {
|
|
25
|
+
"apos" : { regex: /&(apos|#39|#x27);/g, val : "'"},
|
|
26
|
+
"gt" : { regex: /&(gt|#62|#x3E);/g, val : ">"},
|
|
27
|
+
"lt" : { regex: /&(lt|#60|#x3C);/g, val : "<"},
|
|
28
|
+
"quot" : { regex: /&(quot|#34|#x22);/g, val : "\""},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
addExternalEntities(externalEntities){
|
|
33
|
+
const entKeys = Object.keys(externalEntities);
|
|
34
|
+
for (let i = 0; i < entKeys.length; i++) {
|
|
35
|
+
const ent = entKeys[i];
|
|
36
|
+
this.addExternalEntity(ent,externalEntities[ent])
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
addExternalEntity(key,val){
|
|
40
|
+
validateEntityName(key);
|
|
41
|
+
if(val.indexOf("&") !== -1) {
|
|
42
|
+
reportWarning(`Entity ${key} is not added as '&' is found in value;`)
|
|
43
|
+
return;
|
|
44
|
+
}else{
|
|
45
|
+
this.lastEntities[ent] = {
|
|
46
|
+
regex: new RegExp("&"+key+";","g"),
|
|
47
|
+
val : val
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
addDocTypeEntities(entities){
|
|
53
|
+
const entKeys = Object.keys(entities);
|
|
54
|
+
for (let i = 0; i < entKeys.length; i++) {
|
|
55
|
+
const ent = entKeys[i];
|
|
56
|
+
this.docTypeEntities[ent] = {
|
|
57
|
+
regex: new RegExp("&"+ent+";","g"),
|
|
58
|
+
val : entities[ent]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
parse(val){
|
|
64
|
+
return this.replaceEntitiesValue(val)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 1. Replace DOCTYPE entities
|
|
69
|
+
* 2. Replace external entities
|
|
70
|
+
* 3. Replace HTML entities if asked
|
|
71
|
+
* @param {string} val
|
|
72
|
+
*/
|
|
73
|
+
replaceEntitiesValue(val){
|
|
74
|
+
if(typeof val === "string" && val.length > 0){
|
|
75
|
+
for(let entityName in this.docTypeEntities){
|
|
76
|
+
const entity = this.docTypeEntities[entityName];
|
|
77
|
+
val = val.replace( entity.regx, entity.val);
|
|
78
|
+
}
|
|
79
|
+
for(let entityName in this.lastEntities){
|
|
80
|
+
const entity = this.lastEntities[entityName];
|
|
81
|
+
val = val.replace( entity.regex, entity.val);
|
|
82
|
+
}
|
|
83
|
+
if(this.replaceHtmlEntities){
|
|
84
|
+
for(let entityName in htmlEntities){
|
|
85
|
+
const entity = htmlEntities[entityName];
|
|
86
|
+
val = val.replace( entity.regex, entity.val);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
val = val.replace( ampEntity.regex, ampEntity.val);
|
|
90
|
+
}
|
|
91
|
+
return val;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
//an entity name should not contains special characters that may be used in regex
|
|
96
|
+
//Eg !?\\\/[]$%{}^&*()<>
|
|
97
|
+
const specialChar = "!?\\\/[]$%{}^&*()<>|+";
|
|
98
|
+
|
|
99
|
+
function validateEntityName(name){
|
|
100
|
+
for (let i = 0; i < specialChar.length; i++) {
|
|
101
|
+
const ch = specialChar[i];
|
|
102
|
+
if(name.indexOf(ch) !== -1) throw new Error(`Invalid character ${ch} in entity name`);
|
|
103
|
+
}
|
|
104
|
+
return name;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
module.exports = EntitiesParser;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class boolParser{
|
|
2
|
+
constructor(trueList, falseList){
|
|
3
|
+
if(trueList)
|
|
4
|
+
this.trueList = trueList;
|
|
5
|
+
else
|
|
6
|
+
this.trueList = ["true"];
|
|
7
|
+
|
|
8
|
+
if(falseList)
|
|
9
|
+
this.falseList = falseList;
|
|
10
|
+
else
|
|
11
|
+
this.falseList = ["false"];
|
|
12
|
+
}
|
|
13
|
+
parse(val){
|
|
14
|
+
if (typeof val === 'string') {
|
|
15
|
+
//TODO: performance: don't convert
|
|
16
|
+
const temp = val.toLowerCase();
|
|
17
|
+
if(this.trueList.indexOf(temp) !== -1) return true;
|
|
18
|
+
else if(this.falseList.indexOf(temp) !== -1 ) return false;
|
|
19
|
+
}
|
|
20
|
+
return val;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
module.exports = boolParser;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function boolParserExt(val){
|
|
2
|
+
if(isArray(val)){
|
|
3
|
+
for (let i = 0; i < val.length; i++) {
|
|
4
|
+
val[i] = parse(val[i])
|
|
5
|
+
}
|
|
6
|
+
}else{
|
|
7
|
+
val = parse(val)
|
|
8
|
+
}
|
|
9
|
+
return val;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function parse(val){
|
|
13
|
+
if (typeof val === 'string') {
|
|
14
|
+
const temp = val.toLowerCase();
|
|
15
|
+
if(temp === 'true' || temp ==="yes" || temp==="1") return true;
|
|
16
|
+
else if(temp === 'false' || temp ==="no" || temp==="0") return false;
|
|
17
|
+
}
|
|
18
|
+
return val;
|
|
19
|
+
}
|
|
20
|
+
module.exports = boolParserExt;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const localeMap = {
|
|
3
|
+
"$":"en-US",
|
|
4
|
+
"€":"de-DE",
|
|
5
|
+
"£":"en-GB",
|
|
6
|
+
"¥":"ja-JP",
|
|
7
|
+
"₹":"en-IN",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const currencyCheckRegex = /^\s*(?:-|\+)?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d{1,2})?\s*(?:\$|€|¥|₹)?\s*$/u;
|
|
11
|
+
|
|
12
|
+
class CurrencyParser{
|
|
13
|
+
constructor(options){
|
|
14
|
+
this.options = options;
|
|
15
|
+
}
|
|
16
|
+
parse(val){
|
|
17
|
+
if (typeof val === 'string') {
|
|
18
|
+
if(val.indexOf(",,") !== -1 && val.indexOf(".." !== -1)){
|
|
19
|
+
const match = val.match(currencyCheckRegex);
|
|
20
|
+
if(match){
|
|
21
|
+
const locale = this.options.locale || localeMap[match[2]||match[5]||"₹"];
|
|
22
|
+
const formatter = new Intl.NumberFormat(locale)
|
|
23
|
+
val = val.replace(/[^0-9,.]/g, '').trim();
|
|
24
|
+
val = Number(val.replace(formatter.format(1000)[1], ''));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return val;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
module.exports = CurrencyParser;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const toNumber = require("strnum");
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class numParser{
|
|
5
|
+
constructor(options){
|
|
6
|
+
this.options = options;
|
|
7
|
+
}
|
|
8
|
+
parse(val){
|
|
9
|
+
if (typeof val === 'string') {
|
|
10
|
+
val = toNumber(val,this.options);
|
|
11
|
+
}
|
|
12
|
+
return val;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = numParser;
|
|
@@ -103,6 +103,8 @@ exports.validate = function (xmlData, options) {
|
|
|
103
103
|
return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' doesn't have proper closing.", getLineNumberForPosition(xmlData, i));
|
|
104
104
|
} else if (attrStr.trim().length > 0) {
|
|
105
105
|
return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
106
|
+
} else if (tags.length === 0) {
|
|
107
|
+
return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
106
108
|
} else {
|
|
107
109
|
const otg = tags.pop();
|
|
108
110
|
if (tagName !== otg.tagName) {
|
|
@@ -40,6 +40,8 @@ class OrderedObjParser{
|
|
|
40
40
|
"copyright" : { regex: /&(copy|#169);/g, val: "©" },
|
|
41
41
|
"reg" : { regex: /&(reg|#174);/g, val: "®" },
|
|
42
42
|
"inr" : { regex: /&(inr|#8377);/g, val: "₹" },
|
|
43
|
+
"num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 10)) },
|
|
44
|
+
"num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 16)) },
|
|
43
45
|
};
|
|
44
46
|
this.addExternalEntities = addExternalEntities;
|
|
45
47
|
this.parseXml = parseXml;
|
|
@@ -265,14 +267,13 @@ const parseXml = function(xmlData) {
|
|
|
265
267
|
|
|
266
268
|
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
267
269
|
|
|
270
|
+
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
|
|
271
|
+
if(val == undefined) val = "";
|
|
272
|
+
|
|
268
273
|
//cdata should be set even if it is 0 length string
|
|
269
274
|
if(this.options.cdataPropName){
|
|
270
|
-
// let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true);
|
|
271
|
-
// if(!val) val = "";
|
|
272
275
|
currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);
|
|
273
276
|
}else{
|
|
274
|
-
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true);
|
|
275
|
-
if(val == undefined) val = "";
|
|
276
277
|
currentNode.add(this.options.textNodeName, val);
|
|
277
278
|
}
|
|
278
279
|
|
|
@@ -310,10 +311,18 @@ const parseXml = function(xmlData) {
|
|
|
310
311
|
let tagContent = "";
|
|
311
312
|
//self-closing tag
|
|
312
313
|
if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){
|
|
314
|
+
if(tagName[tagName.length - 1] === "/"){ //remove trailing '/'
|
|
315
|
+
tagName = tagName.substr(0, tagName.length - 1);
|
|
316
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
|
317
|
+
tagExp = tagName;
|
|
318
|
+
}else{
|
|
319
|
+
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
320
|
+
}
|
|
313
321
|
i = result.closeIndex;
|
|
314
322
|
}
|
|
315
323
|
//unpaired tag
|
|
316
324
|
else if(this.options.unpairedTags.indexOf(tagName) !== -1){
|
|
325
|
+
|
|
317
326
|
i = result.closeIndex;
|
|
318
327
|
}
|
|
319
328
|
//normal tag
|
|
@@ -461,7 +461,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
461
461
|
redirectUrl.protocol !== "https:" ||
|
|
462
462
|
redirectUrl.host !== currentHost &&
|
|
463
463
|
!isSubdomain(redirectUrl.host, currentHost)) {
|
|
464
|
-
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
464
|
+
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
// Evaluate the beforeRedirect callback
|
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v2.0.2](https://github.com/inspect-js/hasOwn/compare/v2.0.1...v2.0.2) - 2024-03-10
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [types] use shared config [`68e9d4d`](https://github.com/inspect-js/hasOwn/commit/68e9d4dab6facb4f05f02c6baea94a3f2a4e44b2)
|
|
13
|
+
- [actions] remove redundant finisher; use reusable workflow [`241a68e`](https://github.com/inspect-js/hasOwn/commit/241a68e13ea1fe52bec5ba7f74144befc31fae7b)
|
|
14
|
+
- [Tests] increase coverage [`4125c0d`](https://github.com/inspect-js/hasOwn/commit/4125c0d6121db56ae30e38346dfb0c000b04f0a7)
|
|
15
|
+
- [Tests] skip `npm ls` in old node due to TS [`01b9282`](https://github.com/inspect-js/hasOwn/commit/01b92822f9971dea031eafdd14767df41d61c202)
|
|
16
|
+
- [types] improve predicate type [`d340f85`](https://github.com/inspect-js/hasOwn/commit/d340f85ce02e286ef61096cbbb6697081d40a12b)
|
|
17
|
+
- [Dev Deps] update `tape` [`70089fc`](https://github.com/inspect-js/hasOwn/commit/70089fcf544e64acc024cbe60f5a9b00acad86de)
|
|
18
|
+
- [Tests] use `@arethetypeswrong/cli` [`50b272c`](https://github.com/inspect-js/hasOwn/commit/50b272c829f40d053a3dd91c9796e0ac0b2af084)
|
|
19
|
+
|
|
8
20
|
## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
|
|
9
21
|
|
|
10
22
|
### Commits
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function hasOwn<
|
|
1
|
+
declare function hasOwn<O, K extends PropertyKey, V = unknown>(o: O, p: K): o is O & Record<K, V>;
|
|
2
2
|
|
|
3
|
-
export = hasOwn;
|
|
3
|
+
export = hasOwn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hasown",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "A robust, ES3 compatible, \"has own property\" predicate.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"postlint": "npm run tsc",
|
|
19
19
|
"pretest": "npm run lint",
|
|
20
20
|
"tsc": "tsc -p .",
|
|
21
|
+
"posttsc": "attw -P",
|
|
21
22
|
"tests-only": "nyc tape 'test/**/*.js'",
|
|
22
23
|
"test": "npm run tests-only",
|
|
23
24
|
"posttest": "aud --production",
|
|
@@ -50,7 +51,9 @@
|
|
|
50
51
|
"function-bind": "^1.1.2"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
54
|
+
"@arethetypeswrong/cli": "^0.15.1",
|
|
53
55
|
"@ljharb/eslint-config": "^21.1.0",
|
|
56
|
+
"@ljharb/tsconfig": "^0.2.0",
|
|
54
57
|
"@types/function-bind": "^1.1.10",
|
|
55
58
|
"@types/mock-property": "^1.0.2",
|
|
56
59
|
"@types/tape": "^5.6.4",
|
|
@@ -63,7 +66,7 @@
|
|
|
63
66
|
"npmignore": "^0.3.1",
|
|
64
67
|
"nyc": "^10.3.2",
|
|
65
68
|
"safe-publish-latest": "^2.0.0",
|
|
66
|
-
"tape": "^5.7.
|
|
69
|
+
"tape": "^5.7.5",
|
|
67
70
|
"typescript": "next"
|
|
68
71
|
},
|
|
69
72
|
"engines": {
|
|
@@ -1,49 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
|
|
7
|
-
/* Language and Environment */
|
|
8
|
-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
9
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
10
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
11
|
-
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
12
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
13
|
-
|
|
14
|
-
/* Modules */
|
|
15
|
-
"module": "commonjs", /* Specify what module code is generated. */
|
|
16
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
17
|
-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
18
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
19
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
20
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
21
|
-
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
22
|
-
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
23
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
24
|
-
|
|
25
|
-
/* JavaScript Support */
|
|
26
|
-
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
27
|
-
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
28
|
-
"maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
29
|
-
|
|
30
|
-
/* Emit */
|
|
31
|
-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
32
|
-
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
33
|
-
"noEmit": true, /* Disable emitting files from a compilation. */
|
|
34
|
-
|
|
35
|
-
/* Interop Constraints */
|
|
36
|
-
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
37
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
38
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
39
|
-
|
|
40
|
-
/* Type Checking */
|
|
41
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
42
|
-
|
|
43
|
-
/* Completeness */
|
|
44
|
-
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
45
|
-
},
|
|
2
|
+
"extends": "@ljharb/tsconfig",
|
|
46
3
|
"exclude": [
|
|
47
|
-
"coverage"
|
|
48
|
-
]
|
|
4
|
+
"coverage",
|
|
5
|
+
],
|
|
49
6
|
}
|