{"_id":"@avolantis/ts-guid","_rev":"5-160efa58a0a89540c753543689e8983f","name":"@avolantis/ts-guid","dist-tags":{"latest":"0.1.0-preview.3"},"versions":{"0.1.0-preview.0":{"name":"@avolantis/ts-guid","version":"0.1.0-preview.0","keywords":["guid","uuid","unique","uniqueidentifier","id","identifier"],"description":"TypeScript implementation of GUIDs (v4 UUIDs)","homepage":"https://github.com/avolantis/ts-guid#readme","repository":{"type":"git","url":"https://github.com/avolantis/ts-guid"},"bugs":{"url":"https://github.com/avolantis/ts-guid/issues"},"author":{"name":"Avolantis","email":"info@avolantis.net","url":"https://avolantis.net"},"license":"MIT","main":"dist/ts-guid.cjs.js","module":"dist/ts-guid.esm.min.js","browser":"dist/ts-guid.iife.min.js","unpkg":"dist/ts-guid.umd.min.js","types":"types/ts-guid.d.ts","scripts":{"build":"yarn clean && rollup -c ./config/rollup.js","build:ci":"cross-env CI=true rollup -c ./config/rollup.js","ci":"yarn install --frozen-lockfile --non-interactive","clean":"rimraf dist lib types","dev":"tsc","lint":"eslint --fix .","test":"jest -c ./config/jest.js","test:ci":"cross-env CI=true yarn lint && yarn test:coverage","test:coverage":"yarn test --coverage"},"gitHooks":{"pre-commit":"lint-staged -c ./config/lint-staged.js","commit-msg":"commitlint -g ./config/commitlint.js -E GIT_PARAMS"},"prettier":"./config/prettier.js","dependencies":{},"devDependencies":{"@babel/core":"^7.12.3","@babel/eslint-parser":"^7.12.1","@babel/preset-env":"^7.12.1","@commitlint/config-conventional":"^11.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-multi-entry":"^4.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^26.0.15","@types/node":"^14.14.6","@typescript-eslint/eslint-plugin":"^4.4.0","@typescript-eslint/parser":"^4.4.0","commitlint":"^9.1.2","cross-env":"^7.0.2","eslint":"^7.11.0","eslint-plugin-jest":"^24.1.0","eslint-plugin-package-json":"^0.1.4","eslint-plugin-prettier":"^3.1.3","jest":"^26.6.3","lint-staged":"^10.5.0","prettier":"^2.1.2","rimraf":"^3.0.2","rollup":"^2.32.1","rollup-plugin-copy":"^3.3.0","rollup-plugin-dts":"^1.4.13","rollup-plugin-multi-input":"^1.1.1","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","ts-jest":"^26.4.3","typescript":"^4.0.5","yorkie":"^2.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 Avolantis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@avolantis/ts-guid@0.1.0-preview.0","dist":{"shasum":"1e625547f373a2b9c1bf63c8e123cf03c830de2e","integrity":"sha512-jan29WtoDCXtz9gyfE6pRuKpBeZP8a4r4fVml8t5jzQew2y9BWUuk1Mnqg+ZtB2YVM1Z1UWeSXpudVAjFSeINA==","tarball":"https://registry.npmjs.org/@avolantis/ts-guid/-/ts-guid-0.1.0-preview.0.tgz","fileCount":113,"unpackedSize":543566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfty8qCRA9TVsSAnZWagAAU08P/jiPEvfCna7T4g/m2dJA\naZ3jnAjs0E+//uF9w6la4aAM60lfmHNUE0chDRXjJ4StcQeh5rFcJ4z/x4Jk\nHywC9Sk92fLWPZ+226NYvq6mk98O8/iSKCVVwCRBQmJojuVf8np6GYMmmWj6\nePg9cc1E7zXjdCAjPIggL/TTAshjRsdApbmzsRNe8Bogr1hA7o+Vqnm5TY6A\npYdbyy4sl84TJ+3wWydQX4truaYo/0XcRHNFU4JCOCGHM81qh5aZ4yjttv2Z\nntalP9wa/f5iWxeAtz0RWOJNboujxytukWO92niWYIXj/1CyFL6zUf20TDkj\nvgU8pyjIs8rdhOMoNB1ht6VyiUFv3s69cKBl82XpQvkGuFsGdyTZF10WQLIW\nn4hPHfCPWeEMbp79wWj8lDR+6OzvuOl0lh8D9Cb8TfHuIbotPHLzS7SQh76o\n+bKC2MUfGabK9eCR69LS22cNVgCtoJhfPijNSU47/FoDCms4+UpFVaut/dQo\nEVpX91s3n1APOUrgEfGtl/UDZb5ix3agjcqtzabBpyjAGDLXe1FJ2WhmSilc\newdzSdx/MM9O3nakRgf1/NPxM9Q9xi82Yf8jHGhgFtsLlWVKGqNtBcOFHTg9\neBkCBVTufPqtxttzBl4KnSzpdZBzDPIxxzETMBVGgRM0DWDgYubwM2t4b8iX\nUDKO\r\n=dQ1c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/FuMQ4+88JmQX5+cc2Ix4iO9Zszx0NoZeriE0T4I6qAiB1WLFJtK6UDNszwJ3z144Gf0Nq71KveFLm+1wmZRFQ8g=="}]},"_npmUser":{"name":"bencelang","email":"bence.lang@avolantis.net"},"directories":{},"maintainers":[{"name":"bencelang","email":"bence.lang@avolantis.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-guid_0.1.0-preview.0_1605840681321_0.8001259346671117"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.0-preview.1":{"name":"@avolantis/ts-guid","version":"0.1.0-preview.1","keywords":["guid","uuid","unique","uniqueidentifier","id","identifier","uuid-generator"],"description":"TypeScript implementation of GUIDs (v4 UUIDs)","homepage":"https://github.com/avolantis/ts-guid#readme","repository":{"type":"git","url":"https://github.com/avolantis/ts-guid"},"bugs":{"url":"https://github.com/avolantis/ts-guid/issues"},"author":{"name":"Avolantis","email":"info@avolantis.net","url":"https://avolantis.net"},"license":"MIT","main":"dist/ts-guid.es6.cjs.js","module":"dist/ts-guid.es6.esm.js","browser":"dist/ts-guid.es6.iife.js","unpkg":"dist/ts-guid.es6.umd.js","types":"dist/ts-guid.d.ts","scripts":{"build":"yarn clean && rollup -c ./config/rollup.js","build:ci":"cross-env CI=true rollup -c ./config/rollup.js","changelog":"conventional-changelog -i ./CHANGELOG.md -s -n ./config/changelog.js","ci":"yarn install --frozen-lockfile --non-interactive","clean":"rimraf dist","clean:deps":"rimraf node_modules","dev":"tsc","lint":"yarn lint:files .","lint:files":"eslint --fix","release":"standard-version","test":"yarn test:node && yarn test:jsdom","test:node":"jest -c config/jest-node.js","test:jsdom":"jest -c config/jest-jsdom.js","test:ci":"cross-env CI=true yarn lint && yarn test:coverage","test:coverage":"yarn test:node --coverage && yarn test:jsdom"},"gitHooks":{"pre-commit":"lint-staged -c ./config/lint-staged.js","commit-msg":"commitlint -g ./config/commitlint.js -E GIT_PARAMS"},"prettier":"./config/prettier.js","dependencies":{},"devDependencies":{"@commitlint/config-conventional":"^12.0.1","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.2.0","@types/jest":"^26.0.15","@types/node":"^14.14.6","@typescript-eslint/eslint-plugin":"^4.4.0","@typescript-eslint/parser":"^4.4.0","commitlint":"^12.0.1","conventional-changelog-cli":"^2.1.1","conventional-changelog-conventionalcommits":"^4.5.0","cross-env":"^7.0.2","esbuild":"^0.9.0","eslint":"^7.11.0","eslint-plugin-jest":"^24.1.0","eslint-plugin-package-json":"^0.1.4","eslint-plugin-prettier":"^3.1.3","jest":"^26.6.3","lint-staged":"^10.5.0","prettier":"^2.1.2","rimraf":"^3.0.2","rollup":"^2.32.1","rollup-plugin-dts":"^3.0.1","rollup-plugin-esbuild":"^3.0.0","rollup-plugin-node-externals":"^2.2.0","standard-version":"^9.0.0","ts-jest":"^26.4.3","typescript":"^4.0.5","yorkie":"^2.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 Avolantis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@avolantis/ts-guid@0.1.0-preview.1","dist":{"shasum":"9d40009f34f1d2193421c740acb5f739e80d3d98","integrity":"sha512-KQr+O/FIQNBtHiZCszILF1yqyyXXsRPK0gbdhcgJOZiSE6oqgYTbPVVNIz3ixvvUfNDppAOc8Khd9DflYvAkjQ==","tarball":"https://registry.npmjs.org/@avolantis/ts-guid/-/ts-guid-0.1.0-preview.1.tgz","fileCount":29,"unpackedSize":245548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSSyFCRA9TVsSAnZWagAAba8QAJdKmL4Clxw4cdMH3vVm\nM3CkX16ciqLN0lCnhbNj/F19ChqUpNETzAhMTHXPbQMAilc6d7A4AbaBVnZU\nHK6aiQr2yqqzNCUv6ernKsp/iTS+UbFeDKK4cmUJ7ZvXtSsN1tLiCrZmnkPz\neAPPY6a9bQne5moKAROXwU2MArFSNu+0GP1mN2dQQkvTT5nDnvFaK71cb3kC\nysPdts+PvqhVdDh4/EJFSLfcfKPLrV0i1Xkx+vwPnwDFYP4c1L3qdrYKWjrh\nM95fS5S1eZrRn3XgOT0nvRh4Z+4zKb033n0IF5fh37W9RgevE6ZPPxZsbogB\nk7cxEvP+kynSvKYIQBveUdeAhlaM/Tdnh/qO5Iwu1RQjI+pnvXI1wGn0VD9X\nhPm/xMbEqjK9a0DmlCCFmqbvdZhSxgSn+oIXg8VmOoIQDDHJtsXS79AmWQNr\nO0RfEhfDqpBxoCCghmHRmH5g3XLJrBi30VArXWXSg/km+RfD5OigDygPRvfx\nbaTCeyHpfIjEJ8kw1d+Oxt2c7uISN1/vXn6JSQ/zhH2uHUMmq2xsxQQkyjdg\njjehPHuPGwv46T5/qPCQCzOoNbXjHBuZkaOig8PYjkw6sgL5oXP3ZAtZ3lY4\nf2fEgbIlXJofcniWrlXUYS0HFUH7tBbZQwnryARktQijDSJeJjRK2zdyuGKx\n7NLX\r\n=0eiD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMrg7burD/1M6n+ywDzowJDXWLODfoVJjDB6yIWm6nDAIhANZ0d7CoXWzsCUPAuPENuMjA44xIbEJ3wZYuPeDZuu5A"}]},"_npmUser":{"name":"bencelang","email":"bence.lang@avolantis.net"},"directories":{},"maintainers":[{"name":"bencelang","email":"bence.lang@avolantis.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-guid_0.1.0-preview.1_1615408260434_0.9332555872633959"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.0-preview.2":{"name":"@avolantis/ts-guid","version":"0.1.0-preview.2","keywords":["guid","uuid","unique","uniqueidentifier","id","identifier","uuid-generator"],"description":"TypeScript implementation of GUIDs (v4 UUIDs)","homepage":"https://github.com/avolantis/ts-guid#readme","repository":{"type":"git","url":"https://github.com/avolantis/ts-guid"},"bugs":{"url":"https://github.com/avolantis/ts-guid/issues"},"author":{"name":"Avolantis","email":"info@avolantis.net","url":"https://avolantis.net"},"license":"MIT","main":"dist/ts-guid.es6.cjs.js","module":"dist/ts-guid.es6.esm.js","browser":"dist/ts-guid.es6.iife.js","unpkg":"dist/ts-guid.es6.umd.js","types":"types/index.d.ts","scripts":{"build":"yarn clean && tsc && rollup -c ./config/rollup.js","build:ci":"cross-env CI=true tsc && rollup -c ./config/rollup.js","changelog":"conventional-changelog -i ./CHANGELOG.md -s -n ./config/changelog.js","ci":"yarn install --frozen-lockfile --non-interactive","clean":"rimraf dist types","clean:deps":"rimraf node_modules","dev":"tsc --watch --noEmit","lint":"yarn lint:files .","lint:ci":"eslint .","lint:files":"eslint --fix","release":"standard-version","test":"jest -c config/jest.js","test:ci":"cross-env CI=true yarn lint:ci && yarn test:coverage","test:coverage":"yarn test --coverage"},"gitHooks":{"pre-commit":"lint-staged -c ./config/lint-staged.js","commit-msg":"commitlint -g ./config/commitlint.js -E GIT_PARAMS"},"prettier":"./config/prettier.js","dependencies":{},"devDependencies":{"@commitlint/config-conventional":"^12.0.1","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.2.0","@types/jest":"^26.0.15","@types/node":"^14.14.6","@typescript-eslint/eslint-plugin":"^4.4.0","@typescript-eslint/parser":"^4.4.0","commitlint":"^12.0.1","conventional-changelog-cli":"^2.1.1","conventional-changelog-conventionalcommits":"^4.5.0","cross-env":"^7.0.2","esbuild":"^0.9.0","eslint":"^7.11.0","eslint-plugin-jest":"^24.1.0","eslint-plugin-package-json":"^0.1.4","eslint-plugin-prettier":"^3.1.3","jest":"^26.6.3","lint-staged":"^10.5.0","prettier":"^2.1.2","rimraf":"^3.0.2","rollup":"^2.32.1","rollup-plugin-dts":"^3.0.1","rollup-plugin-esbuild":"^3.0.0","rollup-plugin-node-externals":"^2.2.0","standard-version":"^9.0.0","ts-jest":"^26.4.3","typescript":"^4.0.5","yorkie":"^2.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 Avolantis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@avolantis/ts-guid@0.1.0-preview.2","dist":{"shasum":"5631561e6eb716ca4ebaf7782089f3c333ac1911","integrity":"sha512-S2QOGq5eROgW1IFN85PGpZ1F6M72dz+5r0uQsPcnzIaRS64roF6swKp7p78O/SNZtozUYeNoaPW3F0bEKLjETw==","tarball":"https://registry.npmjs.org/@avolantis/ts-guid/-/ts-guid-0.1.0-preview.2.tgz","fileCount":16,"unpackedSize":51025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVlecCRA9TVsSAnZWagAAFt0P+gMMIGG0Svrba03f6W5J\nEVQTKCx676/y19uS3tyHUSvKsbiF/IWCIHrVl44wh56t8IApMb6dXaSnNc3K\n79Z3nUFNgn8gbTkFj0u78B78npERMMCXRp+AHWCUZON8IHEuqrlGILRmhE8M\nBbDsODmFTFzbw8E9Nl1XUzlDEtDtwBB1lsQW+nRZeg6n+Sux7f7dmG27E15D\n2bZU7l7YdR79AsqbBHnbeMDTQXfz868ZNy/GB8AO22RwBZa96A3a1J5p5Si1\n6BhkjFAutiLe63Di3/MA/p4sDpmgcasQO5CnFkH4uBvFqbgv7axk0wGXfZlB\nyic0bWxZqF9ex0/mJRtWsCIee2ZXJV6fVEOef2R9BAW5PryWb+tD8k3inb1L\npJhySRfMoO42A2zt2XcIKbanEfDVWXZXTVZ9tUpg+Bvvut3I7TtcVTLP+0ZC\nvLwtMxF/1LtioLwb0hWGBQevucON6Kc4SYFw9fUy2zpRiDG3OWtdwMEfrZsa\nbctZTYx2iblh5QYlXhp7fwlnW8dqwuL6GR4NckyZQxzS5uHfQKoO192lGZdU\nhWBthfCNgZUWJDNBElGolQemG3O1cigS1Ti/B2Aig83qz8tYxe8baXpGd06l\nAO23lzibBF+z2sMnEcy5nheHZma5EPVhgb3vEKM7tTJDrZ5yPRSD+YGfwUGd\nT2Im\r\n=yiZW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx5MiwVfyM2PjjpclzAEAOU6AndkQ+x33l4IgkRJluJgIgCxX2X582FTroXa5b5z2Yv/c6Zi4s5jgTz4/CIuHZZMw="}]},"_npmUser":{"name":"bencelang","email":"bence.lang@avolantis.net"},"directories":{},"maintainers":[{"name":"bencelang","email":"bence.lang@avolantis.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-guid_0.1.0-preview.2_1616271260218_0.749949093383498"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.0-preview.3":{"name":"@avolantis/ts-guid","version":"0.1.0-preview.3","keywords":["guid","uuid","unique","uniqueidentifier","id","identifier","uuid-generator"],"description":"TypeScript implementation of GUIDs (v4 UUIDs)","homepage":"https://github.com/avolantis/ts-guid#readme","repository":{"type":"git","url":"https://github.com/avolantis/ts-guid"},"bugs":{"url":"https://github.com/avolantis/ts-guid/issues"},"author":{"name":"Avolantis","email":"info@avolantis.net","url":"https://avolantis.net"},"license":"MIT","main":"dist/ts-guid.es6.cjs.js","module":"dist/ts-guid.es6.esm.js","browser":"dist/ts-guid.es6.iife.js","unpkg":"dist/ts-guid.es6.umd.js","types":"types/index.d.ts","scripts":{"build":"yarn clean && tsc && rollup -c ./config/rollup.js","build:ci":"cross-env CI=true tsc && rollup -c ./config/rollup.js","changelog":"conventional-changelog -i ./CHANGELOG.md -s -n ./config/changelog.js","ci":"yarn install --frozen-lockfile --non-interactive","clean":"rimraf dist types","clean:deps":"rimraf node_modules","dev":"tsc --watch --noEmit","lint":"yarn lint:files .","lint:ci":"eslint .","lint:files":"eslint --fix","release":"standard-version","test":"jest -c config/jest.js","test:ci":"cross-env CI=true yarn lint:ci && yarn test:coverage","test:coverage":"yarn test --coverage"},"gitHooks":{"pre-commit":"lint-staged -c ./config/lint-staged.js","commit-msg":"commitlint -g ./config/commitlint.js -E GIT_PARAMS"},"prettier":"./config/prettier.js","dependencies":{},"devDependencies":{"@commitlint/config-conventional":"^12.0.1","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.2.0","@types/jest":"^26.0.15","@types/node":"^14.14.6","@typescript-eslint/eslint-plugin":"^4.4.0","@typescript-eslint/parser":"^4.4.0","commitlint":"^12.0.1","conventional-changelog-cli":"^2.1.1","conventional-changelog-conventionalcommits":"^4.5.0","cross-env":"^7.0.2","esbuild":"^0.9.0","eslint":"^7.11.0","eslint-plugin-jest":"^24.1.0","eslint-plugin-package-json":"^0.1.4","eslint-plugin-prettier":"^3.1.3","jest":"^26.6.3","lint-staged":"^10.5.0","prettier":"^2.1.2","rimraf":"^3.0.2","rollup":"^2.32.1","rollup-plugin-dts":"^3.0.1","rollup-plugin-esbuild":"^3.0.0","rollup-plugin-node-externals":"^2.2.0","standard-version":"^9.0.0","ts-jest":"^26.4.3","typescript":"^4.0.5","yorkie":"^2.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2020 Avolantis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@avolantis/ts-guid@0.1.0-preview.3","dist":{"shasum":"849dc248b6035fab1c9f2d2f664dd4d6ac75f1eb","integrity":"sha512-IfJOIBGnWXTNef4mqA1GGBxeeHmojwrm/KgNRG5lXPyBDxTPhc79oWiFrPYfWAfK1cOa7bcDJSTq+nfG2+CLHA==","tarball":"https://registry.npmjs.org/@avolantis/ts-guid/-/ts-guid-0.1.0-preview.3.tgz","fileCount":48,"unpackedSize":276000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVliECRA9TVsSAnZWagAAgK8P/RNj+OH0BHT2PSavddoN\ns5jMwwN8yVMjj49JuAtjkDl1YaB6G3ZWUzfR4tY52r+eEfoJgqrBowg+N14E\nGhoOg4igpbFlERvOGOvXdNC+zA50Wy4ZkkyxDSrzi3Nz0dqnHpBQ4tBKZjBF\noOtE/rsfZcFC74uguvdWrig+r0/62G5r15Qzxfxy/dNpd676T2vH0bfbTcut\nFh5fKNQdYedmy+cX9Y+0ChPS19mkPjN/n0JkRRnliqKsUoPyC/QEWxc9mKcE\ni5WzRNsIvNjf14iXHDia/T4/LnuFDDY1dYaNsMupoocNECF/Szgio3QafrSO\nx67LN7MXoFq2+h7RTnREtVXQ2iS7+/XRxNEZUwz9jcNdS8DLxusEkDNHTra/\nxFD3w34MAouUX0ax2sPgV3mJ3Z7uomNOIRtvacBJQ1Dna6WTVH2tvQabfzVW\nE8SEB0rBFt30gTSIkX/uyz8qmooHP6UMyeS9n+s8fUgRqoS4nKQBSRSClRSY\n/FPmhBZfH0zUggr93RCzUZ19i5hR/CCvGFKAjwNrNuAic8mGnTOFhCzsmEYC\nn7JfkV3TLnwr2auvn/oPC6hn6OtEVd3OG/PFYtUL7hEHSPaR701AerANqIeL\nfzmBgCZrFHH77SLO1uxVGDoh/K9Dnmzxa74SY4P5i506Q0gmp0liqrg6eBJu\n0JIW\r\n=VxCt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfOTqW9y8Jq30PBOi9Grvh58em3wwKX89j6nnVxxSs5gIhANjTdLnoCUsLRyYYdBdVy5NCTladeo41EUCXfcezzJQ+"}]},"_npmUser":{"name":"bencelang","email":"bence.lang@avolantis.net"},"directories":{},"maintainers":[{"name":"bencelang","email":"bence.lang@avolantis.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-guid_0.1.0-preview.3_1616271492213_0.5260977653358041"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2020-11-20T02:51:21.066Z","0.1.0-preview.0":"2020-11-20T02:51:21.617Z","modified":"2023-03-14T23:57:46.499Z","0.1.0-preview.1":"2021-03-10T20:31:00.654Z","0.1.0-preview.2":"2021-03-20T20:14:20.353Z","0.1.0-preview.3":"2021-03-20T20:18:12.437Z"},"maintainers":[{"name":"bencelang","email":"bence.lang@avolantis.net"}],"description":"TypeScript implementation of GUIDs (v4 UUIDs)","homepage":"https://github.com/avolantis/ts-guid#readme","keywords":["guid","uuid","unique","uniqueidentifier","id","identifier","uuid-generator"],"repository":{"type":"git","url":"https://github.com/avolantis/ts-guid"},"author":{"name":"Avolantis","email":"info@avolantis.net","url":"https://avolantis.net"},"bugs":{"url":"https://github.com/avolantis/ts-guid/issues"},"license":"MIT","readme":"# `@avolantis/ts-guid`\n> TypeScript implementation of [RFC 4122](https://tools.ietf.org/html/rfc4122) GUIDs (UUIDs)\n\n[![npm semver](https://img.shields.io/badge/semver-v0.1.0--preview.3-269539.svg?logo=npm)](https://www.npmjs.com/package/@avolantis/ts-guid)\n![develop ci](https://github.com/avolantis/ts-guid/workflows/CI/badge.svg?branch=develop)\n[![coverage](https://coveralls.io/repos/github/avolantis/ts-guid/badge.svg)](https://coveralls.io/github/avolantis/ts-guid)\n[![dependabot](https://img.shields.io/badge/dependabot-enabled-025e8c.svg?logo=dependabot)](https://dependabot.com)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?logo=prettier)](https://github.com/prettier/prettier)\n\nFeatures:\n- Use with JavaScript or TypeScript\n- Supports node.js and the browser\n- OOP friendly API\n- Can generate collision-proof [RFC 4122](https://tools.ietf.org/html/rfc4122) V4 GUIDs\n- Zero package.json production dependencies\n- Shipped as\n    - TypeScript sources (`src/`)\n    - TypeScript declarations (`types/`)\n    - Distribution bundles (`dist/`):\n      - ESNext modules *(esm)* targeting browsers and node\n      - ES6 modules *(esm)* targeting browsers and node\n      - ES6 self-executing function *(iife)*\n      - ES6 [Unpkg](https://unpkg.com) bundle *(umd)*\n      - ES6 CommonJs bundle *(cjs)* for `node.js >= v12`\n- String comparison rather than number arrays (better performance)\n\n## Usage\n\n### As an npm dependency\nAdd this module to your `package.json` via yarn, npm or pnpm:\n```\nyarn add @avolantis/ts-guid\n# OR\nnpm install --save @avolantis/ts-guid\n# OR\npnpm install --save @avolantis/ts-guid\n```\n\nThen in your program files:\n```javascript\n// ES Modules OR\nimport { Guid } from \"@avolantis/ts-guid\";\n// Common Js require for old versions of node.js\nconst { Guid } = require(\"@avolantis/ts-guid\");\n\n// Simple usage\nconsole.log(Guid.newGuid());\nconsole.log(Guid.EMPTY.toString());\nconsole.log(Guid.parse(\"c959e321-19df-474c-a2e7-df268dbf3998\").toByteArray());\nconsole.log(JSON.stringify(Guid.newGuid()));\n\n// More features\nconst user = {\n  id: Guid.newGuid(),\n  name: \"John Doe\",\n  email: \"john@doe.com\"\n};\n\n// Can be converted to JSON when inside an object\nconsole.log(JSON.stringify(user, null, 2));\n\n// Output:\n// {\n//   \"id\": \"c959e321-19df-474c-a2e7-df268dbf3998\",\n//   \"name\": \"John Doe\",\n//   \"email\": \"john@doe.com\"\n// }\n\nconsole.log(`User ${user.id} not found!`);\n\n// Output:\n// User {c959e321-19df-474c-a2e7-df268dbf3998} not found!\n```\n\n> **NOTE**\\\n> If you are targeting browsers without Crypto API support, you either need to polyfill this feature, or\n> [enable unsafe random generation (deprecated)](#the-unsafe-random-generator-function-deprecated).\n> Polyfills for the Crypto API are not included in the bundles.\n\n### unpkg usage\nThis package includes transpiled and polyfilled code for direct usage via [unpkg](https://unpkg.com) or\n[skypack](https://www.skypack.dev/) in browsers that support ESM features or satisfies the\n`> 0.25%, last 2 versions, not dead` [browserslist](https://github.com/browserslist/browserslist) query. \n\n```html\n<!-- Browsers with ESM support -->\n<script type=\"module\" src=\"https://unpkg.com/@avolantis/ts-guid/dist/ts-guid.esm.min.js\"></script>\n<!-- UMD -->\n<script src=\"https://unpkg.com/@avolantis/ts-guid\"></script>\n<!-- IIFE -->\n<script src=\"https://unpkg.com/@avolantis/ts-guid/dist/ts-guid.iife.min.js\"></script>\n\n<!-- Recommended (target both): -->\n<script type=\"module\" src=\"https://unpkg.com/@avolantis/ts-guid/dist/ts-guid.esm.min.js\"></script>\n<script nomodule src=\"https://unpkg.com/@avolantis/ts-guid\"></script>\n```\n\nThen in your scripts:\n```javascript\nconst { Guid } = TsGuid;\n// ...\n```\n\n## API\n\n### Static factory methods\n#### `Guid.newGuid()`\nGenerates a new GUID using [the generator function](#the-generator-function).\nIf no generator function is available, it always returns `Guid.EMPTY`.\n\n#### `Guid.parse(value)` *(might throw!)*\nParses a string value that represents a GUID.\nReturns the parsed `Guid` or `Guid.EMPTY`, if given an invalid value.\n**Throws** `TypeError`, if value is not a `string` and does not coerce `null`.\n\n#### `Guid.fromByteArray(array)` *(might throw!)*\nReturns the `Guid` composed of the given bytes.\\\n**Throws** `TypeError`, if value is not an `Array`, it's not of length 16 or any\nof the values coerces `null` or not within 0 and 255.\n\n#### `Guid.fromJSON(json)` *(might throw!)*\nParses a json string that represents a GUID state.\nReturns the parsed `Guid` or `Guid.EMPTY`, if value is `null` or an invalid\nstring.\\\n**Throws** `TypeError`, if value is `undefined` or not a `string`.\n\n### Static methods\n#### `Guid.isGuid(value)`\nReturns true if `value` is an instance of `Guid`.\n\n#### `Guid.compare(guid1, guid2)`\nCompares two `Guid`-s using locale-specific comparison of their string\nrepresentations.\\\nThe result table:\n\n| `guid1` < `guid2` | `guid1` === `guid2` | otherwise |\n|----|---|---|\n| -1 | 0 | 1 |\n\nThis is useful when ordering an array of `Guid`-s, like so:\n```javascript\nconst arr = [Guid.newGuid(), Guid.newGuid(), Guid.newGuid()];\nconsole.log(arr);\n// Sort alphabetically\nconsole.log(arr.sort(Guid.compare));\n// Sort alphabetically in reversed order\nconsole.log(arr.sort(Guid.compare).reverse());\n```\n\n#### `Guid.equals(guid1, guid2)`\nReturns true, if both\n- `guid1` represents the same GUID as `guid2`, and\n- `guid1` and `guid2` are instances of `Guid`\n```javascript\nconst a = Guid.newGuid();\nconst b = Guid.newGuid();\nconsole.log(a.equals(b)); // Prints false\n\n// DO NOT USE THE '==' OR '===' OPERATORS, as they compare objects by reference\nconst a = Guid.parse(\"c959e321-19df-474c-a2e7-df268dbf3998\");\nconst b = Guid.parse(\"c959e321-19df-474c-a2e7-df268dbf3998\");\nconsole.log(a == b); // Prints false, which is WRONG\nconsole.log(a === b); // Prints false, which is WRONG\n```\n\n#### `Guid.validate(value)`\nDetermines if a string or bytes array value represents a valid GUID.\n\n### Static properties\n\n#### `Guid.EMPTY` (read-only)\nThe `Guid` that represents an empty (NIL) GUID.\n\n#### `Guid.generator`\nThe [the generator function](#the-generator-function) used to generate new\n`Guid`-s.\n\n### Instance methods\n\n#### `compare(other)`\n\n| `this` < `other` | `this` === `other` | otherwise |\n|----|---|---|\n| -1 | 0 | 1 |\n\n#### `equals(other)`\nReturns true if `other` is Guid and represents the same GUID as this one.\n\n#### `isEmpty()`\nReturns true if the GUID equals to `Guid.EMPTY`, otherwise false.\n\n#### `toByteArray()`\nReturns an array of 16 bytes (8-bit unsigned integers) that this GUID is\ncomposed of. If missing *(ie. not created from a byte array)*, the bytes are\ncomputed once then cached for frequent access. Internal computation of some\nfields require the byte array value to be computed, these can cause the value\nto be already cached upon first direct access.\n\n#### `toJSON()`\nReturns the json representation of this GUID (which is its string\nrepresentation). This method gets automatically called by the `JSON.stringify()`\nmethod, so usage of the latter is also supported when an object has a field of\ntype `Guid`. For example: `JSON.stringify(user)`, where `user` has property `id`,\nwhich is of type `Guid`, the JSON string output contains the string\nrepresentation of that GUID.\n\n#### `toString()`\nReturns the string representation of the GUID. The representation is always\ncalculated and available from cache.\n\n#### `valueOf()`\nReturns the primitive (string) representation of this GUID. This overload allows\nthe use of comparison operators (`<`, `<=`, `>` and `>=`) with `Guid`-s.\n**Note** that javascript compares strings based on character code order,\nto preform true alphabetical comparison, use `Guid.copmare(a, b)` or\n`a.compare(b)`.\n\n### Instance properties\n\n> The following values are computed once, then cached for frequent access\n\n#### `variant` (read-only)\nThe RFC variant identifier of this GUID. Example: `GuidVariant.MicrosoftReserved`\\\nThe value of this field determines the layout of the bytes in the byte array of\nthe components in the GUID.\n\n#### `version` (read-only)\nThe RFC version number of this GUID. Example: `GuidVersion.V4`\n\n> The following values are computed on demand (from the cached byte array)\n\n#### `clock_seq_low` (read-only)\nThe `clock_seq_low` field of this GUID, specified by the RFC. It is an 8-bit\nunsigned integer.\n\n#### `clock_seq_hi_and_reserved` (read-only)\nThe `clock_seq_hi_and_reserved` field of this GUID, specified by the RFC. It is\nan 8-bit unsigned integer.\n\n#### `time_low` (read-only)\nThe `time_low` field of this GUID, specified by the RFC. It is a 32-bit unsigned\ninteger.\n\n#### `time_mid` (read-only)\nThe `time_mid` field of this GUID, specified by the RFC. It is a 16-bit unsigned\ninteger.\n\n#### `time_high_and_version` (read-only)\nThe `time_high_and_version` field of this GUID, specified by the RFC. It is a\n16-bit unsigened integer.\n\n#### `node` (read-only)\nThe `node` field of this GUID. It is an 8-bit unsigned integer array of size 6,\nrepresenting the 48-bit unsigned integer specified by the RFC.\n\n### The generator function\n> Currently, only one generator for RFC version V4 GUIDs is implemented.\n> PR-s are welcome :)\n\nThe default implementation for generating new values uses the crypto API to\nseed the generation process of V4 GUIDs. However, this can be changed via\nsetting the `Guid.generator` static property to a different generator function,\nfor example a function, that generates GUID-s sequentially for use with RDBMS.\n\n```js\n// A generator function that returns a byte array\nGuid.generator = function() {\n  return new Array(16).fill(0);\n}\n\n// A generator function that returns a string\nGuid.generator = function() {\n  return \"<here comes a new value>\";\n}\n```\n\nIf the default generator function is not available due to the missing\ncryptographic random generator, a warning message is printed to the console.\nThis allows developers to identify this issue on a given platform, and either\nsupply a polyfill or provide another generator function.\n\n#### The **unsafe** random generator function *(deprecated)*\n> **DANGER ZONE**\\\n> This is only for environments, where the incresaed rate of collisions does not\n> affect data safety. Use this only if you know what you are doing.\n\nOnly a cryptographic random number generator is recommended to seed the\ngeneration of new GUIDs, however certain JS platforms still does not provide\nsuch API. You can explicitly enable a fallback behavior to `Math.random()`\nusing the supplied generator function.\n\n```js\nimport { Guid, unsafeRandom } from \"@avolantis/ts-guid\";\n\nGuid.generator = unsafeRandom;\n```\n\n## Issues and Roadmap\nSee the [GitHub issues](https://github.com/avolantis/ts-guid/issues) for more information.\n\n## Similar libraries\n- [uuid](https://github.com/uuidjs/uuid) \\\nThe industry standard JS implementation of UUIDs. It is an EcmaScript Stage 1 proposal,\nbut without TS declarations and with a not so OOP-friendly API.\n- [ts-guid](https://github.com/willemtoerien/ts-guid) \\\nNo license, improper random generation and validation, no multi-version support.\n- [guid-typescript](https://github.com/NicolasDeveloper/guid-typescript) \\\nNo license and breaking bugs, no multi-version support.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}