node-red-contrib-tak-registration 0.16.0 → 0.16.1
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 +8 -6
- package/node_modules/@types/node/async_hooks.d.ts +26 -6
- package/node_modules/@types/node/buffer.d.ts +7 -3
- package/node_modules/@types/node/child_process.d.ts +28 -124
- package/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/node/crypto.d.ts +95 -38
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/diagnostics_channel.d.ts +18 -13
- package/node_modules/@types/node/dns/promises.d.ts +36 -9
- package/node_modules/@types/node/dns.d.ts +89 -36
- package/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@types/node/fs/promises.d.ts +67 -40
- package/node_modules/@types/node/fs.d.ts +88 -52
- package/node_modules/@types/node/globals.d.ts +148 -351
- package/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +73 -7
- package/node_modules/@types/node/http2.d.ts +88 -15
- package/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/node/index.d.ts +13 -6
- package/node_modules/@types/node/inspector.d.ts +222 -13
- package/node_modules/@types/node/module.d.ts +153 -31
- package/node_modules/@types/node/net.d.ts +3 -6
- package/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/node/package.json +14 -84
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +24 -10
- package/node_modules/@types/node/process.d.ts +21 -11
- package/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/node/readline.d.ts +13 -13
- package/node_modules/@types/node/repl.d.ts +25 -17
- package/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/node/sqlite.d.ts +209 -3
- package/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@types/node/stream.d.ts +30 -24
- package/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +2029 -1975
- package/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/node/timers.d.ts +1 -3
- package/node_modules/@types/node/tls.d.ts +2 -48
- package/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +15 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +101 -0
- package/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/node/url.d.ts +73 -20
- package/node_modules/@types/node/util.d.ts +23 -298
- package/node_modules/@types/node/v8.d.ts +62 -32
- package/node_modules/@types/node/vm.d.ts +132 -24
- package/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +94 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +85 -26
- package/node_modules/@types/node/zlib.d.ts +13 -9
- package/node_modules/axios/CHANGELOG.md +58 -0
- package/node_modules/axios/README.md +87 -10
- package/node_modules/axios/dist/axios.js +355 -289
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +286 -213
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +286 -213
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +377 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +12 -5
- package/node_modules/axios/index.d.ts +13 -4
- package/node_modules/axios/lib/adapters/adapters.js +6 -4
- package/node_modules/axios/lib/adapters/fetch.js +221 -162
- package/node_modules/axios/lib/adapters/http.js +18 -0
- package/node_modules/axios/lib/adapters/xhr.js +11 -8
- package/node_modules/axios/lib/core/Axios.js +0 -2
- package/node_modules/axios/lib/core/AxiosError.js +10 -3
- package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -3
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
- package/node_modules/axios/lib/utils.js +5 -3
- package/node_modules/axios/package.json +18 -12
- package/node_modules/bignumber.js/CHANGELOG.md +6 -1
- package/node_modules/bignumber.js/README.md +5 -4
- package/node_modules/bignumber.js/bignumber.js +2 -2
- package/node_modules/bignumber.js/bignumber.mjs +2 -2
- package/node_modules/bignumber.js/package.json +1 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.min.js +2 -2
- package/node_modules/protobufjs/google/protobuf/descriptor.json +2 -2
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +2 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/undici-types/agent.d.ts +11 -7
- package/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +18 -16
- package/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +19 -10
- package/node_modules/undici-types/dispatcher.d.ts +119 -93
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/undici-types/eventsource.d.ts +3 -3
- package/node_modules/undici-types/fetch.d.ts +18 -16
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +21 -19
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -12
- package/node_modules/undici-types/proxy-agent.d.ts +5 -4
- package/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +50 -8
- package/node_modules/undici-types/websocket.d.ts +36 -2
- package/node_modules/uuid/README.md +8 -19
- package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
- package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
- package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
- package/node_modules/uuid/dist-node/native.js +2 -0
- package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
- package/node_modules/uuid/package.json +28 -41
- package/package.json +4 -4
- package/tak-registration.bak +557 -0
- package/tak-registration.js +8 -8
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/node/dom-events.d.ts +0 -124
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
- /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function f(s, x, y, z) {
|
|
4
|
-
switch (s) {
|
|
5
|
-
case 0:
|
|
6
|
-
return (x & y) ^ (~x & z);
|
|
7
|
-
case 1:
|
|
8
|
-
return x ^ y ^ z;
|
|
9
|
-
case 2:
|
|
10
|
-
return (x & y) ^ (x & z) ^ (y & z);
|
|
11
|
-
case 3:
|
|
12
|
-
return x ^ y ^ z;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function ROTL(x, n) {
|
|
16
|
-
return (x << n) | (x >>> (32 - n));
|
|
17
|
-
}
|
|
18
|
-
function sha1(bytes) {
|
|
19
|
-
const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
20
|
-
const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
21
|
-
const newBytes = new Uint8Array(bytes.length + 1);
|
|
22
|
-
newBytes.set(bytes);
|
|
23
|
-
newBytes[bytes.length] = 0x80;
|
|
24
|
-
bytes = newBytes;
|
|
25
|
-
const l = bytes.length / 4 + 2;
|
|
26
|
-
const N = Math.ceil(l / 16);
|
|
27
|
-
const M = new Array(N);
|
|
28
|
-
for (let i = 0; i < N; ++i) {
|
|
29
|
-
const arr = new Uint32Array(16);
|
|
30
|
-
for (let j = 0; j < 16; ++j) {
|
|
31
|
-
arr[j] =
|
|
32
|
-
(bytes[i * 64 + j * 4] << 24) |
|
|
33
|
-
(bytes[i * 64 + j * 4 + 1] << 16) |
|
|
34
|
-
(bytes[i * 64 + j * 4 + 2] << 8) |
|
|
35
|
-
bytes[i * 64 + j * 4 + 3];
|
|
36
|
-
}
|
|
37
|
-
M[i] = arr;
|
|
38
|
-
}
|
|
39
|
-
M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32);
|
|
40
|
-
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
41
|
-
M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff;
|
|
42
|
-
for (let i = 0; i < N; ++i) {
|
|
43
|
-
const W = new Uint32Array(80);
|
|
44
|
-
for (let t = 0; t < 16; ++t) {
|
|
45
|
-
W[t] = M[i][t];
|
|
46
|
-
}
|
|
47
|
-
for (let t = 16; t < 80; ++t) {
|
|
48
|
-
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
49
|
-
}
|
|
50
|
-
let a = H[0];
|
|
51
|
-
let b = H[1];
|
|
52
|
-
let c = H[2];
|
|
53
|
-
let d = H[3];
|
|
54
|
-
let e = H[4];
|
|
55
|
-
for (let t = 0; t < 80; ++t) {
|
|
56
|
-
const s = Math.floor(t / 20);
|
|
57
|
-
const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0;
|
|
58
|
-
e = d;
|
|
59
|
-
d = c;
|
|
60
|
-
c = ROTL(b, 30) >>> 0;
|
|
61
|
-
b = a;
|
|
62
|
-
a = T;
|
|
63
|
-
}
|
|
64
|
-
H[0] = (H[0] + a) >>> 0;
|
|
65
|
-
H[1] = (H[1] + b) >>> 0;
|
|
66
|
-
H[2] = (H[2] + c) >>> 0;
|
|
67
|
-
H[3] = (H[3] + d) >>> 0;
|
|
68
|
-
H[4] = (H[4] + e) >>> 0;
|
|
69
|
-
}
|
|
70
|
-
return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]);
|
|
71
|
-
}
|
|
72
|
-
exports.default = sha1;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unsafeStringify = void 0;
|
|
4
|
-
const validate_js_1 = require("./validate.js");
|
|
5
|
-
const byteToHex = [];
|
|
6
|
-
for (let i = 0; i < 256; ++i) {
|
|
7
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
8
|
-
}
|
|
9
|
-
function unsafeStringify(arr, offset = 0) {
|
|
10
|
-
return (byteToHex[arr[offset + 0]] +
|
|
11
|
-
byteToHex[arr[offset + 1]] +
|
|
12
|
-
byteToHex[arr[offset + 2]] +
|
|
13
|
-
byteToHex[arr[offset + 3]] +
|
|
14
|
-
'-' +
|
|
15
|
-
byteToHex[arr[offset + 4]] +
|
|
16
|
-
byteToHex[arr[offset + 5]] +
|
|
17
|
-
'-' +
|
|
18
|
-
byteToHex[arr[offset + 6]] +
|
|
19
|
-
byteToHex[arr[offset + 7]] +
|
|
20
|
-
'-' +
|
|
21
|
-
byteToHex[arr[offset + 8]] +
|
|
22
|
-
byteToHex[arr[offset + 9]] +
|
|
23
|
-
'-' +
|
|
24
|
-
byteToHex[arr[offset + 10]] +
|
|
25
|
-
byteToHex[arr[offset + 11]] +
|
|
26
|
-
byteToHex[arr[offset + 12]] +
|
|
27
|
-
byteToHex[arr[offset + 13]] +
|
|
28
|
-
byteToHex[arr[offset + 14]] +
|
|
29
|
-
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
30
|
-
}
|
|
31
|
-
exports.unsafeStringify = unsafeStringify;
|
|
32
|
-
function stringify(arr, offset = 0) {
|
|
33
|
-
const uuid = unsafeStringify(arr, offset);
|
|
34
|
-
if (!(0, validate_js_1.default)(uuid)) {
|
|
35
|
-
throw TypeError('Stringified UUID is invalid');
|
|
36
|
-
}
|
|
37
|
-
return uuid;
|
|
38
|
-
}
|
|
39
|
-
exports.default = stringify;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const assert = require("assert");
|
|
4
|
-
const v1_js_1 = require("./v1.js");
|
|
5
|
-
const v3_js_1 = require("./v3.js");
|
|
6
|
-
const v4_js_1 = require("./v4.js");
|
|
7
|
-
const v5_js_1 = require("./v5.js");
|
|
8
|
-
const v6_js_1 = require("./v6.js");
|
|
9
|
-
const v7_js_1 = require("./v7.js");
|
|
10
|
-
function usage() {
|
|
11
|
-
console.log('Usage:');
|
|
12
|
-
console.log(' uuid');
|
|
13
|
-
console.log(' uuid v1');
|
|
14
|
-
console.log(' uuid v3 <name> <namespace uuid>');
|
|
15
|
-
console.log(' uuid v4');
|
|
16
|
-
console.log(' uuid v5 <name> <namespace uuid>');
|
|
17
|
-
console.log(' uuid v6');
|
|
18
|
-
console.log(' uuid v7');
|
|
19
|
-
console.log(' uuid --help');
|
|
20
|
-
console.log('\nNote: <namespace uuid> may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562');
|
|
21
|
-
}
|
|
22
|
-
const args = process.argv.slice(2);
|
|
23
|
-
if (args.indexOf('--help') >= 0) {
|
|
24
|
-
usage();
|
|
25
|
-
process.exit(0);
|
|
26
|
-
}
|
|
27
|
-
const version = args.shift() || 'v4';
|
|
28
|
-
switch (version) {
|
|
29
|
-
case 'v1':
|
|
30
|
-
console.log((0, v1_js_1.default)());
|
|
31
|
-
break;
|
|
32
|
-
case 'v3': {
|
|
33
|
-
const name = args.shift();
|
|
34
|
-
let namespace = args.shift();
|
|
35
|
-
assert.ok(name != null, 'v3 name not specified');
|
|
36
|
-
assert.ok(namespace != null, 'v3 namespace not specified');
|
|
37
|
-
if (namespace === 'URL') {
|
|
38
|
-
namespace = v3_js_1.default.URL;
|
|
39
|
-
}
|
|
40
|
-
if (namespace === 'DNS') {
|
|
41
|
-
namespace = v3_js_1.default.DNS;
|
|
42
|
-
}
|
|
43
|
-
console.log((0, v3_js_1.default)(name, namespace));
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
case 'v4':
|
|
47
|
-
console.log((0, v4_js_1.default)());
|
|
48
|
-
break;
|
|
49
|
-
case 'v5': {
|
|
50
|
-
const name = args.shift();
|
|
51
|
-
let namespace = args.shift();
|
|
52
|
-
assert.ok(name != null, 'v5 name not specified');
|
|
53
|
-
assert.ok(namespace != null, 'v5 namespace not specified');
|
|
54
|
-
if (namespace === 'URL') {
|
|
55
|
-
namespace = v5_js_1.default.URL;
|
|
56
|
-
}
|
|
57
|
-
if (namespace === 'DNS') {
|
|
58
|
-
namespace = v5_js_1.default.DNS;
|
|
59
|
-
}
|
|
60
|
-
console.log((0, v5_js_1.default)(name, namespace));
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
case 'v6':
|
|
64
|
-
console.log((0, v6_js_1.default)());
|
|
65
|
-
break;
|
|
66
|
-
case 'v7':
|
|
67
|
-
console.log((0, v7_js_1.default)());
|
|
68
|
-
break;
|
|
69
|
-
default:
|
|
70
|
-
usage();
|
|
71
|
-
process.exit(1);
|
|
72
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateV1State = void 0;
|
|
4
|
-
const rng_js_1 = require("./rng.js");
|
|
5
|
-
const stringify_js_1 = require("./stringify.js");
|
|
6
|
-
const _state = {};
|
|
7
|
-
function v1(options, buf, offset) {
|
|
8
|
-
let bytes;
|
|
9
|
-
const isV6 = options?._v6 ?? false;
|
|
10
|
-
if (options) {
|
|
11
|
-
const optionsKeys = Object.keys(options);
|
|
12
|
-
if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') {
|
|
13
|
-
options = undefined;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
if (options) {
|
|
17
|
-
bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
const now = Date.now();
|
|
21
|
-
const rnds = (0, rng_js_1.default)();
|
|
22
|
-
updateV1State(_state, now, rnds);
|
|
23
|
-
bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset);
|
|
24
|
-
}
|
|
25
|
-
return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
|
|
26
|
-
}
|
|
27
|
-
function updateV1State(state, now, rnds) {
|
|
28
|
-
state.msecs ??= -Infinity;
|
|
29
|
-
state.nsecs ??= 0;
|
|
30
|
-
if (now === state.msecs) {
|
|
31
|
-
state.nsecs++;
|
|
32
|
-
if (state.nsecs >= 10000) {
|
|
33
|
-
state.node = undefined;
|
|
34
|
-
state.nsecs = 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
else if (now > state.msecs) {
|
|
38
|
-
state.nsecs = 0;
|
|
39
|
-
}
|
|
40
|
-
else if (now < state.msecs) {
|
|
41
|
-
state.node = undefined;
|
|
42
|
-
}
|
|
43
|
-
if (!state.node) {
|
|
44
|
-
state.node = rnds.slice(10, 16);
|
|
45
|
-
state.node[0] |= 0x01;
|
|
46
|
-
state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
47
|
-
}
|
|
48
|
-
state.msecs = now;
|
|
49
|
-
return state;
|
|
50
|
-
}
|
|
51
|
-
exports.updateV1State = updateV1State;
|
|
52
|
-
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
|
53
|
-
if (rnds.length < 16) {
|
|
54
|
-
throw new Error('Random bytes length must be >= 16');
|
|
55
|
-
}
|
|
56
|
-
if (!buf) {
|
|
57
|
-
buf = new Uint8Array(16);
|
|
58
|
-
offset = 0;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
62
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
msecs ??= Date.now();
|
|
66
|
-
nsecs ??= 0;
|
|
67
|
-
clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
68
|
-
node ??= rnds.slice(10, 16);
|
|
69
|
-
msecs += 12219292800000;
|
|
70
|
-
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
71
|
-
buf[offset++] = (tl >>> 24) & 0xff;
|
|
72
|
-
buf[offset++] = (tl >>> 16) & 0xff;
|
|
73
|
-
buf[offset++] = (tl >>> 8) & 0xff;
|
|
74
|
-
buf[offset++] = tl & 0xff;
|
|
75
|
-
const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
|
|
76
|
-
buf[offset++] = (tmh >>> 8) & 0xff;
|
|
77
|
-
buf[offset++] = tmh & 0xff;
|
|
78
|
-
buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10;
|
|
79
|
-
buf[offset++] = (tmh >>> 16) & 0xff;
|
|
80
|
-
buf[offset++] = (clockseq >>> 8) | 0x80;
|
|
81
|
-
buf[offset++] = clockseq & 0xff;
|
|
82
|
-
for (let n = 0; n < 6; ++n) {
|
|
83
|
-
buf[offset++] = node[n];
|
|
84
|
-
}
|
|
85
|
-
return buf;
|
|
86
|
-
}
|
|
87
|
-
exports.default = v1;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const parse_js_1 = require("./parse.js");
|
|
4
|
-
const stringify_js_1 = require("./stringify.js");
|
|
5
|
-
function v1ToV6(uuid) {
|
|
6
|
-
const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
|
|
7
|
-
const v6Bytes = _v1ToV6(v1Bytes);
|
|
8
|
-
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
9
|
-
}
|
|
10
|
-
exports.default = v1ToV6;
|
|
11
|
-
function _v1ToV6(v1Bytes) {
|
|
12
|
-
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]);
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.URL = exports.DNS = void 0;
|
|
4
|
-
const md5_js_1 = require("./md5.js");
|
|
5
|
-
const v35_js_1 = require("./v35.js");
|
|
6
|
-
var v35_js_2 = require("./v35.js");
|
|
7
|
-
Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } });
|
|
8
|
-
Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } });
|
|
9
|
-
function v3(value, namespace, buf, offset) {
|
|
10
|
-
return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset);
|
|
11
|
-
}
|
|
12
|
-
v3.DNS = v35_js_1.DNS;
|
|
13
|
-
v3.URL = v35_js_1.URL;
|
|
14
|
-
exports.default = v3;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.URL = exports.DNS = exports.stringToBytes = void 0;
|
|
4
|
-
const parse_js_1 = require("./parse.js");
|
|
5
|
-
const stringify_js_1 = require("./stringify.js");
|
|
6
|
-
function stringToBytes(str) {
|
|
7
|
-
str = unescape(encodeURIComponent(str));
|
|
8
|
-
const bytes = new Uint8Array(str.length);
|
|
9
|
-
for (let i = 0; i < str.length; ++i) {
|
|
10
|
-
bytes[i] = str.charCodeAt(i);
|
|
11
|
-
}
|
|
12
|
-
return bytes;
|
|
13
|
-
}
|
|
14
|
-
exports.stringToBytes = stringToBytes;
|
|
15
|
-
exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
16
|
-
exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
17
|
-
function v35(version, hash, value, namespace, buf, offset) {
|
|
18
|
-
const valueBytes = typeof value === 'string' ? stringToBytes(value) : value;
|
|
19
|
-
const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace;
|
|
20
|
-
if (typeof namespace === 'string') {
|
|
21
|
-
namespace = (0, parse_js_1.default)(namespace);
|
|
22
|
-
}
|
|
23
|
-
if (namespace?.length !== 16) {
|
|
24
|
-
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
25
|
-
}
|
|
26
|
-
let bytes = new Uint8Array(16 + valueBytes.length);
|
|
27
|
-
bytes.set(namespaceBytes);
|
|
28
|
-
bytes.set(valueBytes, namespaceBytes.length);
|
|
29
|
-
bytes = hash(bytes);
|
|
30
|
-
bytes[6] = (bytes[6] & 0x0f) | version;
|
|
31
|
-
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
32
|
-
if (buf) {
|
|
33
|
-
offset = offset || 0;
|
|
34
|
-
for (let i = 0; i < 16; ++i) {
|
|
35
|
-
buf[offset + i] = bytes[i];
|
|
36
|
-
}
|
|
37
|
-
return buf;
|
|
38
|
-
}
|
|
39
|
-
return (0, stringify_js_1.unsafeStringify)(bytes);
|
|
40
|
-
}
|
|
41
|
-
exports.default = v35;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const native_js_1 = require("./native.js");
|
|
4
|
-
const rng_js_1 = require("./rng.js");
|
|
5
|
-
const stringify_js_1 = require("./stringify.js");
|
|
6
|
-
function v4(options, buf, offset) {
|
|
7
|
-
if (native_js_1.default.randomUUID && !buf && !options) {
|
|
8
|
-
return native_js_1.default.randomUUID();
|
|
9
|
-
}
|
|
10
|
-
options = options || {};
|
|
11
|
-
const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)();
|
|
12
|
-
if (rnds.length < 16) {
|
|
13
|
-
throw new Error('Random bytes length must be >= 16');
|
|
14
|
-
}
|
|
15
|
-
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
16
|
-
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
17
|
-
if (buf) {
|
|
18
|
-
offset = offset || 0;
|
|
19
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
20
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
21
|
-
}
|
|
22
|
-
for (let i = 0; i < 16; ++i) {
|
|
23
|
-
buf[offset + i] = rnds[i];
|
|
24
|
-
}
|
|
25
|
-
return buf;
|
|
26
|
-
}
|
|
27
|
-
return (0, stringify_js_1.unsafeStringify)(rnds);
|
|
28
|
-
}
|
|
29
|
-
exports.default = v4;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.URL = exports.DNS = void 0;
|
|
4
|
-
const sha1_js_1 = require("./sha1.js");
|
|
5
|
-
const v35_js_1 = require("./v35.js");
|
|
6
|
-
var v35_js_2 = require("./v35.js");
|
|
7
|
-
Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } });
|
|
8
|
-
Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } });
|
|
9
|
-
function v5(value, namespace, buf, offset) {
|
|
10
|
-
return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset);
|
|
11
|
-
}
|
|
12
|
-
v5.DNS = v35_js_1.DNS;
|
|
13
|
-
v5.URL = v35_js_1.URL;
|
|
14
|
-
exports.default = v5;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const stringify_js_1 = require("./stringify.js");
|
|
4
|
-
const v1_js_1 = require("./v1.js");
|
|
5
|
-
const v1ToV6_js_1 = require("./v1ToV6.js");
|
|
6
|
-
function v6(options, buf, offset) {
|
|
7
|
-
options ??= {};
|
|
8
|
-
offset ??= 0;
|
|
9
|
-
let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16));
|
|
10
|
-
bytes = (0, v1ToV6_js_1.default)(bytes);
|
|
11
|
-
if (buf) {
|
|
12
|
-
for (let i = 0; i < 16; i++) {
|
|
13
|
-
buf[offset + i] = bytes[i];
|
|
14
|
-
}
|
|
15
|
-
return buf;
|
|
16
|
-
}
|
|
17
|
-
return (0, stringify_js_1.unsafeStringify)(bytes);
|
|
18
|
-
}
|
|
19
|
-
exports.default = v6;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const parse_js_1 = require("./parse.js");
|
|
4
|
-
const stringify_js_1 = require("./stringify.js");
|
|
5
|
-
function v6ToV1(uuid) {
|
|
6
|
-
const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
|
|
7
|
-
const v1Bytes = _v6ToV1(v6Bytes);
|
|
8
|
-
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
9
|
-
}
|
|
10
|
-
exports.default = v6ToV1;
|
|
11
|
-
function _v6ToV1(v6Bytes) {
|
|
12
|
-
return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
|
13
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateV7State = void 0;
|
|
4
|
-
const rng_js_1 = require("./rng.js");
|
|
5
|
-
const stringify_js_1 = require("./stringify.js");
|
|
6
|
-
const _state = {};
|
|
7
|
-
function v7(options, buf, offset) {
|
|
8
|
-
let bytes;
|
|
9
|
-
if (options) {
|
|
10
|
-
bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset);
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
const now = Date.now();
|
|
14
|
-
const rnds = (0, rng_js_1.default)();
|
|
15
|
-
updateV7State(_state, now, rnds);
|
|
16
|
-
bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
|
|
17
|
-
}
|
|
18
|
-
return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
|
|
19
|
-
}
|
|
20
|
-
function updateV7State(state, now, rnds) {
|
|
21
|
-
state.msecs ??= -Infinity;
|
|
22
|
-
state.seq ??= 0;
|
|
23
|
-
if (now > state.msecs) {
|
|
24
|
-
state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
25
|
-
state.msecs = now;
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
state.seq = (state.seq + 1) | 0;
|
|
29
|
-
if (state.seq === 0) {
|
|
30
|
-
state.msecs++;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return state;
|
|
34
|
-
}
|
|
35
|
-
exports.updateV7State = updateV7State;
|
|
36
|
-
function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
|
|
37
|
-
if (rnds.length < 16) {
|
|
38
|
-
throw new Error('Random bytes length must be >= 16');
|
|
39
|
-
}
|
|
40
|
-
if (!buf) {
|
|
41
|
-
buf = new Uint8Array(16);
|
|
42
|
-
offset = 0;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
46
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
msecs ??= Date.now();
|
|
50
|
-
seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
51
|
-
buf[offset++] = (msecs / 0x10000000000) & 0xff;
|
|
52
|
-
buf[offset++] = (msecs / 0x100000000) & 0xff;
|
|
53
|
-
buf[offset++] = (msecs / 0x1000000) & 0xff;
|
|
54
|
-
buf[offset++] = (msecs / 0x10000) & 0xff;
|
|
55
|
-
buf[offset++] = (msecs / 0x100) & 0xff;
|
|
56
|
-
buf[offset++] = msecs & 0xff;
|
|
57
|
-
buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f);
|
|
58
|
-
buf[offset++] = (seq >>> 20) & 0xff;
|
|
59
|
-
buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f);
|
|
60
|
-
buf[offset++] = (seq >>> 6) & 0xff;
|
|
61
|
-
buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03);
|
|
62
|
-
buf[offset++] = rnds[11];
|
|
63
|
-
buf[offset++] = rnds[12];
|
|
64
|
-
buf[offset++] = rnds[13];
|
|
65
|
-
buf[offset++] = rnds[14];
|
|
66
|
-
buf[offset++] = rnds[15];
|
|
67
|
-
return buf;
|
|
68
|
-
}
|
|
69
|
-
exports.default = v7;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const validate_js_1 = require("./validate.js");
|
|
4
|
-
function version(uuid) {
|
|
5
|
-
if (!(0, validate_js_1.default)(uuid)) {
|
|
6
|
-
throw TypeError('Invalid UUID');
|
|
7
|
-
}
|
|
8
|
-
return parseInt(uuid.slice(14, 15), 16);
|
|
9
|
-
}
|
|
10
|
-
exports.default = version;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type * from './types.js';
|
|
2
|
-
export { default as MAX } from './max.js';
|
|
3
|
-
export { default as NIL } from './nil.js';
|
|
4
|
-
export { default as parse } from './parse.js';
|
|
5
|
-
export { default as stringify } from './stringify.js';
|
|
6
|
-
export { default as v1 } from './v1.js';
|
|
7
|
-
export { default as v1ToV6 } from './v1ToV6.js';
|
|
8
|
-
export { default as v3 } from './v3.js';
|
|
9
|
-
export { default as v4 } from './v4.js';
|
|
10
|
-
export { default as v5 } from './v5.js';
|
|
11
|
-
export { default as v6 } from './v6.js';
|
|
12
|
-
export { default as v6ToV1 } from './v6ToV1.js';
|
|
13
|
-
export { default as v7 } from './v7.js';
|
|
14
|
-
export { default as validate } from './validate.js';
|
|
15
|
-
export { default as version } from './version.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function rng(): Uint8Array;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type UUIDTypes<TBuf extends Uint8Array = Uint8Array> = string | TBuf;
|
|
2
|
-
export type Version1Options = {
|
|
3
|
-
node?: Uint8Array;
|
|
4
|
-
clockseq?: number;
|
|
5
|
-
random?: Uint8Array;
|
|
6
|
-
rng?: () => Uint8Array;
|
|
7
|
-
msecs?: number;
|
|
8
|
-
nsecs?: number;
|
|
9
|
-
_v6?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type Version4Options = {
|
|
12
|
-
random?: Uint8Array;
|
|
13
|
-
rng?: () => Uint8Array;
|
|
14
|
-
};
|
|
15
|
-
export type Version6Options = Version1Options;
|
|
16
|
-
export type Version7Options = {
|
|
17
|
-
random?: Uint8Array;
|
|
18
|
-
msecs?: number;
|
|
19
|
-
seq?: number;
|
|
20
|
-
rng?: () => Uint8Array;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Version1Options } from './types.js';
|
|
2
|
-
type V1State = {
|
|
3
|
-
node?: Uint8Array;
|
|
4
|
-
clockseq?: number;
|
|
5
|
-
msecs?: number;
|
|
6
|
-
nsecs?: number;
|
|
7
|
-
};
|
|
8
|
-
declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string;
|
|
9
|
-
declare function v1<Buf extends Uint8Array = Uint8Array>(options: Version1Options | undefined, buf: Buf, offset?: number): Buf;
|
|
10
|
-
export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State;
|
|
11
|
-
export default v1;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UUIDTypes } from './types.js';
|
|
2
|
-
export { DNS, URL } from './v35.js';
|
|
3
|
-
declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string;
|
|
4
|
-
declare function v3<TBuf extends Uint8Array = Uint8Array>(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf;
|
|
5
|
-
declare namespace v3 {
|
|
6
|
-
var DNS: string;
|
|
7
|
-
var URL: string;
|
|
8
|
-
}
|
|
9
|
-
export default v3;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UUIDTypes } from './types.js';
|
|
2
|
-
export declare function stringToBytes(str: string): Uint8Array;
|
|
3
|
-
export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
4
|
-
export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5
|
-
type HashFunction = (bytes: Uint8Array) => Uint8Array;
|
|
6
|
-
export default function v35<TBuf extends Uint8Array = Uint8Array>(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: TBuf, offset?: number): UUIDTypes<TBuf>;
|
|
7
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Version4Options } from './types.js';
|
|
2
|
-
declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string;
|
|
3
|
-
declare function v4<TBuf extends Uint8Array = Uint8Array>(options: Version4Options | undefined, buf: TBuf, offset?: number): TBuf;
|
|
4
|
-
export default v4;
|