node-red-contrib-tak-registration 0.13.0 → 0.13.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/@turf/jsts/dist/jsts.min.js +1 -1
- package/node_modules/@turf/jsts/dist/jsts.min.js.map +1 -0
- package/node_modules/@turf/jsts/package.json +17 -17
- package/node_modules/@types/geojson/README.md +1 -1
- package/node_modules/@types/geojson/index.d.ts +4 -1
- package/node_modules/@types/geojson/package.json +4 -3
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/crypto.d.ts +33 -9
- package/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/node/fs/promises.d.ts +16 -5
- package/node_modules/@types/node/fs.d.ts +14 -8
- package/node_modules/@types/node/globals.d.ts +17 -48
- package/node_modules/@types/node/http.d.ts +38 -1
- package/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@types/node/https.d.ts +0 -1
- package/node_modules/@types/node/index.d.ts +8 -10
- package/node_modules/@types/node/module.d.ts +102 -1
- package/node_modules/@types/node/package.json +5 -9
- package/node_modules/@types/node/perf_hooks.d.ts +24 -0
- package/node_modules/@types/node/process.d.ts +61 -10
- package/node_modules/@types/node/readline/promises.d.ts +14 -2
- package/node_modules/@types/node/readline.d.ts +58 -9
- package/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/node/stream/web.d.ts +5 -2
- package/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@types/node/test.d.ts +155 -5
- package/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/node/tls.d.ts +6 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +8 -10
- package/node_modules/@types/node/url.d.ts +7 -4
- package/node_modules/@types/node/util.d.ts +80 -10
- package/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@types/node/vm.d.ts +81 -27
- package/node_modules/@types/node/worker_threads.d.ts +34 -1
- package/node_modules/axios/CHANGELOG.md +49 -0
- package/node_modules/axios/README.md +20 -8
- package/node_modules/axios/dist/axios.js +34 -63
- 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 +40 -71
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +40 -71
- 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 +45 -75
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -1
- package/node_modules/axios/index.d.ts +8 -1
- package/node_modules/axios/lib/adapters/http.js +4 -4
- package/node_modules/axios/lib/core/Axios.js +7 -2
- package/node_modules/axios/lib/core/mergeConfig.js +5 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +7 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +12 -65
- package/node_modules/axios/lib/helpers/validator.js +8 -0
- package/node_modules/axios/package.json +3 -3
- package/node_modules/fast-xml-parser/CHANGELOG.md +4 -0
- package/node_modules/fast-xml-parser/README.md +3 -2
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +21 -17
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +1 -0
- package/node_modules/point-in-polygon-hao/README.md +8 -7
- package/node_modules/point-in-polygon-hao/dist/cjs/index.cjs +322 -0
- package/node_modules/point-in-polygon-hao/dist/esm/index.d.ts +10 -0
- package/node_modules/point-in-polygon-hao/dist/esm/index.js +56 -0
- package/node_modules/point-in-polygon-hao/dist/pointInPolygon.js +286 -42
- package/node_modules/point-in-polygon-hao/dist/pointInPolygon.min.js +1 -1
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/LICENSE +24 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/README.md +82 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/util.js +138 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/index.d.ts +49 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/index.js +5 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/package.json +75 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/incircle.js +908 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/incircle.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/insphere.js +914 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/insphere.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient2d.js +280 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient3d.js +601 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/predicates.js +2328 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/predicates.min.js +1 -0
- package/node_modules/point-in-polygon-hao/package.json +24 -20
- package/node_modules/tslib/modules/index.d.ts +1 -0
- package/node_modules/tslib/modules/index.js +2 -0
- package/node_modules/tslib/package.json +1 -1
- package/node_modules/tslib/tslib.d.ts +7 -0
- package/node_modules/tslib/tslib.es6.js +24 -1
- package/node_modules/tslib/tslib.es6.mjs +24 -1
- package/node_modules/tslib/tslib.js +56 -1
- package/node_modules/undici-types/eventsource.d.ts +0 -2
- package/node_modules/undici-types/filereader.d.ts +1 -1
- package/node_modules/undici-types/interceptors.d.ts +3 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -38
- package/node_modules/undici-types/websocket.d.ts +0 -2
- package/node_modules/uuid/CHANGELOG.md +45 -2
- package/node_modules/uuid/README.md +71 -158
- package/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs/index.js +31 -0
- package/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/max.js +3 -0
- package/node_modules/uuid/dist/cjs/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/node_modules/uuid/dist/cjs/native.d.ts +5 -0
- package/node_modules/uuid/dist/cjs/native.js +4 -0
- package/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/node_modules/uuid/dist/cjs/package.json +1 -0
- package/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/node_modules/uuid/dist/cjs/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs/types.js +2 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs/v1.js +78 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v4.js +23 -0
- package/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v7.js +60 -0
- package/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/version.js +10 -0
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs-browser/v1.js +78 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v4.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v7.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/node_modules/uuid/dist/{esm-node → esm}/index.js +1 -1
- package/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm/max.js +1 -0
- package/node_modules/uuid/dist/esm/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm/md5.js +11 -0
- package/node_modules/uuid/dist/esm/native.d.ts +5 -0
- package/node_modules/uuid/dist/esm/native.js +2 -0
- package/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm/nil.js +1 -0
- package/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm/parse.js +9 -0
- package/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/node_modules/uuid/dist/{esm-node → esm}/regex.js +1 -1
- package/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm/rng.js +10 -0
- package/node_modules/uuid/dist/esm/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/node_modules/uuid/dist/esm/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm/types.js +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm/v1.js +75 -0
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v3.js +9 -0
- package/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm/v35.js +36 -0
- package/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v4.js +21 -0
- package/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v5.js +9 -0
- package/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v6.js +17 -0
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v7.js +57 -0
- package/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm/validate.js +5 -0
- package/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm/version.js +8 -0
- package/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm-browser/index.js +1 -1
- package/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/max.js +1 -1
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +113 -172
- package/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/native.js +2 -4
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +6 -34
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +8 -14
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +62 -68
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +29 -25
- package/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +67 -117
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +6 -16
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +8 -3
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +28 -47
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +15 -19
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +8 -3
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v6.js +13 -32
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +5 -15
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +50 -139
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +2 -2
- package/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/version.js +5 -5
- package/node_modules/uuid/package.json +58 -66
- package/package.json +4 -4
- package/tak-registration.js +1 -4
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/point-in-polygon-hao/.eslintrc +0 -10
- package/node_modules/point-in-polygon-hao/CHANGES.md +0 -8
- package/node_modules/point-in-polygon-hao/FUNDING.yml +0 -2
- package/node_modules/point-in-polygon-hao/dist/pointInPolygon.mjs +0 -76
- package/node_modules/point-in-polygon-hao/rollup.config.js +0 -19
- package/node_modules/point-in-polygon-hao/src/index.js +0 -74
- package/node_modules/uuid/dist/bin/uuid +0 -2
- package/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
- package/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
- package/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
- package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
- package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
- package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
- package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
- package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
- package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
- package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
- package/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
- package/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
- package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
- package/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
- package/node_modules/uuid/dist/esm-node/max.js +0 -1
- package/node_modules/uuid/dist/esm-node/md5.js +0 -10
- package/node_modules/uuid/dist/esm-node/native.js +0 -4
- package/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/node_modules/uuid/dist/esm-node/parse.js +0 -37
- package/node_modules/uuid/dist/esm-node/rng.js +0 -10
- package/node_modules/uuid/dist/esm-node/sha1.js +0 -10
- package/node_modules/uuid/dist/esm-node/stringify.js +0 -31
- package/node_modules/uuid/dist/esm-node/v1.js +0 -125
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
- package/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/node_modules/uuid/dist/esm-node/v35.js +0 -55
- package/node_modules/uuid/dist/esm-node/v4.js +0 -25
- package/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/node_modules/uuid/dist/esm-node/v6.js +0 -32
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
- package/node_modules/uuid/dist/esm-node/v7.js +0 -146
- package/node_modules/uuid/dist/esm-node/validate.js +0 -5
- package/node_modules/uuid/dist/esm-node/version.js +0 -8
- package/node_modules/uuid/dist/index.js +0 -104
- package/node_modules/uuid/dist/max.js +0 -7
- package/node_modules/uuid/dist/md5-browser.js +0 -200
- package/node_modules/uuid/dist/md5.js +0 -17
- package/node_modules/uuid/dist/native-browser.js +0 -10
- package/node_modules/uuid/dist/native.js +0 -11
- package/node_modules/uuid/dist/nil.js +0 -7
- package/node_modules/uuid/dist/parse.js +0 -44
- package/node_modules/uuid/dist/regex.js +0 -7
- package/node_modules/uuid/dist/rng-browser.js +0 -23
- package/node_modules/uuid/dist/rng.js +0 -17
- package/node_modules/uuid/dist/sha1-browser.js +0 -82
- package/node_modules/uuid/dist/sha1.js +0 -17
- package/node_modules/uuid/dist/stringify.js +0 -38
- package/node_modules/uuid/dist/uuid-bin.js +0 -75
- package/node_modules/uuid/dist/v1.js +0 -131
- package/node_modules/uuid/dist/v1ToV6.js +0 -26
- package/node_modules/uuid/dist/v3.js +0 -11
- package/node_modules/uuid/dist/v35.js +0 -63
- package/node_modules/uuid/dist/v4.js +0 -32
- package/node_modules/uuid/dist/v5.js +0 -11
- package/node_modules/uuid/dist/v6.js +0 -38
- package/node_modules/uuid/dist/v6ToV1.js +0 -26
- package/node_modules/uuid/dist/v7.js +0 -152
- package/node_modules/uuid/dist/validate.js +0 -12
- package/node_modules/uuid/dist/version.js +0 -15
- package/node_modules/uuid/wrapper.mjs +0 -15
- /package/node_modules/point-in-polygon-hao/{index.d.ts → dist/cjs/index.d.cts} +0 -0
|
@@ -7,43 +7,42 @@
|
|
|
7
7
|
|
|
8
8
|
For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (formally [RFC4122](https://www.rfc-editor.org/rfc/rfc4122.html)) UUIDs
|
|
9
9
|
|
|
10
|
-
- **Complete** - Support for all RFC9562
|
|
10
|
+
- **Complete** - Support for all RFC9562 UUID versions
|
|
11
11
|
- **Cross-platform** - Support for ...
|
|
12
|
-
- CommonJS, [ECMAScript Modules](#ecmascript-modules)
|
|
12
|
+
- CommonJS, [ECMAScript Modules](#ecmascript-modules)
|
|
13
13
|
- NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release))
|
|
14
14
|
- Chrome, Safari, Firefox, Edge browsers
|
|
15
|
-
- Webpack and rollup.js module bundlers
|
|
16
15
|
- [React Native / Expo](#react-native--expo)
|
|
17
16
|
- **Secure** - Cryptographically-strong random values
|
|
18
|
-
- **
|
|
17
|
+
- **Compact** - No dependencies, [tree-shakable](https://developer.mozilla.org/en-US/docs/Glossary/Tree_shaking)
|
|
19
18
|
- **CLI** - Includes the [`uuid` command line](#command-line) utility
|
|
19
|
+
- **Typescript** - Types now included
|
|
20
20
|
|
|
21
21
|
<!-- prettier-ignore -->
|
|
22
22
|
> [!NOTE]
|
|
23
|
-
>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
>
|
|
27
|
-
> Only interested in creating a version 4 UUID? You might be able to use [`crypto.randomUUID()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID), eliminating the need to install this library.
|
|
23
|
+
w> `uuid@11` is now available: See the [CHANGELOG](./CHANGELOG.md) for details. TL;DR:
|
|
24
|
+
> * TypeScript support is now included (remove `@types/uuid` from your dependencies)
|
|
25
|
+
> * Subtle changes to how the `options` arg is interpreted for `v1()`, `v6()`, and `v7()`. [See details](#options-handling-for-timestamp-uuids)
|
|
26
|
+
> * Binary UUIDs are now `Uint8Array`s. (May impact callers of `parse()`, `stringify()`, or that pass an `option#buf` argument to `v1()`-`v7()`.)
|
|
28
27
|
|
|
29
28
|
## Quickstart
|
|
30
29
|
|
|
31
|
-
To create a random UUID...
|
|
32
|
-
|
|
33
30
|
**1. Install**
|
|
34
31
|
|
|
35
32
|
```shell
|
|
36
33
|
npm install uuid
|
|
37
34
|
```
|
|
38
35
|
|
|
39
|
-
**2. Create a UUID**
|
|
36
|
+
**2. Create a UUID**
|
|
37
|
+
|
|
38
|
+
ESM-syntax (must use named exports):
|
|
40
39
|
|
|
41
40
|
```javascript
|
|
42
41
|
import { v4 as uuidv4 } from 'uuid';
|
|
43
42
|
uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
...
|
|
45
|
+
... CommonJS:
|
|
47
46
|
|
|
48
47
|
```javascript
|
|
49
48
|
const { v4: uuidv4 } = require('uuid');
|
|
@@ -118,15 +117,12 @@ Example:
|
|
|
118
117
|
import { parse as uuidParse } from 'uuid';
|
|
119
118
|
|
|
120
119
|
// Parse a UUID
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
//
|
|
124
|
-
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
// '11', 'c0', '43', 'da',
|
|
128
|
-
// '97', '5e', '2a', '8a',
|
|
129
|
-
// 'd9', 'eb', 'ae', '0b'
|
|
120
|
+
uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨
|
|
121
|
+
// Uint8Array(16) [
|
|
122
|
+
// 110, 192, 189, 127, 17,
|
|
123
|
+
// 192, 67, 218, 151, 94,
|
|
124
|
+
// 42, 138, 217, 235, 174,
|
|
125
|
+
// 11
|
|
130
126
|
// ]
|
|
131
127
|
```
|
|
132
128
|
|
|
@@ -150,9 +146,24 @@ Example:
|
|
|
150
146
|
```javascript
|
|
151
147
|
import { stringify as uuidStringify } from 'uuid';
|
|
152
148
|
|
|
153
|
-
const uuidBytes =
|
|
154
|
-
0x6e,
|
|
155
|
-
|
|
149
|
+
const uuidBytes = Uint8Array.of(
|
|
150
|
+
0x6e,
|
|
151
|
+
0xc0,
|
|
152
|
+
0xbd,
|
|
153
|
+
0x7f,
|
|
154
|
+
0x11,
|
|
155
|
+
0xc0,
|
|
156
|
+
0x43,
|
|
157
|
+
0xda,
|
|
158
|
+
0x97,
|
|
159
|
+
0x5e,
|
|
160
|
+
0x2a,
|
|
161
|
+
0x8a,
|
|
162
|
+
0xd9,
|
|
163
|
+
0xeb,
|
|
164
|
+
0xae,
|
|
165
|
+
0x0b
|
|
166
|
+
);
|
|
156
167
|
|
|
157
168
|
uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'
|
|
158
169
|
```
|
|
@@ -164,11 +175,11 @@ Create an RFC version 1 (timestamp) UUID
|
|
|
164
175
|
| | |
|
|
165
176
|
| --- | --- |
|
|
166
177
|
| [`options`] | `Object` with one or more of the following properties: |
|
|
167
|
-
| [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) |
|
|
168
|
-
| [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff |
|
|
169
|
-
| [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
|
|
170
|
-
| [`options.nsecs`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) |
|
|
171
|
-
| [`options.random`] | `Array` of 16 random bytes (0-255) |
|
|
178
|
+
| [`options.node = (random)` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) |
|
|
179
|
+
| [`options.clockseq = (random)`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff |
|
|
180
|
+
| [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
|
|
181
|
+
| [`options.nsecs = 0`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) |
|
|
182
|
+
| [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above |
|
|
172
183
|
| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
|
|
173
184
|
| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
|
|
174
185
|
| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` |
|
|
@@ -188,7 +199,7 @@ Example:
|
|
|
188
199
|
```javascript
|
|
189
200
|
import { v1 as uuidv1 } from 'uuid';
|
|
190
201
|
|
|
191
|
-
uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-
|
|
202
|
+
uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-9bdd-2b0d7b3dcb6d'
|
|
192
203
|
```
|
|
193
204
|
|
|
194
205
|
Example using `options`:
|
|
@@ -197,7 +208,7 @@ Example using `options`:
|
|
|
197
208
|
import { v1 as uuidv1 } from 'uuid';
|
|
198
209
|
|
|
199
210
|
const options = {
|
|
200
|
-
node:
|
|
211
|
+
node: Uint8Array.of(0x01, 0x23, 0x45, 0x67, 0x89, 0xab),
|
|
201
212
|
clockseq: 0x1234,
|
|
202
213
|
msecs: new Date('2011-11-01').getTime(),
|
|
203
214
|
nsecs: 5678,
|
|
@@ -243,7 +254,7 @@ Example:
|
|
|
243
254
|
```javascript
|
|
244
255
|
import { v4 as uuidv4 } from 'uuid';
|
|
245
256
|
|
|
246
|
-
uuidv4(); // ⇨ '
|
|
257
|
+
uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
|
|
247
258
|
```
|
|
248
259
|
|
|
249
260
|
Example using predefined `random` values:
|
|
@@ -252,9 +263,24 @@ Example using predefined `random` values:
|
|
|
252
263
|
import { v4 as uuidv4 } from 'uuid';
|
|
253
264
|
|
|
254
265
|
const v4options = {
|
|
255
|
-
random:
|
|
256
|
-
0x10,
|
|
257
|
-
|
|
266
|
+
random: Uint8Array.of(
|
|
267
|
+
0x10,
|
|
268
|
+
0x91,
|
|
269
|
+
0x56,
|
|
270
|
+
0xbe,
|
|
271
|
+
0xc4,
|
|
272
|
+
0xfb,
|
|
273
|
+
0xc1,
|
|
274
|
+
0xea,
|
|
275
|
+
0x71,
|
|
276
|
+
0xb4,
|
|
277
|
+
0xef,
|
|
278
|
+
0xe1,
|
|
279
|
+
0x67,
|
|
280
|
+
0x1c,
|
|
281
|
+
0x58,
|
|
282
|
+
0x36
|
|
283
|
+
),
|
|
258
284
|
};
|
|
259
285
|
uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836'
|
|
260
286
|
```
|
|
@@ -304,7 +330,7 @@ This method takes the same arguments as uuid.v1().
|
|
|
304
330
|
```javascript
|
|
305
331
|
import { v6 as uuidv6 } from 'uuid';
|
|
306
332
|
|
|
307
|
-
uuidv6(); // ⇨ '1e940672-c5ea-64c0-
|
|
333
|
+
uuidv6(); // ⇨ '1e940672-c5ea-64c0-9b5d-ab8dfbbd4bed'
|
|
308
334
|
```
|
|
309
335
|
|
|
310
336
|
Example using `options`:
|
|
@@ -338,10 +364,10 @@ Create an RFC version 7 (random) UUID
|
|
|
338
364
|
| | |
|
|
339
365
|
| --- | --- |
|
|
340
366
|
| [`options`] | `Object` with one or more of the following properties: |
|
|
341
|
-
| [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
|
|
342
|
-
| [`options.random`] | `Array` of 16 random bytes (0-255) |
|
|
367
|
+
| [`options.msecs = (current time)`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
|
|
368
|
+
| [`options.random = (random)`] | `Array` of 16 random bytes (0-255) used to generate other fields, above |
|
|
343
369
|
| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
|
|
344
|
-
| [`options.seq`] |
|
|
370
|
+
| [`options.seq = (random)`] | 32-bit sequence `Number` between 0 - 0xffffffff. This may be provided to help insure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value. |
|
|
345
371
|
| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
|
|
346
372
|
| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` |
|
|
347
373
|
| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` |
|
|
@@ -351,7 +377,7 @@ Example:
|
|
|
351
377
|
```javascript
|
|
352
378
|
import { v7 as uuidv7 } from 'uuid';
|
|
353
379
|
|
|
354
|
-
uuidv7(); // ⇨ '01695553-c90c-
|
|
380
|
+
uuidv7(); // ⇨ '01695553-c90c-705a-b56d-778dfbbd4bed'
|
|
355
381
|
```
|
|
356
382
|
|
|
357
383
|
### ~~uuid.v8()~~
|
|
@@ -447,53 +473,15 @@ Note: <namespace uuid> may be "URL" or "DNS" to use the corresponding UUIDs
|
|
|
447
473
|
defined by RFC9562
|
|
448
474
|
```
|
|
449
475
|
|
|
450
|
-
##
|
|
451
|
-
|
|
452
|
-
This library comes with [ECMAScript Modules](https://www.ecma-international.org/ecma-262/6.0/#sec-modules) (ESM) support for Node.js versions that support it ([example](./examples/node-esmodules/)) as well as bundlers like [rollup.js](https://rollupjs.org/guide/en/#tree-shaking) ([example](./examples/browser-rollup/)) and [webpack](https://webpack.js.org/guides/tree-shaking/) ([example](./examples/browser-webpack/)) (targeting both, Node.js and browser environments).
|
|
453
|
-
|
|
454
|
-
```javascript
|
|
455
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
456
|
-
uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
To run the examples you must first create a dist build of this library in the module root:
|
|
460
|
-
|
|
461
|
-
```shell
|
|
462
|
-
npm run build
|
|
463
|
-
```
|
|
464
|
-
|
|
465
|
-
## CDN Builds
|
|
466
|
-
|
|
467
|
-
### ECMAScript Modules
|
|
468
|
-
|
|
469
|
-
To load this module directly into modern browsers that [support loading ECMAScript Modules](https://caniuse.com/#feat=es6-module) you can make use of [jspm](https://jspm.org/):
|
|
470
|
-
|
|
471
|
-
```html
|
|
472
|
-
<script type="module">
|
|
473
|
-
import { v4 as uuidv4 } from 'https://jspm.dev/uuid';
|
|
474
|
-
console.log(uuidv4()); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
|
|
475
|
-
</script>
|
|
476
|
-
```
|
|
477
|
-
|
|
478
|
-
### UMD
|
|
476
|
+
## `options` Handling for Timestamp UUIDs
|
|
479
477
|
|
|
480
|
-
|
|
478
|
+
Prior to `uuid@11`, it was possible for `options` state to interfere with the internal state used to insure uniqueness of timestamp-based UUIDs (the `v1()`, `v6()`, and `v7()` methods). Starting with `uuid@11`, this issue has been addressed by using the presence of the `options` argument as a flag to select between two possible behaviors:
|
|
481
479
|
|
|
482
|
-
|
|
480
|
+
- Without `options`: Internal state is utilized to improve UUID uniqueness.
|
|
481
|
+
- With `options`: Internal state is **NOT** used and, instead, appropriate defaults are applied as needed.
|
|
483
482
|
|
|
484
483
|
## Known issues
|
|
485
484
|
|
|
486
|
-
### Duplicate UUIDs (Googlebot)
|
|
487
|
-
|
|
488
|
-
This module may generate duplicate UUIDs when run in clients with _deterministic_ random number generators, such as [Googlebot crawlers](https://developers.google.com/search/docs/advanced/crawling/overview-google-crawlers). This can cause problems for apps that expect client-generated UUIDs to always be unique. Developers should be prepared for this and have a strategy for dealing with possible collisions, such as:
|
|
489
|
-
|
|
490
|
-
- Check for duplicate UUIDs, fail gracefully
|
|
491
|
-
- Disable write operations for Googlebot clients
|
|
492
|
-
|
|
493
|
-
### "getRandomValues() not supported"
|
|
494
|
-
|
|
495
|
-
This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
|
|
496
|
-
|
|
497
485
|
### React Native / Expo
|
|
498
486
|
|
|
499
487
|
1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
|
|
@@ -504,81 +492,6 @@ import 'react-native-get-random-values';
|
|
|
504
492
|
import { v4 as uuidv4 } from 'uuid';
|
|
505
493
|
```
|
|
506
494
|
|
|
507
|
-
<!-- prettier-ignore -->
|
|
508
|
-
> [!NOTE]
|
|
509
|
-
> If you are using Expo, you must be using at least `react-native-get-random-values@1.5.0` and `expo@39.0.0`.
|
|
510
|
-
|
|
511
|
-
### Web Workers / Service Workers (Edge <= 18)
|
|
512
|
-
|
|
513
|
-
[In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please).
|
|
514
|
-
|
|
515
|
-
### IE 11 (Internet Explorer)
|
|
516
|
-
|
|
517
|
-
Support for IE11 and other legacy browsers has been dropped as of `uuid@9`. If you need to support legacy browsers, you can always transpile the uuid module source yourself (e.g. using [Babel](https://babeljs.io/)).
|
|
518
|
-
|
|
519
|
-
## Upgrading From `uuid@7`
|
|
520
|
-
|
|
521
|
-
### Only Named Exports Supported When Using with Node.js ESM
|
|
522
|
-
|
|
523
|
-
`uuid@7` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports.
|
|
524
|
-
|
|
525
|
-
Instead of doing:
|
|
526
|
-
|
|
527
|
-
```javascript
|
|
528
|
-
import uuid from 'uuid';
|
|
529
|
-
uuid.v4();
|
|
530
|
-
```
|
|
531
|
-
|
|
532
|
-
you will now have to use the named exports:
|
|
533
|
-
|
|
534
|
-
```javascript
|
|
535
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
536
|
-
uuidv4();
|
|
537
|
-
```
|
|
538
|
-
|
|
539
|
-
### Deep Requires No Longer Supported
|
|
540
|
-
|
|
541
|
-
Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7`](#deep-requires-now-deprecated) are no longer supported.
|
|
542
|
-
|
|
543
|
-
## Upgrading From `uuid@3`
|
|
544
|
-
|
|
545
|
-
"_Wait... what happened to `uuid@4` thru `uuid@6`?!?_"
|
|
546
|
-
|
|
547
|
-
In order to avoid confusion with RFC [version 4](#uuidv4options-buffer-offset) and [version 5](#uuidv5name-namespace-buffer-offset) UUIDs, and a possible [version 6](http://gh.peabody.io/uuidv6/), releases 4 thru 6 of this module have been skipped.
|
|
548
|
-
|
|
549
|
-
### Deep Requires Now Deprecated
|
|
550
|
-
|
|
551
|
-
`uuid@3` encouraged the use of deep requires to minimize the bundle size of browser builds:
|
|
552
|
-
|
|
553
|
-
```javascript
|
|
554
|
-
const uuidv4 = require('uuid/v4'); // <== NOW DEPRECATED!
|
|
555
|
-
uuidv4();
|
|
556
|
-
```
|
|
557
|
-
|
|
558
|
-
As of `uuid@7` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax:
|
|
559
|
-
|
|
560
|
-
```javascript
|
|
561
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
562
|
-
uuidv4();
|
|
563
|
-
```
|
|
564
|
-
|
|
565
|
-
... or for CommonJS:
|
|
566
|
-
|
|
567
|
-
```javascript
|
|
568
|
-
const { v4: uuidv4 } = require('uuid');
|
|
569
|
-
uuidv4();
|
|
570
|
-
```
|
|
571
|
-
|
|
572
|
-
### Default Export Removed
|
|
573
|
-
|
|
574
|
-
`uuid@3` was exporting the Version 4 UUID method as a default export:
|
|
575
|
-
|
|
576
|
-
```javascript
|
|
577
|
-
const uuid = require('uuid'); // <== REMOVED!
|
|
578
|
-
```
|
|
579
|
-
|
|
580
|
-
This usage pattern was already discouraged in `uuid@3` and has been removed in `uuid@7`.
|
|
581
|
-
|
|
582
495
|
---
|
|
583
496
|
|
|
584
497
|
Markdown generated from [README_js.md](README_js.md) by <a href="https://github.com/broofa/runmd"><image height="12px" src="https://camo.githubusercontent.com/5c7c603cd1e6a43370b0a5063d457e0dabb74cf317adc7baba183acb686ee8d0/687474703a2f2f692e696d6775722e636f6d2f634a4b6f3662552e706e67" /></a>
|
|
@@ -0,0 +1,15 @@
|
|
|
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';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0;
|
|
4
|
+
var max_js_1 = require("./max.js");
|
|
5
|
+
Object.defineProperty(exports, "MAX", { enumerable: true, get: function () { return max_js_1.default; } });
|
|
6
|
+
var nil_js_1 = require("./nil.js");
|
|
7
|
+
Object.defineProperty(exports, "NIL", { enumerable: true, get: function () { return nil_js_1.default; } });
|
|
8
|
+
var parse_js_1 = require("./parse.js");
|
|
9
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse_js_1.default; } });
|
|
10
|
+
var stringify_js_1 = require("./stringify.js");
|
|
11
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_js_1.default; } });
|
|
12
|
+
var v1_js_1 = require("./v1.js");
|
|
13
|
+
Object.defineProperty(exports, "v1", { enumerable: true, get: function () { return v1_js_1.default; } });
|
|
14
|
+
var v1ToV6_js_1 = require("./v1ToV6.js");
|
|
15
|
+
Object.defineProperty(exports, "v1ToV6", { enumerable: true, get: function () { return v1ToV6_js_1.default; } });
|
|
16
|
+
var v3_js_1 = require("./v3.js");
|
|
17
|
+
Object.defineProperty(exports, "v3", { enumerable: true, get: function () { return v3_js_1.default; } });
|
|
18
|
+
var v4_js_1 = require("./v4.js");
|
|
19
|
+
Object.defineProperty(exports, "v4", { enumerable: true, get: function () { return v4_js_1.default; } });
|
|
20
|
+
var v5_js_1 = require("./v5.js");
|
|
21
|
+
Object.defineProperty(exports, "v5", { enumerable: true, get: function () { return v5_js_1.default; } });
|
|
22
|
+
var v6_js_1 = require("./v6.js");
|
|
23
|
+
Object.defineProperty(exports, "v6", { enumerable: true, get: function () { return v6_js_1.default; } });
|
|
24
|
+
var v6ToV1_js_1 = require("./v6ToV1.js");
|
|
25
|
+
Object.defineProperty(exports, "v6ToV1", { enumerable: true, get: function () { return v6ToV1_js_1.default; } });
|
|
26
|
+
var v7_js_1 = require("./v7.js");
|
|
27
|
+
Object.defineProperty(exports, "v7", { enumerable: true, get: function () { return v7_js_1.default; } });
|
|
28
|
+
var validate_js_1 = require("./validate.js");
|
|
29
|
+
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_js_1.default; } });
|
|
30
|
+
var version_js_1 = require("./version.js");
|
|
31
|
+
Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_js_1.default; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const crypto_1 = require("crypto");
|
|
4
|
+
function md5(bytes) {
|
|
5
|
+
if (Array.isArray(bytes)) {
|
|
6
|
+
bytes = Buffer.from(bytes);
|
|
7
|
+
}
|
|
8
|
+
else if (typeof bytes === 'string') {
|
|
9
|
+
bytes = Buffer.from(bytes, 'utf8');
|
|
10
|
+
}
|
|
11
|
+
return (0, crypto_1.createHash)('md5').update(bytes).digest();
|
|
12
|
+
}
|
|
13
|
+
exports.default = md5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const validate_js_1 = require("./validate.js");
|
|
4
|
+
function parse(uuid) {
|
|
5
|
+
if (!(0, validate_js_1.default)(uuid)) {
|
|
6
|
+
throw TypeError('Invalid UUID');
|
|
7
|
+
}
|
|
8
|
+
let v;
|
|
9
|
+
return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff);
|
|
10
|
+
}
|
|
11
|
+
exports.default = parse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function rng(): Uint8Array;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = rng;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
5
|
+
const rnds8Pool = new Uint8Array(256);
|
|
6
|
+
let poolPtr = rnds8Pool.length;
|
|
7
|
+
function rng() {
|
|
8
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
|
9
|
+
(0, crypto_1.randomFillSync)(rnds8Pool);
|
|
10
|
+
poolPtr = 0;
|
|
11
|
+
}
|
|
12
|
+
return rnds8Pool.slice(poolPtr, (poolPtr += 16));
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const crypto_1 = require("crypto");
|
|
4
|
+
function sha1(bytes) {
|
|
5
|
+
if (Array.isArray(bytes)) {
|
|
6
|
+
bytes = Buffer.from(bytes);
|
|
7
|
+
}
|
|
8
|
+
else if (typeof bytes === 'string') {
|
|
9
|
+
bytes = Buffer.from(bytes, 'utf8');
|
|
10
|
+
}
|
|
11
|
+
return (0, crypto_1.createHash)('sha1').update(bytes).digest();
|
|
12
|
+
}
|
|
13
|
+
exports.default = sha1;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unsafeStringify = unsafeStringify;
|
|
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
|
+
function stringify(arr, offset = 0) {
|
|
32
|
+
const uuid = unsafeStringify(arr, offset);
|
|
33
|
+
if (!(0, validate_js_1.default)(uuid)) {
|
|
34
|
+
throw TypeError('Stringified UUID is invalid');
|
|
35
|
+
}
|
|
36
|
+
return uuid;
|
|
37
|
+
}
|
|
38
|
+
exports.default = stringify;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const assert = require("assert");
|
|
4
|
+
const node_test_1 = require("node:test");
|
|
5
|
+
const parse_js_1 = require("../parse.js");
|
|
6
|
+
const stringify_js_1 = require("../stringify.js");
|
|
7
|
+
const v4_js_1 = require("../v4.js");
|
|
8
|
+
function splitmix32(a) {
|
|
9
|
+
return function () {
|
|
10
|
+
a |= 0;
|
|
11
|
+
a = (a + 0x9e3779b9) | 0;
|
|
12
|
+
let t = a ^ (a >>> 16);
|
|
13
|
+
t = Math.imul(t, 0x21f0aaad);
|
|
14
|
+
t = t ^ (t >>> 15);
|
|
15
|
+
t = Math.imul(t, 0x735a2d97);
|
|
16
|
+
return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const rand = splitmix32(0x12345678);
|
|
20
|
+
function rng(bytes = new Uint8Array(16)) {
|
|
21
|
+
for (let i = 0; i < 16; i++) {
|
|
22
|
+
bytes[i] = rand() * 256;
|
|
23
|
+
}
|
|
24
|
+
return bytes;
|
|
25
|
+
}
|
|
26
|
+
(0, node_test_1.describe)('parse', () => {
|
|
27
|
+
(0, node_test_1.default)('String -> bytes parsing', () => {
|
|
28
|
+
assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), Uint8Array.from([
|
|
29
|
+
0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08,
|
|
30
|
+
0x4b,
|
|
31
|
+
]));
|
|
32
|
+
});
|
|
33
|
+
(0, node_test_1.default)('String -> bytes -> string symmetry for assorted uuids', () => {
|
|
34
|
+
for (let i = 0; i < 1000; i++) {
|
|
35
|
+
const uuid = (0, v4_js_1.default)({ rng });
|
|
36
|
+
assert.equal((0, stringify_js_1.default)((0, parse_js_1.default)(uuid)), uuid);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
(0, node_test_1.default)('Case neutrality', () => {
|
|
40
|
+
assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), (0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()));
|
|
41
|
+
});
|
|
42
|
+
(0, node_test_1.default)('Null UUID case', () => {
|
|
43
|
+
assert.deepStrictEqual((0, parse_js_1.default)('00000000-0000-0000-0000-000000000000'), Uint8Array.from(new Array(16).fill(0)));
|
|
44
|
+
});
|
|
45
|
+
(0, node_test_1.default)('UUID validation', () => {
|
|
46
|
+
assert.throws(() => (0, parse_js_1.default)());
|
|
47
|
+
assert.throws(() => (0, parse_js_1.default)('invalid uuid'));
|
|
48
|
+
assert.throws(() => (0, parse_js_1.default)('zyxwvuts-rqpo-nmlk-jihg-fedcba000000'));
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const assert = require("assert");
|
|
4
|
+
const node_test_1 = require("node:test");
|
|
5
|
+
const rng_js_1 = require("../rng.js");
|
|
6
|
+
(0, node_test_1.describe)('rng', () => {
|
|
7
|
+
(0, node_test_1.default)('Node.js RNG', () => {
|
|
8
|
+
const bytes = (0, rng_js_1.default)();
|
|
9
|
+
assert.equal(bytes.length, 16);
|
|
10
|
+
for (let i = 0; i < bytes.length; ++i) {
|
|
11
|
+
assert.equal(typeof bytes[i], 'number');
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|