node-red-contrib-tak-registration 0.11.5 → 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 +37 -36
- 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 +139 -72
- package/node_modules/@types/node/dgram.d.ts +24 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +365 -2
- 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 +72 -46
- package/node_modules/@types/node/globals.d.ts +27 -0
- package/node_modules/@types/node/http.d.ts +75 -55
- 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/module.d.ts +14 -0
- package/node_modules/@types/node/net.d.ts +66 -16
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +320 -54
- package/node_modules/@types/node/process.d.ts +265 -50
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +21 -9
- 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 +18 -1
- package/node_modules/@types/node/stream.d.ts +62 -56
- package/node_modules/@types/node/string_decoder.d.ts +5 -5
- package/node_modules/@types/node/test.d.ts +445 -109
- 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 +40 -33
- 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 +73 -48
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +183 -10
- package/node_modules/@types/node/vm.d.ts +43 -22
- package/node_modules/@types/node/wasi.d.ts +38 -15
- 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 +873 -711
- package/node_modules/axios/README.md +98 -8
- package/node_modules/axios/dist/axios.js +1461 -350
- 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 +710 -306
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +710 -306
- 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 +628 -250
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +6 -3
- package/node_modules/axios/index.d.ts +6 -3
- 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 +7 -3
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +28 -1
- 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/combineURLs.js +1 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -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/call-bind/CHANGELOG.md +16 -0
- package/node_modules/call-bind/index.js +2 -11
- package/node_modules/call-bind/package.json +11 -6
- package/node_modules/define-data-property/CHANGELOG.md +29 -0
- package/node_modules/define-data-property/index.d.ts +12 -3
- package/node_modules/define-data-property/index.js +4 -16
- package/node_modules/define-data-property/package.json +26 -33
- package/node_modules/define-data-property/test/index.js +10 -10
- 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 +15 -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 +16 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +55 -0
- package/node_modules/es-define-property/tsconfig.json +50 -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/fast-xml-parser/CHANGELOG.md +17 -0
- package/node_modules/fast-xml-parser/README.md +9 -15
- package/node_modules/fast-xml-parser/package.json +4 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +365 -71
- 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 +18 -9
- package/node_modules/follow-redirects/index.js +115 -76
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
- package/node_modules/get-intrinsic/index.js +15 -7
- package/node_modules/get-intrinsic/package.json +12 -12
- package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
- package/node_modules/has-property-descriptors/index.js +3 -14
- package/node_modules/has-property-descriptors/package.json +5 -5
- package/node_modules/has-proto/CHANGELOG.md +15 -0
- package/node_modules/has-proto/index.d.ts +3 -0
- package/node_modules/has-proto/index.js +5 -1
- package/node_modules/has-proto/package.json +9 -5
- package/node_modules/has-proto/tsconfig.json +49 -0
- package/node_modules/has-tostringtag/.eslintrc +0 -6
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +1 -0
- package/node_modules/has-tostringtag/package.json +37 -13
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +1 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
- package/node_modules/has-tostringtag/test/tests.js +2 -1
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/index.d.ts +3 -3
- package/node_modules/hasown/index.js +1 -1
- package/node_modules/hasown/package.json +16 -15
- 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/polygon-clipping/README.md +29 -26
- package/node_modules/polygon-clipping/dist/polygon-clipping.cjs.js +1398 -1421
- package/node_modules/polygon-clipping/dist/polygon-clipping.d.ts +13 -10
- package/node_modules/polygon-clipping/dist/polygon-clipping.esm.js +1139 -1427
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.js +1770 -1831
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js +22 -8
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js.map +1 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/LICENSE +24 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/README.md +82 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/util.js +138 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.d.ts +49 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.js +5 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/package.json +75 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.js +908 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.js +914 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.js +280 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.js +601 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.js +2328 -0
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.min.js +1 -0
- package/node_modules/polygon-clipping/package.json +30 -25
- 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 +3 -3
- 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/regexp.prototype.flags/CHANGELOG.md +13 -0
- package/node_modules/regexp.prototype.flags/implementation.js +2 -2
- package/node_modules/regexp.prototype.flags/package.json +11 -10
- package/node_modules/regexp.prototype.flags/test/tests.js +13 -13
- package/node_modules/set-function-length/CHANGELOG.md +29 -0
- package/node_modules/set-function-length/env.d.ts +9 -0
- package/node_modules/set-function-length/env.js +10 -4
- package/node_modules/set-function-length/index.d.ts +7 -0
- package/node_modules/set-function-length/index.js +4 -3
- package/node_modules/set-function-length/package.json +29 -11
- package/node_modules/set-function-length/tsconfig.json +9 -0
- package/node_modules/set-function-name/.eslintrc +1 -0
- package/node_modules/set-function-name/CHANGELOG.md +9 -0
- package/node_modules/set-function-name/index.d.ts +5 -0
- package/node_modules/set-function-name/index.js +4 -3
- package/node_modules/set-function-name/package.json +28 -9
- package/node_modules/set-function-name/tsconfig.json +59 -0
- 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 +5 -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 -2362
- 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 -4455
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- 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 -4291
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- 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 -301
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- 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 -639
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
- 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 -350
- 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 -1382
- 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 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- 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/define-data-property/index.d.ts.map +0 -1
- package/node_modules/hasown/index.d.ts.map +0 -1
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/polygon-clipping/CHANGELOG.md +0 -129
|
@@ -4,38 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
// Adapted from Chris Veness' SHA1 code at
|
|
9
8
|
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
10
9
|
function f(s, x, y, z) {
|
|
11
10
|
switch (s) {
|
|
12
11
|
case 0:
|
|
13
12
|
return x & y ^ ~x & z;
|
|
14
|
-
|
|
15
13
|
case 1:
|
|
16
14
|
return x ^ y ^ z;
|
|
17
|
-
|
|
18
15
|
case 2:
|
|
19
16
|
return x & y ^ x & z ^ y & z;
|
|
20
|
-
|
|
21
17
|
case 3:
|
|
22
18
|
return x ^ y ^ z;
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
|
-
|
|
26
21
|
function ROTL(x, n) {
|
|
27
22
|
return x << n | x >>> 32 - n;
|
|
28
23
|
}
|
|
29
|
-
|
|
30
24
|
function sha1(bytes) {
|
|
31
25
|
const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
32
26
|
const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
33
|
-
|
|
34
27
|
if (typeof bytes === 'string') {
|
|
35
28
|
const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
36
29
|
|
|
37
30
|
bytes = [];
|
|
38
|
-
|
|
39
31
|
for (let i = 0; i < msg.length; ++i) {
|
|
40
32
|
bytes.push(msg.charCodeAt(i));
|
|
41
33
|
}
|
|
@@ -43,43 +35,33 @@ function sha1(bytes) {
|
|
|
43
35
|
// Convert Array-like to Array
|
|
44
36
|
bytes = Array.prototype.slice.call(bytes);
|
|
45
37
|
}
|
|
46
|
-
|
|
47
38
|
bytes.push(0x80);
|
|
48
39
|
const l = bytes.length / 4 + 2;
|
|
49
40
|
const N = Math.ceil(l / 16);
|
|
50
41
|
const M = new Array(N);
|
|
51
|
-
|
|
52
42
|
for (let i = 0; i < N; ++i) {
|
|
53
43
|
const arr = new Uint32Array(16);
|
|
54
|
-
|
|
55
44
|
for (let j = 0; j < 16; ++j) {
|
|
56
45
|
arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
|
|
57
46
|
}
|
|
58
|
-
|
|
59
47
|
M[i] = arr;
|
|
60
48
|
}
|
|
61
|
-
|
|
62
49
|
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
63
50
|
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
64
51
|
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
65
|
-
|
|
66
52
|
for (let i = 0; i < N; ++i) {
|
|
67
53
|
const W = new Uint32Array(80);
|
|
68
|
-
|
|
69
54
|
for (let t = 0; t < 16; ++t) {
|
|
70
55
|
W[t] = M[i][t];
|
|
71
56
|
}
|
|
72
|
-
|
|
73
57
|
for (let t = 16; t < 80; ++t) {
|
|
74
58
|
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
75
59
|
}
|
|
76
|
-
|
|
77
60
|
let a = H[0];
|
|
78
61
|
let b = H[1];
|
|
79
62
|
let c = H[2];
|
|
80
63
|
let d = H[3];
|
|
81
64
|
let e = H[4];
|
|
82
|
-
|
|
83
65
|
for (let t = 0; t < 80; ++t) {
|
|
84
66
|
const s = Math.floor(t / 20);
|
|
85
67
|
const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
|
|
@@ -89,16 +71,12 @@ function sha1(bytes) {
|
|
|
89
71
|
b = a;
|
|
90
72
|
a = T;
|
|
91
73
|
}
|
|
92
|
-
|
|
93
74
|
H[0] = H[0] + a >>> 0;
|
|
94
75
|
H[1] = H[1] + b >>> 0;
|
|
95
76
|
H[2] = H[2] + c >>> 0;
|
|
96
77
|
H[3] = H[3] + d >>> 0;
|
|
97
78
|
H[4] = H[4] + e >>> 0;
|
|
98
79
|
}
|
|
99
|
-
|
|
100
80
|
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
101
81
|
}
|
|
102
|
-
|
|
103
|
-
var _default = sha1;
|
|
104
|
-
exports.default = _default;
|
|
82
|
+
var _default = exports.default = sha1;
|
|
@@ -4,20 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
7
|
+
var _nodeCrypto = _interopRequireDefault(require("node:crypto"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
9
|
function sha1(bytes) {
|
|
13
10
|
if (Array.isArray(bytes)) {
|
|
14
11
|
bytes = Buffer.from(bytes);
|
|
15
12
|
} else if (typeof bytes === 'string') {
|
|
16
13
|
bytes = Buffer.from(bytes, 'utf8');
|
|
17
14
|
}
|
|
18
|
-
|
|
19
|
-
return _crypto.default.createHash('sha1').update(bytes).digest();
|
|
15
|
+
return _nodeCrypto.default.createHash('sha1').update(bytes).digest();
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
var _default = sha1;
|
|
23
|
-
exports.default = _default;
|
|
17
|
+
var _default = exports.default = sha1;
|
|
@@ -5,40 +5,34 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
exports.unsafeStringify = unsafeStringify;
|
|
8
|
-
|
|
9
8
|
var _validate = _interopRequireDefault(require("./validate.js"));
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
10
|
/**
|
|
14
11
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
15
12
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
16
13
|
*/
|
|
17
14
|
const byteToHex = [];
|
|
18
|
-
|
|
19
15
|
for (let i = 0; i < 256; ++i) {
|
|
20
16
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
function unsafeStringify(arr, offset = 0) {
|
|
24
19
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
25
20
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
26
|
-
|
|
21
|
+
//
|
|
22
|
+
// Note to future-self: No, you can't remove the `toLowerCase()` call.
|
|
23
|
+
// REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
|
|
24
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
27
25
|
}
|
|
28
|
-
|
|
29
26
|
function stringify(arr, offset = 0) {
|
|
30
|
-
const uuid = unsafeStringify(arr, offset);
|
|
27
|
+
const uuid = unsafeStringify(arr, offset);
|
|
28
|
+
// Consistency check for valid UUID. If this throws, it's likely due to one
|
|
31
29
|
// of the following:
|
|
32
30
|
// - One or more input array values don't map to a hex octet (leading to
|
|
33
31
|
// "undefined" in the uuid)
|
|
34
32
|
// - Invalid input values for the RFC `version` or `variant` fields
|
|
35
|
-
|
|
36
33
|
if (!(0, _validate.default)(uuid)) {
|
|
37
34
|
throw TypeError('Stringified UUID is invalid');
|
|
38
35
|
}
|
|
39
|
-
|
|
40
36
|
return uuid;
|
|
41
37
|
}
|
|
42
|
-
|
|
43
|
-
var _default = stringify;
|
|
44
|
-
exports.default = _default;
|
|
38
|
+
var _default = exports.default = stringify;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _assert = _interopRequireDefault(require("assert"));
|
|
4
|
-
|
|
5
4
|
var _v = _interopRequireDefault(require("./v1.js"));
|
|
6
|
-
|
|
7
5
|
var _v2 = _interopRequireDefault(require("./v3.js"));
|
|
8
|
-
|
|
9
6
|
var _v3 = _interopRequireDefault(require("./v4.js"));
|
|
10
|
-
|
|
11
7
|
var _v4 = _interopRequireDefault(require("./v5.js"));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
var _v5 = _interopRequireDefault(require("./v6.js"));
|
|
9
|
+
var _v6 = _interopRequireDefault(require("./v7.js"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
11
|
function usage() {
|
|
16
12
|
console.log('Usage:');
|
|
17
13
|
console.log(' uuid');
|
|
@@ -19,66 +15,60 @@ function usage() {
|
|
|
19
15
|
console.log(' uuid v3 <name> <namespace uuid>');
|
|
20
16
|
console.log(' uuid v4');
|
|
21
17
|
console.log(' uuid v5 <name> <namespace uuid>');
|
|
18
|
+
console.log(' uuid v6');
|
|
19
|
+
console.log(' uuid v7');
|
|
22
20
|
console.log(' uuid --help');
|
|
23
|
-
console.log('\nNote: <namespace uuid> may be "URL" or "DNS" to use the corresponding UUIDs defined by
|
|
21
|
+
console.log('\nNote: <namespace uuid> may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562');
|
|
24
22
|
}
|
|
25
|
-
|
|
26
23
|
const args = process.argv.slice(2);
|
|
27
|
-
|
|
28
24
|
if (args.indexOf('--help') >= 0) {
|
|
29
25
|
usage();
|
|
30
26
|
process.exit(0);
|
|
31
27
|
}
|
|
32
|
-
|
|
33
28
|
const version = args.shift() || 'v4';
|
|
34
|
-
|
|
35
29
|
switch (version) {
|
|
36
30
|
case 'v1':
|
|
37
31
|
console.log((0, _v.default)());
|
|
38
32
|
break;
|
|
39
|
-
|
|
40
33
|
case 'v3':
|
|
41
34
|
{
|
|
42
35
|
const name = args.shift();
|
|
43
36
|
let namespace = args.shift();
|
|
44
37
|
(0, _assert.default)(name != null, 'v3 name not specified');
|
|
45
38
|
(0, _assert.default)(namespace != null, 'v3 namespace not specified');
|
|
46
|
-
|
|
47
39
|
if (namespace === 'URL') {
|
|
48
40
|
namespace = _v2.default.URL;
|
|
49
41
|
}
|
|
50
|
-
|
|
51
42
|
if (namespace === 'DNS') {
|
|
52
43
|
namespace = _v2.default.DNS;
|
|
53
44
|
}
|
|
54
|
-
|
|
55
45
|
console.log((0, _v2.default)(name, namespace));
|
|
56
46
|
break;
|
|
57
47
|
}
|
|
58
|
-
|
|
59
48
|
case 'v4':
|
|
60
49
|
console.log((0, _v3.default)());
|
|
61
50
|
break;
|
|
62
|
-
|
|
63
51
|
case 'v5':
|
|
64
52
|
{
|
|
65
53
|
const name = args.shift();
|
|
66
54
|
let namespace = args.shift();
|
|
67
55
|
(0, _assert.default)(name != null, 'v5 name not specified');
|
|
68
56
|
(0, _assert.default)(namespace != null, 'v5 namespace not specified');
|
|
69
|
-
|
|
70
57
|
if (namespace === 'URL') {
|
|
71
58
|
namespace = _v4.default.URL;
|
|
72
59
|
}
|
|
73
|
-
|
|
74
60
|
if (namespace === 'DNS') {
|
|
75
61
|
namespace = _v4.default.DNS;
|
|
76
62
|
}
|
|
77
|
-
|
|
78
63
|
console.log((0, _v4.default)(name, namespace));
|
|
79
64
|
break;
|
|
80
65
|
}
|
|
81
|
-
|
|
66
|
+
case 'v6':
|
|
67
|
+
console.log((0, _v5.default)());
|
|
68
|
+
break;
|
|
69
|
+
case 'v7':
|
|
70
|
+
console.log((0, _v6.default)());
|
|
71
|
+
break;
|
|
82
72
|
default:
|
|
83
73
|
usage();
|
|
84
74
|
process.exit(1);
|
|
@@ -4,104 +4,128 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _rng = _interopRequireDefault(require("./rng.js"));
|
|
9
|
-
|
|
10
8
|
var _stringify = require("./stringify.js");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
10
|
// **`v1()` - Generate time-based UUID**
|
|
15
11
|
//
|
|
16
12
|
// Inspired by https://github.com/LiosK/UUID.js
|
|
17
13
|
// and http://docs.python.org/library/uuid.html
|
|
18
|
-
let _nodeId;
|
|
19
|
-
|
|
20
|
-
let _clockseq; // Previous uuid creation time
|
|
21
14
|
|
|
15
|
+
let _nodeId;
|
|
16
|
+
let _clockseq;
|
|
22
17
|
|
|
18
|
+
// Previous uuid creation time
|
|
23
19
|
let _lastMSecs = 0;
|
|
24
|
-
let _lastNSecs = 0;
|
|
20
|
+
let _lastNSecs = 0;
|
|
25
21
|
|
|
22
|
+
// See https://github.com/uuidjs/uuid for API details
|
|
26
23
|
function v1(options, buf, offset) {
|
|
27
24
|
let i = buf && offset || 0;
|
|
28
25
|
const b = buf || new Array(16);
|
|
29
26
|
options = options || {};
|
|
30
|
-
let node = options.node
|
|
31
|
-
let clockseq = options.clockseq
|
|
32
|
-
// specified. We do this lazily to minimize issues related to insufficient
|
|
33
|
-
// system entropy. See #189
|
|
27
|
+
let node = options.node;
|
|
28
|
+
let clockseq = options.clockseq;
|
|
34
29
|
|
|
30
|
+
// v1 only: Use cached `node` and `clockseq` values
|
|
31
|
+
if (!options._v6) {
|
|
32
|
+
if (!node) {
|
|
33
|
+
node = _nodeId;
|
|
34
|
+
}
|
|
35
|
+
if (clockseq == null) {
|
|
36
|
+
clockseq = _clockseq;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Handle cases where we need entropy. We do this lazily to minimize issues
|
|
41
|
+
// related to insufficient system entropy. See #189
|
|
35
42
|
if (node == null || clockseq == null) {
|
|
36
43
|
const seedBytes = options.random || (options.rng || _rng.default)();
|
|
37
44
|
|
|
45
|
+
// Randomize node
|
|
38
46
|
if (node == null) {
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
node = [seedBytes[0], seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
48
|
+
|
|
49
|
+
// v1 only: cache node value for reuse
|
|
50
|
+
if (!_nodeId && !options._v6) {
|
|
51
|
+
// per RFC4122 4.5: Set MAC multicast bit (v1 only)
|
|
52
|
+
node[0] |= 0x01; // Set multicast bit
|
|
53
|
+
|
|
54
|
+
_nodeId = node;
|
|
55
|
+
}
|
|
41
56
|
}
|
|
42
57
|
|
|
58
|
+
// Randomize clockseq
|
|
43
59
|
if (clockseq == null) {
|
|
44
60
|
// Per 4.2.2, randomize (14 bit) clockseq
|
|
45
|
-
clockseq =
|
|
61
|
+
clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
62
|
+
if (_clockseq === undefined && !options._v6) {
|
|
63
|
+
_clockseq = clockseq;
|
|
64
|
+
}
|
|
46
65
|
}
|
|
47
|
-
}
|
|
48
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
49
|
-
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
50
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
66
|
+
}
|
|
51
67
|
|
|
68
|
+
// v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch,
|
|
69
|
+
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is
|
|
70
|
+
// handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
71
|
+
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
72
|
+
let msecs = options.msecs !== undefined ? options.msecs : Date.now();
|
|
52
73
|
|
|
53
|
-
|
|
74
|
+
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
54
75
|
// cycle to simulate higher resolution clock
|
|
76
|
+
let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
|
55
77
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
78
|
+
// Time since last uuid creation (in msecs)
|
|
79
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000;
|
|
59
80
|
|
|
81
|
+
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
60
82
|
if (dt < 0 && options.clockseq === undefined) {
|
|
61
83
|
clockseq = clockseq + 1 & 0x3fff;
|
|
62
|
-
}
|
|
63
|
-
// time interval
|
|
64
|
-
|
|
84
|
+
}
|
|
65
85
|
|
|
86
|
+
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
87
|
+
// time interval
|
|
66
88
|
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
67
89
|
nsecs = 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
90
|
+
}
|
|
70
91
|
|
|
92
|
+
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
71
93
|
if (nsecs >= 10000) {
|
|
72
94
|
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
73
95
|
}
|
|
74
|
-
|
|
75
96
|
_lastMSecs = msecs;
|
|
76
97
|
_lastNSecs = nsecs;
|
|
77
|
-
_clockseq = clockseq;
|
|
98
|
+
_clockseq = clockseq;
|
|
78
99
|
|
|
79
|
-
|
|
100
|
+
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
101
|
+
msecs += 12219292800000;
|
|
80
102
|
|
|
103
|
+
// `time_low`
|
|
81
104
|
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
82
105
|
b[i++] = tl >>> 24 & 0xff;
|
|
83
106
|
b[i++] = tl >>> 16 & 0xff;
|
|
84
107
|
b[i++] = tl >>> 8 & 0xff;
|
|
85
|
-
b[i++] = tl & 0xff;
|
|
108
|
+
b[i++] = tl & 0xff;
|
|
86
109
|
|
|
110
|
+
// `time_mid`
|
|
87
111
|
const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
88
112
|
b[i++] = tmh >>> 8 & 0xff;
|
|
89
|
-
b[i++] = tmh & 0xff;
|
|
113
|
+
b[i++] = tmh & 0xff;
|
|
90
114
|
|
|
115
|
+
// `time_high_and_version`
|
|
91
116
|
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
117
|
+
b[i++] = tmh >>> 16 & 0xff;
|
|
92
118
|
|
|
93
|
-
|
|
119
|
+
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
120
|
+
b[i++] = clockseq >>> 8 | 0x80;
|
|
94
121
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
b[i++] = clockseq & 0xff; // `node`
|
|
122
|
+
// `clock_seq_low`
|
|
123
|
+
b[i++] = clockseq & 0xff;
|
|
98
124
|
|
|
125
|
+
// `node`
|
|
99
126
|
for (let n = 0; n < 6; ++n) {
|
|
100
127
|
b[i + n] = node[n];
|
|
101
128
|
}
|
|
102
|
-
|
|
103
129
|
return buf || (0, _stringify.unsafeStringify)(b);
|
|
104
130
|
}
|
|
105
|
-
|
|
106
|
-
var _default = v1;
|
|
107
|
-
exports.default = _default;
|
|
131
|
+
var _default = exports.default = v1;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = v1ToV6;
|
|
7
|
+
var _parse = _interopRequireDefault(require("./parse.js"));
|
|
8
|
+
var _stringify = require("./stringify.js");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
/**
|
|
11
|
+
* Convert a v1 UUID to a v6 UUID
|
|
12
|
+
*
|
|
13
|
+
* @param {string|Uint8Array} uuid - The v1 UUID to convert to v6
|
|
14
|
+
* @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg
|
|
15
|
+
* (string or Uint8Array)
|
|
16
|
+
*/
|
|
17
|
+
function v1ToV6(uuid) {
|
|
18
|
+
const v1Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid;
|
|
19
|
+
const v6Bytes = _v1ToV6(v1Bytes);
|
|
20
|
+
return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Do the field transformation needed for v1 -> v6
|
|
24
|
+
function _v1ToV6(v1Bytes, randomize = false) {
|
|
25
|
+
return Uint8Array.of((v1Bytes[6] & 0x0f) << 4 | v1Bytes[7] >> 4 & 0x0f, (v1Bytes[7] & 0x0f) << 4 | (v1Bytes[4] & 0xf0) >> 4, (v1Bytes[4] & 0x0f) << 4 | (v1Bytes[5] & 0xf0) >> 4, (v1Bytes[5] & 0x0f) << 4 | (v1Bytes[0] & 0xf0) >> 4, (v1Bytes[0] & 0x0f) << 4 | (v1Bytes[1] & 0xf0) >> 4, (v1Bytes[1] & 0x0f) << 4 | (v1Bytes[2] & 0xf0) >> 4, 0x60 | v1Bytes[2] & 0x0f, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
|
|
26
|
+
}
|
|
@@ -4,13 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _v = _interopRequireDefault(require("./v35.js"));
|
|
9
|
-
|
|
10
8
|
var _md = _interopRequireDefault(require("./md5.js"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
10
|
const v3 = (0, _v.default)('v3', 0x30, _md.default);
|
|
15
|
-
var _default = v3;
|
|
16
|
-
exports.default = _default;
|
|
11
|
+
var _default = exports.default = v3;
|
|
@@ -5,75 +5,58 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.URL = exports.DNS = void 0;
|
|
7
7
|
exports.default = v35;
|
|
8
|
-
|
|
9
8
|
var _stringify = require("./stringify.js");
|
|
10
|
-
|
|
11
9
|
var _parse = _interopRequireDefault(require("./parse.js"));
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
11
|
function stringToBytes(str) {
|
|
16
12
|
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
17
13
|
|
|
18
14
|
const bytes = [];
|
|
19
|
-
|
|
20
15
|
for (let i = 0; i < str.length; ++i) {
|
|
21
16
|
bytes.push(str.charCodeAt(i));
|
|
22
17
|
}
|
|
23
|
-
|
|
24
18
|
return bytes;
|
|
25
19
|
}
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
exports.DNS = DNS;
|
|
29
|
-
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
30
|
-
exports.URL = URL;
|
|
31
|
-
|
|
20
|
+
const DNS = exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
21
|
+
const URL = exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
32
22
|
function v35(name, version, hashfunc) {
|
|
33
23
|
function generateUUID(value, namespace, buf, offset) {
|
|
34
24
|
var _namespace;
|
|
35
|
-
|
|
36
25
|
if (typeof value === 'string') {
|
|
37
26
|
value = stringToBytes(value);
|
|
38
27
|
}
|
|
39
|
-
|
|
40
28
|
if (typeof namespace === 'string') {
|
|
41
29
|
namespace = (0, _parse.default)(namespace);
|
|
42
30
|
}
|
|
43
|
-
|
|
44
31
|
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
45
32
|
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
46
|
-
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Compute hash of namespace and value, Per 4.3
|
|
47
36
|
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
48
37
|
// hashfunc([...namespace, ... value])`
|
|
49
|
-
|
|
50
|
-
|
|
51
38
|
let bytes = new Uint8Array(16 + value.length);
|
|
52
39
|
bytes.set(namespace);
|
|
53
40
|
bytes.set(value, namespace.length);
|
|
54
41
|
bytes = hashfunc(bytes);
|
|
55
42
|
bytes[6] = bytes[6] & 0x0f | version;
|
|
56
43
|
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
57
|
-
|
|
58
44
|
if (buf) {
|
|
59
45
|
offset = offset || 0;
|
|
60
|
-
|
|
61
46
|
for (let i = 0; i < 16; ++i) {
|
|
62
47
|
buf[offset + i] = bytes[i];
|
|
63
48
|
}
|
|
64
|
-
|
|
65
49
|
return buf;
|
|
66
50
|
}
|
|
67
|
-
|
|
68
51
|
return (0, _stringify.unsafeStringify)(bytes);
|
|
69
|
-
}
|
|
70
|
-
|
|
52
|
+
}
|
|
71
53
|
|
|
54
|
+
// Function#name is not settable on some platforms (#270)
|
|
72
55
|
try {
|
|
73
|
-
generateUUID.name = name;
|
|
74
|
-
} catch (err) {}
|
|
75
|
-
|
|
56
|
+
generateUUID.name = name;
|
|
57
|
+
} catch (err) {}
|
|
76
58
|
|
|
59
|
+
// For CommonJS default export support
|
|
77
60
|
generateUUID.DNS = DNS;
|
|
78
61
|
generateUUID.URL = URL;
|
|
79
62
|
return generateUUID;
|
|
@@ -4,40 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _native = _interopRequireDefault(require("./native.js"));
|
|
9
|
-
|
|
10
8
|
var _rng = _interopRequireDefault(require("./rng.js"));
|
|
11
|
-
|
|
12
9
|
var _stringify = require("./stringify.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
function v4(options, buf, offset) {
|
|
17
12
|
if (_native.default.randomUUID && !buf && !options) {
|
|
18
13
|
return _native.default.randomUUID();
|
|
19
14
|
}
|
|
20
|
-
|
|
21
15
|
options = options || {};
|
|
16
|
+
const rnds = options.random || (options.rng || _rng.default)();
|
|
22
17
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
26
19
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
27
|
-
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
20
|
+
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
28
21
|
|
|
22
|
+
// Copy bytes to buffer, if provided
|
|
29
23
|
if (buf) {
|
|
30
24
|
offset = offset || 0;
|
|
31
|
-
|
|
32
25
|
for (let i = 0; i < 16; ++i) {
|
|
33
26
|
buf[offset + i] = rnds[i];
|
|
34
27
|
}
|
|
35
|
-
|
|
36
28
|
return buf;
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
return (0, _stringify.unsafeStringify)(rnds);
|
|
40
31
|
}
|
|
41
|
-
|
|
42
|
-
var _default = v4;
|
|
43
|
-
exports.default = _default;
|
|
32
|
+
var _default = exports.default = v4;
|
|
@@ -4,13 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _v = _interopRequireDefault(require("./v35.js"));
|
|
9
|
-
|
|
10
8
|
var _sha = _interopRequireDefault(require("./sha1.js"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
10
|
const v5 = (0, _v.default)('v5', 0x50, _sha.default);
|
|
15
|
-
var _default = v5;
|
|
16
|
-
exports.default = _default;
|
|
11
|
+
var _default = exports.default = v5;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = v6;
|
|
7
|
+
var _stringify = require("./stringify.js");
|
|
8
|
+
var _v = _interopRequireDefault(require("./v1.js"));
|
|
9
|
+
var _v1ToV = _interopRequireDefault(require("./v1ToV6.js"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param {object} options
|
|
14
|
+
* @param {Uint8Array=} buf
|
|
15
|
+
* @param {number=} offset
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
function v6(options = {}, buf, offset = 0) {
|
|
19
|
+
// v6 is v1 with different field layout, so we start with a v1 UUID, albeit
|
|
20
|
+
// with slightly different behavior around how the clock_seq and node fields
|
|
21
|
+
// are randomized, which is why we call v1 with _v6: true.
|
|
22
|
+
let bytes = (0, _v.default)({
|
|
23
|
+
...options,
|
|
24
|
+
_v6: true
|
|
25
|
+
}, new Uint8Array(16));
|
|
26
|
+
|
|
27
|
+
// Reorder the fields to v6 layout.
|
|
28
|
+
bytes = (0, _v1ToV.default)(bytes);
|
|
29
|
+
|
|
30
|
+
// Return as a byte array if requested
|
|
31
|
+
if (buf) {
|
|
32
|
+
for (let i = 0; i < 16; i++) {
|
|
33
|
+
buf[offset + i] = bytes[i];
|
|
34
|
+
}
|
|
35
|
+
return buf;
|
|
36
|
+
}
|
|
37
|
+
return (0, _stringify.unsafeStringify)(bytes);
|
|
38
|
+
}
|