Move from Prettier and ESLint to oxfmt and oxlint
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Andrey Sitnik · committed by Andrey Sitnik · parent 7427146 · Browse files · 14 files·+936 added−1890 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
14 files+936 added−1890 removed
- tests:+2 added−2 removed
- other:+934 added−1888 removed
Provenance
- Commit
4bf7b85- Tree
32ae41b- Author
Andrey Sitnik <andrey@sitnik.es>- Committer
Andrey Sitnik <andrey@sitnik.es>- Parent
7427146
14 files changed+936 added−1890 removed
modified:test/demo/index.html+2 added-2 removed
112344567839 unmodified lines<!DOCTYPE html><!doctype html><html> <head> <meta charset="UTF-8"> <meta charset="UTF-8" /> <title>Nano ID</title> <style> body { font-family: monospace;39 unmodified linesadded:.prettierrc.js+3 added
123import loguxOxfmtConfig from '@logux/oxc-configs/fmt'
export default loguxOxfmtConfigmodified:CHANGELOG.md+274 added-158 removed
1 # Change Log2+3 This project adheres to [Semantic Versioning](http://semver.org/).4 5 ## 5.1.75-* Added `--version` to CLI (by @mahmoodhamdi).6-* Updated `nanoid.js` for CDN (by @mahmoodhamdi).7-* Fixed docs (by @mahmoodhamdi).8-* Fixed `customRandom` types (by @oguimbal).6 7+- Added `--version` to CLI (by @mahmoodhamdi).8+- Updated `nanoid.js` for CDN (by @mahmoodhamdi).9+- Fixed docs (by @mahmoodhamdi).10+- Fixed `customRandom` types (by @oguimbal).11+12 ## 5.1.611-* Fixed infinite loop on 0 size for `customAlphabet`.13 14+- Fixed infinite loop on 0 size for `customAlphabet`.15+16 ## 5.1.514-* Fixed latest version on npm after 3.x release.17 18+- Fixed latest version on npm after 3.x release.19+20 ## 5.1.417-* Fixed latest version on npm after 3.x release.21 22+- Fixed latest version on npm after 3.x release.23+24 ## 5.1.320-* Fixed React Native support (by @steida).25 26+- Fixed React Native support (by @steida).27+28 ## 5.1.223-* Fixed module docs.29 30+- Fixed module docs.31+32 ## 5.1.126-* Fixed opaque types support for non-secure generator.27-* Added JSR support.33 34+- Fixed opaque types support for non-secure generator.35+- Added JSR support.36+37 ## 5.1.030-* Added opaque types support (by @kossnocorp).38 39+- Added opaque types support (by @kossnocorp).40+41 ## 5.0.933-* Fixed a way to break Nano ID by passing non-integer size (by @myndzi).42 43+- Fixed a way to break Nano ID by passing non-integer size (by @myndzi).44+45 ## 5.0.836-* Reduced `customAlphabet` size (by @kirillgroshkov).46 47+- Reduced `customAlphabet` size (by @kirillgroshkov).48+49 ## 5.0.739-* Fixed Parcel support (by @WilhelmYakunin).50 51+- Fixed Parcel support (by @WilhelmYakunin).52+53 ## 5.0.642-* Fixed React Native support.54 55+- Fixed React Native support.56+57 ## 5.0.545-* Make browser’s version faster by increasing size a little (by Samuel Elgozi).58 59+- Make browser’s version faster by increasing size a little (by Samuel Elgozi).60+61 ## 5.0.448-* Fixed CLI docs (by @ilyaboka).62 63+- Fixed CLI docs (by @ilyaboka).64+65 ## 5.0.351-* Fixed CLI docs (by Chris Schmich).66 67+- Fixed CLI docs (by Chris Schmich).68+69 ## 5.0.254-* Fixed `webcrypto` import (by Divyansh Singh).70 71+- Fixed `webcrypto` import (by Divyansh Singh).72+73 ## 5.0.157-* Fixed Node.js 18 support.74 75+- Fixed Node.js 18 support.76+77 ## 5.060-* Moved Node.js version to Web Crypto API.61-* Removed async API since Web Crypto API has only sync version.62-* Removed Node.js 14 and 16 support.78 79+- Moved Node.js version to Web Crypto API.80+- Removed async API since Web Crypto API has only sync version.81+- Removed Node.js 14 and 16 support.82+83 ## 4.0.265-* Added [link](https://github.com/sponsors/ai) to Github Sponsors.84 85+- Added [link](https://github.com/sponsors/ai) to Github Sponsors.86+87 ## 4.0.168-* Reduced npm package size (by @HiChen404).88 89+- Reduced npm package size (by @HiChen404).90+91 ## 4.092+71-* Removed CommonJS support. Nano ID 4 will work only with ESM applications.93+- Removed CommonJS support. Nano ID 4 will work only with ESM applications.94 We will support 3.x branch with CommonJS for users who can’t migrate to ESM.73-* Removed Node.js 10 and Node.js 12 support.74-* Reduced npm package size.95+- Removed Node.js 10 and Node.js 12 support.96+- Reduced npm package size.97 98 ## 3.3.1177-* Fixed React Native support.99 100+- Fixed React Native support.101+102 ## 3.3.1080-* Fixed React Native support (by @steida).103 104+- Fixed React Native support (by @steida).105+106 ## 3.3.983-* Reduced npm package size.107 108+- Reduced npm package size.109+110 ## 3.3.886-* Fixed a way to break Nano ID by passing non-integer size (by @myndzi).111 112+- Fixed a way to break Nano ID by passing non-integer size (by @myndzi).113+114 ## 3.3.789-* Fixed `node16` TypeScript support (by Saadi Myftija).115 116+- Fixed `node16` TypeScript support (by Saadi Myftija).117+118 ## 3.3.692-* Fixed package.119 120+- Fixed package.121+122 ## 3.3.595-* Backport funding information.123 124+- Backport funding information.125+126 ## 3.3.498-* Fixed `--help` in CLI (by @Lete114).127 128+- Fixed `--help` in CLI (by @Lete114).129+130 ## 3.3.3101-* Reduced size (by Anton Khlynovskiy).131 132+- Reduced size (by Anton Khlynovskiy).133+134 ## 3.3.2104-* Fixed `enhanced-resolve` support.135 136+- Fixed `enhanced-resolve` support.137+138 ## 3.3.1107-* Reduced package size.139 140+- Reduced package size.141+142 ## 3.3110-* Added `size` argument to function from `customAlphabet` (by Stefan Sundin).143 144+- Added `size` argument to function from `customAlphabet` (by Stefan Sundin).145+146 ## 3.2113-* Added `--size` and `--alphabet` arguments to binary (by Vitaly Baev).147 148+- Added `--size` and `--alphabet` arguments to binary (by Vitaly Baev).149+150 ## 3.1.32116-* Reduced `async` exports size (by Artyom Arutyunyan).117-* Moved from Jest to uvu (by Vitaly Baev).151 152+- Reduced `async` exports size (by Artyom Arutyunyan).153+- Moved from Jest to uvu (by Vitaly Baev).154+155 ## 3.1.31120-* Fixed collision vulnerability on object in `size` (by Artyom Arutyunyan).156 157+- Fixed collision vulnerability on object in `size` (by Artyom Arutyunyan).158+159 ## 3.1.30123-* Reduced size for project with `brotli` compression (by Anton Khlynovskiy).160 161+- Reduced size for project with `brotli` compression (by Anton Khlynovskiy).162+163 ## 3.1.29126-* Reduced npm package size.164 165+- Reduced npm package size.166+167 ## 3.1.28129-* Reduced npm package size.168 169+- Reduced npm package size.170+171 ## 3.1.27132-* Cleaned `dependencies` from development tools.172 173+- Cleaned `dependencies` from development tools.174+175 ## 3.1.26135-* Improved performance (by Eitan Har-Shoshanim).136-* Reduced npm package size.176 177+- Improved performance (by Eitan Har-Shoshanim).178+- Reduced npm package size.179+180 ## 3.1.25139-* Fixed `browserify` support.181 182+- Fixed `browserify` support.183+184 ## 3.1.24142-* Fixed `browserify` support (by Artur Paikin).185 186+- Fixed `browserify` support (by Artur Paikin).187+188 ## 3.1.23145-* Fixed `esbuild` support.189 190+- Fixed `esbuild` support.191+192 ## 3.1.22148-* Added `default` and `browser.default` to `package.exports`.193 194+- Added `default` and `browser.default` to `package.exports`.195+196 ## 3.1.21151-* Reduced npm package size.197 198+- Reduced npm package size.199+200 ## 3.1.20154-* Fix ES modules support.201 202+- Fix ES modules support.203+204 ## 3.1.19157-* Reduced `customAlphabet` size (by Enrico Scherlies).205 206+- Reduced `customAlphabet` size (by Enrico Scherlies).207+208 ## 3.1.18160-* Fixed `package.exports`.209 210+- Fixed `package.exports`.211+212 ## 3.1.17163-* Added files without `process`.213 214+- Added files without `process`.215+216 ## 3.1.16166-* Speeded up Nano ID 4 times (by Peter Boyer).217 218+- Speeded up Nano ID 4 times (by Peter Boyer).219+220 ## 3.1.15169-* Fixed `package.types` path.221 222+- Fixed `package.types` path.223+224 ## 3.1.14172-* Added `package.types`.225 226+- Added `package.types`.227+228 ## 3.1.13175-* Removed Node.js 15.0.0 with `randomFillSync` regression from `engines.node`.229 230+- Removed Node.js 15.0.0 with `randomFillSync` regression from `engines.node`.231+232 ## 3.1.12178-* Improved IE 11 docs.233 234+- Improved IE 11 docs.235+236 ## 3.1.11181-* Fixed asynchronous `customAlphabet` in browser (by @LoneRifle).237 238+- Fixed asynchronous `customAlphabet` in browser (by @LoneRifle).239+240 ## 3.1.10184-* Fix ES modules support.241 242+- Fix ES modules support.243+244 ## 3.1.9187-* Try to fix React Native Expo support.245 246+- Try to fix React Native Expo support.247+248 ## 3.1.8190-* Add React Native Expo support.249 250+- Add React Native Expo support.251+252 ## 3.1.7193-* Clean up code.253 254+- Clean up code.255+256 ## 3.1.6196-* Avoid `self` using.257 258+- Avoid `self` using.259+260 ## 3.1.5199-* Improve IE docs and warning.261 262+- Improve IE docs and warning.263+264 ## 3.1.4202-* Restrict old Node.js 13 by `engines.node` (by Cansin Yildiz).265 266+- Restrict old Node.js 13 by `engines.node` (by Cansin Yildiz).267+268 ## 3.1.3205-* Fix ES modules issue with CLI.269 270+- Fix ES modules issue with CLI.271+272 ## 3.1.2208-* Add shebang to CLI.273 274+- Add shebang to CLI.275+276 ## 3.1.1211-* Fix CLI.277 278+- Fix CLI.279+280 ## 3.1214-* Add `npx nanoid` CLI.281 282+- Add `npx nanoid` CLI.283+284 ## 3.0.2217-* Fix docs (by Dylan Irlbeck ).285 286+- Fix docs (by Dylan Irlbeck ).287+288 ## 3.0.1220-* Fix React Native warning on `non-secure` import (by Jia Huang).289 290+- Fix React Native warning on `non-secure` import (by Jia Huang).291+292 ## 3.0293+294 **Migration guide:** <https://github.com/ai/nanoid/releases/tag/3.0.0>224-* Move to ES2016 syntax. You need to use Babel for IE 11.225-* Move to named exports `import { nanoid } from 'nanoid'`.226-* Move `import url from 'nanoid/url'` to `import { urlAlphabet } from 'nanoid'`.227-* Replace `format()` to `customRandom()`.228-* Replace `generate()` to `customAlphabet()`.229-* Remove `async/format`.230-* Remove React Native support for `nanoid/async`.231-* Add `nanoid.js` to use directly in browser from CDN.232-* Add TypeScript type definitions.233-* Add ES modules support for bundlers, Node.js, and React Native.234-* Fix React Native support.235-* Reduce size.236-* Improve docs (by Dair Aidarkhanov).295 296+- Move to ES2016 syntax. You need to use Babel for IE 11.297+- Move to named exports `import { nanoid } from 'nanoid'`.298+- Move `import url from 'nanoid/url'` to `import { urlAlphabet } from 'nanoid'`.299+- Replace `format()` to `customRandom()`.300+- Replace `generate()` to `customAlphabet()`.301+- Remove `async/format`.302+- Remove React Native support for `nanoid/async`.303+- Add `nanoid.js` to use directly in browser from CDN.304+- Add TypeScript type definitions.305+- Add ES modules support for bundlers, Node.js, and React Native.306+- Fix React Native support.307+- Reduce size.308+- Improve docs (by Dair Aidarkhanov).309+310 ## 2.1.11239-* Reduce size (by Anton Evzhakov).311 312+- Reduce size (by Anton Evzhakov).313+314 ## 2.1.10242-* Reduce size by 10% (by Anton Khlynovskiy).315 316+- Reduce size by 10% (by Anton Khlynovskiy).317+318 ## 2.1.9245-* Reduce `format` and `async/format` size (by Dair Aidarkhanov).319 320+- Reduce `format` and `async/format` size (by Dair Aidarkhanov).321+322 ## 2.1.8248-* Improve React docs (by Nahum Zsilva).323 324+- Improve React docs (by Nahum Zsilva).325+326 ## 2.1.7251-* Reduce `index`, `async` and `non-secure` size (by @polemius).327 328+- Reduce `index`, `async` and `non-secure` size (by @polemius).329+330 ## 2.1.6254-* Reduce size (by Stas Lashmanov).255-* Return fast mask for Node.js.331 332+- Reduce size (by Stas Lashmanov).333+- Return fast mask for Node.js.334+335 ## 2.1.5258-* Reduce size (by Max Graey).259-* Fix IE support.336 337+- Reduce size (by Max Graey).338+- Fix IE support.339+340 ## 2.1.4262-* Reduce `generate` size (by Vsevolod Rodionov).263-* Reduce `format` and `format` size (by Victor).264-* Reduce `async`, `non-secure` and `non-secure/generate` size.265-* Speed up `format` and `async/format` (by Max Graey).266-* Improve development process on Windows (by Stanislav Lashmanov).341 342+- Reduce `generate` size (by Vsevolod Rodionov).343+- Reduce `format` and `format` size (by Victor).344+- Reduce `async`, `non-secure` and `non-secure/generate` size.345+- Speed up `format` and `async/format` (by Max Graey).346+- Improve development process on Windows (by Stanislav Lashmanov).347+348 ## 2.1.3269-* Improve performance (by Stephen Richardson).270-* Reduce size (by Stephen Richardson).349 350+- Improve performance (by Stephen Richardson).351+- Reduce size (by Stephen Richardson).352+353 ## 2.1.2273-* Improve docs.354 355+- Improve docs.356+357 ## 2.1.1276-* Fix React Native support (by Shawn Hwei).358 359+- Fix React Native support (by Shawn Hwei).360+361 ## 2.1279-* Improve React Native support (by Sebastian Werner).362 363+- Improve React Native support (by Sebastian Werner).364+365 ## 2.0.4282-* Improve error text for React Native (by Sebastian Werner).366 367+- Improve error text for React Native (by Sebastian Werner).368+369 ## 2.0.3285-* Fix freeze on string in ID length.370 371+- Fix freeze on string in ID length.372+373 ## 2.0.2288-* Improve docs (by Sylvanus Kateile and Mark Stosberg).374 375+- Improve docs (by Sylvanus Kateile and Mark Stosberg).376+377 ## 2.0.1291-* Reduce npm package size.292-* Mark package as not having side effects (by @xiaody).378 379+- Reduce npm package size.380+- Mark package as not having side effects (by @xiaody).381+382 ## 2.0295-* Use `-` instead of `~` in default alphabet to by file name safe.296-* Add `nanoid/non-secure/generate`.383 384+- Use `-` instead of `~` in default alphabet to by file name safe.385+- Add `nanoid/non-secure/generate`.386+387 ## 1.3.4299-* Reduce `non-secure` size.300-* Add `async` callback type check.388 389+- Reduce `non-secure` size.390+- Add `async` callback type check.391+392 ## 1.3.3303-* Fix `nanoid/async` performance regression.304-* Fix old Node.js `not seeded` issue in synchronous version too.393 394+- Fix `nanoid/async` performance regression.395+- Fix old Node.js `not seeded` issue in synchronous version too.396+397 ## 1.3.2307-* Fix random generator `not seeded` issue of old Node.js.398 399+- Fix random generator `not seeded` issue of old Node.js.400+401 ## 1.3.1310-* Reduce library size.402 403+- Reduce library size.404+405 ## 1.3313-* Add `nanoid/async/format` and `nanoid/async/generate`.314-* Improve synchronous API performance.315-* Reduce `url` size (by Daniil Poroshin).316-* Improve React Native docs (by joelgetaction).406 407+- Add `nanoid/async/format` and `nanoid/async/generate`.408+- Improve synchronous API performance.409+- Reduce `url` size (by Daniil Poroshin).410+- Improve React Native docs (by joelgetaction).411+412 ## 1.2.6319-* Reduce library size (by rqrqrqrq).413 414+- Reduce library size (by rqrqrqrq).415+416 ## 1.2.5322-* Fix Node.js 6.11.1 support (by Andrey Belym).417 418+- Fix Node.js 6.11.1 support (by Andrey Belym).419+420 ## 1.2.4325-* Speed up Node.js secure generators (by Dmitriy Tsvettsikh).421 422+- Speed up Node.js secure generators (by Dmitriy Tsvettsikh).423+424 ## 1.2.3328-* Fix JSDoc (by Hendry Sadrak).425 426+- Fix JSDoc (by Hendry Sadrak).427+428 ## 1.2.2331-* Fix distribution in `nanoid/non-secure` (by Eatall).429 430+- Fix distribution in `nanoid/non-secure` (by Eatall).431+432 ## 1.2.1334-* Fix old Node.js support.433 434+- Fix old Node.js support.435+436 ## 1.2337-* Add `nanoid/async`.338-* Fix `nanoid/non-secure` JSDoc.339-* Add Chinese documentation (by Wenliang Dai).340-* Speed up and reduce size of `nanoid/non-secure` (by Ori Livni).437 438+- Add `nanoid/async`.439+- Fix `nanoid/non-secure` JSDoc.440+- Add Chinese documentation (by Wenliang Dai).441+- Speed up and reduce size of `nanoid/non-secure` (by Ori Livni).442+443 ## 1.1.1343-* Improve performance and reduce size of non-secure ID generator.444 445+- Improve performance and reduce size of non-secure ID generator.446+447 ## 1.1346-* Add non-secure ID generator.347-* Suggest to use non-secure ID generator for React Native developers.348-* Reduce size.448 449+- Add non-secure ID generator.450+- Suggest to use non-secure ID generator for React Native developers.451+- Reduce size.452+453 ## 1.0.7351-* Fix documentation.454 455+- Fix documentation.456+457 ## 1.0.6354-* Fix documentation.458 459+- Fix documentation.460+461 ## 1.0.5357-* Reduce `nanoid/index` size (by Anton Khlynovskiy).462 463+- Reduce `nanoid/index` size (by Anton Khlynovskiy).464+465 ## 1.0.4360-* Reduce npm package size.466 467+- Reduce npm package size.468+469 ## 1.0.3363-* Reduce npm package size.470 471+- Reduce npm package size.472+473 ## 1.0.2366-* Fix Web Workers support (by Zachary Golba).474 475+- Fix Web Workers support (by Zachary Golba).476+477 ## 1.0.1369-* Reduce `nanoid/index` size (by Anton Khlynovskiy).478 479+- Reduce `nanoid/index` size (by Anton Khlynovskiy).480+481 ## 1.0372-* Use 21 symbols by default (by David Klebanoff).482 483+- Use 21 symbols by default (by David Klebanoff).484+485 ## 0.2.2375-* Reduce `nanoid/generate` size (by Anton Khlynovskiy).376-* Speed up Node.js random generator.486 487+- Reduce `nanoid/generate` size (by Anton Khlynovskiy).488+- Speed up Node.js random generator.489+490 ## 0.2.1379-* Fix documentation (by Piper Chester).491 492+- Fix documentation (by Piper Chester).493+494 ## 0.2382-* Add `size` argument to `nanoid()`.383-* Improve performance by 50%.384-* Reduce library size by 26% (by Vsevolod Rodionov and Oleg Mokhov).495 496+- Add `size` argument to `nanoid()`.497+- Improve performance by 50%.498+- Reduce library size by 26% (by Vsevolod Rodionov and Oleg Mokhov).499+500 ## 0.1.1387-* Reduce library size by 5%.501 502+- Reduce library size by 5%.503+504 ## 0.1505+390-* Initial release.506+- Initial release.deleted:eslint.config.js-12 removed
123456789101112import loguxConfig from '@logux/eslint-config'
/** @type {import('eslint').Linter.FlatConfig[]} */export default [ { ignores: ['test/demo/build', 'nanoid.js'] }, ...loguxConfig, { rules: { 'n/no-unsupported-features/node-builtins': 'off' } }]added:oxfmt.config.ts+3 added
123import loguxOxfmtConfig from '@logux/oxc-configs/fmt'
export default loguxOxfmtConfigmodified:package.json+38 added-44 removed
12345676798910111213141516171819202122232411121314151617181931323320212223242526272829303132335 unmodified lines3940414247484344454647484950515250515253545553545855565758596061626364686566676869707172737475767778798081828384858621 unmodified lines108109110111110111112113114115116112113114118119120121122123124115116117118119120121122123124125126127128{ "name": "nanoid", "version": "5.1.7", "description": "A tiny (118 bytes), secure URL-friendly unique string ID generator", "keywords": [ "uuid", "random", "id", "random", "url" "url", "uuid" ], "scripts": { "clean": "rm -rf coverage", "start": "vite --host 0.0.0.0 test/demo/", "test:coverage": "bnt --coverage 100 --coverage-exclude 'test/*'", "test:lint": "eslint .", "test:size": "pnpm clean && size-limit", "test:versions": "node ./test/check-versions.js", "test:prebuild": "node ./test/check-prebuild.js", "test": "pnpm run /^test:/" }, "type": "module", "engines": { "node": "^18 || >=20" }, "license": "MIT", "author": "Andrey Sitnik <andrey@sitnik.ru>", "repository": "ai/nanoid", "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], "author": "Andrey Sitnik <andrey@sitnik.ru>", "license": "MIT", "repository": "ai/nanoid", "bin": "./bin/nanoid.js", "type": "module", "sideEffects": false, "browser": { "./index.js": "./index.browser.js" }, "types": "./index.d.ts", "react-native": { "./index.js": "./index.browser.js" }, "exports": { ".": { "types": "./index.d.ts", "browser": "./index.browser.js",5 unmodified lines "default": "./non-secure/index.js" }, "./package.json": "./package.json" }, "browser": { "./index.js": "./index.browser.js" "scripts": { "clean": "rm -rf coverage", "start": "vite --host 0.0.0.0 test/demo/", "test:coverage": "bnt --coverage 100 --coverage-exclude 'test/*'", "test:lint": "oxlint", "test:size": "pnpm clean && size-limit", "test:versions": "node ./test/check-versions.js", "test:prebuild": "node ./test/check-prebuild.js", "test": "pnpm run /^test:/" }, "react-native": { "./index.js": "./index.browser.js" }, "bin": "./bin/nanoid.js", "sideEffects": false, "types": "./index.d.ts", "devDependencies": { "@babel/core": "^7.29.0", "@logux/eslint-config": "^57.1.0", "@logux/oxc-configs": "^0.2.2", "@lukeed/uuid": "^2.0.1", "@napi-rs/uuid": "^0.2.2", "@originjs/vite-plugin-commonjs": "^1.0.3", "@size-limit/file": "^12.0.1", "@size-limit/webpack": "^12.0.1", "@types/node": "^25.5.2", "actions-up": "^1.12.1", "better-node-test": "^0.8.4", "clean-publish": "^6.0.5", "eslint": "^10.2.0", "oxlint": "^1.58.0", "oxlint-tsgolint": "^0.20.0", "rndm": "^1.2.0", "secure-random-string": "^1.1.4", "shortid": "^2.2.17", "simple-git-hooks": "^2.13.1", "size-limit": "^12.0.1", "terser": "^5.46.1", "tinybench": "^6.0.0", "typescript": "^6.0.2", "uid": "^2.0.2", "uid-safe": "^2.1.5", "uuid": "^13.0.0", "vite": "^8.0.5" }, "simple-git-hooks": { "pre-commit": "./test/check-versions.js" }, "size-limit": [ { "name": "nanoid", "import": "{ nanoid }",21 unmodified lines "path": "non-secure/index.js", "limit": "53 B" } ], "prettier": { "arrowParens": "avoid", "jsxSingleQuote": false, "quoteProps": "consistent", "semi": false, "singleQuote": true, "trailingComma": "none" "engines": { "node": "^18 || >=20" }, "clean-publish": { "cleanDocs": true, "cleanComments": true }, "simple-git-hooks": { "pre-commit": "./test/check-versions.js" }, "pnpm": { "ignoredBuiltDependencies": [ "esbuild", "unrs-resolver" ], "onlyBuiltDependencies": [ "simple-git-hooks" ] }, "clean-publish": { "cleanDocs": true, "cleanComments": true }}modified:pnpm-lock.yaml+292 added-1252 removed
9 unmodified lines10 devDependencies:11 '@babel/core':12 specifier: ^7.29.013 version: 7.29.014- '@logux/eslint-config':15- specifier: ^57.1.016- version: 57.1.0(@typescript-eslint/utils@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)14+ '@logux/oxc-configs':15+ specifier: ^0.2.216+ version: 0.2.2(oxlint-tsgolint@0.20.0)(oxlint@1.58.0(oxlint-tsgolint@0.20.0))(typescript@6.0.2)17 '@lukeed/uuid':18 specifier: ^2.0.119 version: 2.0.120 '@napi-rs/uuid':19 unmodified lines40 version: 0.8.441 clean-publish:42 specifier: ^6.0.543 version: 6.0.544- eslint:45- specifier: ^10.2.046- version: 10.2.0(jiti@2.5.1)44+ oxlint:45+ specifier: ^1.58.046+ version: 1.58.0(oxlint-tsgolint@0.20.0)47+ oxlint-tsgolint:48+ specifier: ^0.20.049+ version: 0.20.050 rndm:51 specifier: ^1.2.052 version: 1.2.053 secure-random-string:13 unmodified lines67 version: 5.46.168 tinybench:69 specifier: ^6.0.070 version: 6.0.071+ typescript:72+ specifier: ^6.0.273+ version: 6.0.274 uid:75 specifier: ^2.0.276 version: 2.0.277 uid-safe:89 unmodified lines167 engines: {node: '>=12'}168 cpu: [loong64]169 os: [linux]170 165- '@eslint-community/eslint-utils@4.9.1':166- resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==}167- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}168- peerDependencies:169- eslint: ^6.0.0 || ^7.0.0 || >=8.0.0170-171- '@eslint-community/regexpp@4.12.2':172- resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}173- engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}174-175- '@eslint/config-array@0.23.4':176- resolution: {integrity: sha512-lf19F24LSMfF8weXvW5QEtnLqW70u7kgit5e9PSx0MsHAFclGd1T9ynvWEMDT1w5J4Qt54tomGeAhdoAku1Xow==}177- engines: {node: ^20.19.0 || ^22.13.0 || >=24}178-179- '@eslint/config-helpers@0.5.4':180- resolution: {integrity: sha512-jJhqiY3wPMlWWO3370M86CPJ7pt8GmEwSLglMfQhjXal07RCvhmU0as4IuUEW5SJeunfItiEetHmSxCCe9lDBg==}181- engines: {node: ^20.19.0 || ^22.13.0 || >=24}182-183- '@eslint/core@1.2.0':184- resolution: {integrity: sha512-8FTGbNzTvmSlc4cZBaShkC6YvFMG0riksYWRFKXztqVdXaQbcZLXlFbSpC05s70sGEsXAw0qwhx69JiW7hQS7A==}185- engines: {node: ^20.19.0 || ^22.13.0 || >=24}186-187- '@eslint/eslintrc@3.3.5':188- resolution: {integrity: sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==}189- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}190-191- '@eslint/object-schema@3.0.4':192- resolution: {integrity: sha512-55lO/7+Yp0ISKRP0PsPtNTeNGapXaO085aELZmWCVc5SH3jfrqpuU6YgOdIxMS99ZHkQN1cXKE+cdIqwww9ptw==}193- engines: {node: ^20.19.0 || ^22.13.0 || >=24}194-195- '@eslint/plugin-kit@0.7.0':196- resolution: {integrity: sha512-ejvBr8MQCbVsWNZnCwDXjUKq40MDmHalq7cJ6e9s/qzTUFIIo/afzt1Vui9T97FM/V/pN4YsFVoed5NIa96RDg==}197- engines: {node: ^20.19.0 || ^22.13.0 || >=24}198-199- '@humanfs/core@0.19.1':200- resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}201- engines: {node: '>=18.18.0'}202-203- '@humanfs/node@0.16.7':204- resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}205- engines: {node: '>=18.18.0'}206-207- '@humanwhocodes/module-importer@1.0.1':208- resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}209- engines: {node: '>=12.22'}210-211- '@humanwhocodes/retry@0.4.3':212- resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}213- engines: {node: '>=18.18'}214-171 '@jridgewell/gen-mapping@0.3.13':172 resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}173 174 '@jridgewell/remapping@2.3.5':11 unmodified lines186 187 '@jridgewell/trace-mapping@0.3.31':188 resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}189 234- '@logux/eslint-config@57.1.0':235- resolution: {integrity: sha512-oOlYsAu5iQBzNL75QqGWVnpgle/Nz5/Gp5P6BtHRy5vBg7UXyGVqEzaG3lMHF6dgYGVb+wkLqIC0DWIH8wp/LA==}236- engines: {node: '>=18.0.0'}190+ '@logux/oxc-configs@0.2.2':191+ resolution: {integrity: sha512-tfToAscfwBA4QOcHDpqs3XItj9GLZ0+ABLXIlxNK08U1jjV0xi9LbAMfteLU2d0ym4djbhYCPsMyHdADrrl/IQ==}192+ engines: {node: '>=22.0.0'}193 peerDependencies:238- eslint: ^8.57.0 || ^9.0.0 || ^10.0.0239- eslint-plugin-svelte: ^3.0.0240- svelte: ^4.2.12 || ^5.0.0241- svelte-eslint-parser: ^1.0.0242- peerDependenciesMeta:243- eslint-plugin-svelte:244- optional: true245- svelte:246- optional: true247- svelte-eslint-parser:248- optional: true194+ oxlint: ^1.57.0195+ oxlint-tsgolint: ^0.18.1196+ typescript: ^6.0.2197 198 '@lukeed/csprng@1.1.0':199 resolution: {integrity: sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==}200 engines: {node: '>=8'}87 unmodified lines288 '@napi-rs/uuid@0.2.2':289 resolution: {integrity: sha512-1sqgzzQLzdSPmy/zNl1wxhtaUw0OwEeXP9h3V2X9xm+72M0R2suwrV1mRuoCrWxjg0Q7GEAZmKVXHi+BE2/ROA==}290 engines: {node: '>= 10'}291 344- '@napi-rs/wasm-runtime@0.2.12':345- resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}346-292 '@napi-rs/wasm-runtime@1.1.2':293 resolution: {integrity: sha512-sNXv5oLJ7ob93xkZ1XnxisYhGYXfaG9f65/ZgYuAu3qt7b3NadcOEhLvx28hv31PgX8SZJRYrAIPQilQmFpLVw==}294 peerDependencies:295 '@emnapi/core': ^1.7.14 unmodified lines300 301 '@oxc-project/types@0.122.0':302 resolution: {integrity: sha512-oLAl5kBpV4w69UtFZ9xqcmTi+GENWOcPF7FCrczTiBbmC0ibXxCwyvZGbO39rCVEuLGAZM84DH0pUIyyv/YJzA==}303 359- '@package-json/types@0.0.12':360- resolution: {integrity: sha512-uu43FGU34B5VM9mCNjXCwLaGHYjXdNincqKLaraaCW+7S2+SmiBg1Nv8bPnmschrIfZmfKNY9f3fC376MRrObw==}304+ '@oxlint-tsgolint/darwin-arm64@0.20.0':305+ resolution: {integrity: sha512-KKQcIHZHMxqpHUA1VXIbOG6chNCFkUWbQy6M+AFVtPKkA/3xAeJkJ3njoV66bfzwPHRcWQO+kcj5XqtbkjakoA==}306+ cpu: [arm64]307+ os: [darwin]308 309+ '@oxlint-tsgolint/darwin-x64@0.20.0':310+ resolution: {integrity: sha512-7HeVMuclGfG+NLZi2ybY0T4fMI7/XxO/208rJk+zEIloKkVnlh11Wd241JMGwgNFXn+MLJbOqOfojDb2Dt4L1g==}311+ cpu: [x64]312+ os: [darwin]313+314+ '@oxlint-tsgolint/linux-arm64@0.20.0':315+ resolution: {integrity: sha512-zxhUwz+WSxE6oWlZLK2z2ps9yC6ebmgoYmjAl0Oa48+GqkZ56NVgo+wb8DURNv6xrggzHStQxqQxe3mK51HZag==}316+ cpu: [arm64]317+ os: [linux]318+319+ '@oxlint-tsgolint/linux-x64@0.20.0':320+ resolution: {integrity: sha512-/1l6FnahC9im8PK+Ekkx/V3yetO/PzZnJegE2FXcv/iXEhbeVxP/ouiTYcUQu9shT1FWJCSNti1VJHH+21Y1dg==}321+ cpu: [x64]322+ os: [linux]323+324+ '@oxlint-tsgolint/win32-arm64@0.20.0':325+ resolution: {integrity: sha512-oPZ5Yz8sVdo7P/5q+i3IKeix31eFZ55JAPa1+RGPoe9PoaYVsdMvR6Jvib6YtrqoJnFPlg3fjEjlEPL8VBKYJA==}326+ cpu: [arm64]327+ os: [win32]328+329+ '@oxlint-tsgolint/win32-x64@0.20.0':330+ resolution: {integrity: sha512-4stx8RHj3SP9vQyRF/yZbz5igtPvYMEUR8CUoha4BVNZihi39DpCR8qkU7lpjB5Ga1DRMo2pHaA4bdTOMaY4mw==}331+ cpu: [x64]332+ os: [win32]333+334+ '@oxlint/binding-android-arm-eabi@1.58.0':335+ resolution: {integrity: sha512-1T7UN3SsWWxpWyWGn1cT3ASNJOo+pI3eUkmEl7HgtowapcV8kslYpFQcYn431VuxghXakPNlbjRwhqmR37PFOg==}336+ engines: {node: ^20.19.0 || >=22.12.0}337+ cpu: [arm]338+ os: [android]339+340+ '@oxlint/binding-android-arm64@1.58.0':341+ resolution: {integrity: sha512-GryzujxuiRv2YFF7bRy8mKcxlbuAN+euVUtGJt9KKbLT8JBUIosamVhcthLh+VEr6KE6cjeVMAQxKAzJcoN7dg==}342+ engines: {node: ^20.19.0 || >=22.12.0}343+ cpu: [arm64]344+ os: [android]345+346+ '@oxlint/binding-darwin-arm64@1.58.0':347+ resolution: {integrity: sha512-7/bRSJIwl4GxeZL9rPZ11anNTyUO9epZrfEJH/ZMla3+/gbQ6xZixh9nOhsZ0QwsTW7/5J2A/fHbD1udC5DQQA==}348+ engines: {node: ^20.19.0 || >=22.12.0}349+ cpu: [arm64]350+ os: [darwin]351+352+ '@oxlint/binding-darwin-x64@1.58.0':353+ resolution: {integrity: sha512-EqdtJSiHweS2vfILNrpyJ6HUwpEq2g7+4Zx1FPi4hu3Hu7tC3znF6ufbXO8Ub2LD4mGgznjI7kSdku9NDD1Mkg==}354+ engines: {node: ^20.19.0 || >=22.12.0}355+ cpu: [x64]356+ os: [darwin]357+358+ '@oxlint/binding-freebsd-x64@1.58.0':359+ resolution: {integrity: sha512-VQt5TH4M42mY20F545G637RKxV/yjwVtKk2vfXuazfReSIiuvWBnv+FVSvIV5fKVTJNjt3GSJibh6JecbhGdBw==}360+ engines: {node: ^20.19.0 || >=22.12.0}361+ cpu: [x64]362+ os: [freebsd]363+364+ '@oxlint/binding-linux-arm-gnueabihf@1.58.0':365+ resolution: {integrity: sha512-fBYcj4ucwpAtjJT3oeBdFBYKvNyjRSK+cyuvBOTQjh0jvKp4yeA4S/D0IsCHus/VPaNG5L48qQkh+Vjy3HL2/Q==}366+ engines: {node: ^20.19.0 || >=22.12.0}367+ cpu: [arm]368+ os: [linux]369+370+ '@oxlint/binding-linux-arm-musleabihf@1.58.0':371+ resolution: {integrity: sha512-0BeuFfwlUHlJ1xpEdSD1YO3vByEFGPg36uLjK1JgFaxFb4W6w17F8ET8sz5cheZ4+x5f2xzdnRrrWv83E3Yd8g==}372+ engines: {node: ^20.19.0 || >=22.12.0}373+ cpu: [arm]374+ os: [linux]375+376+ '@oxlint/binding-linux-arm64-gnu@1.58.0':377+ resolution: {integrity: sha512-TXlZgnPTlxrQzxG9ZXU7BNwx1Ilrr17P3GwZY0If2EzrinqRH3zXPc3HrRcBJgcsoZNMuNL5YivtkJYgp467UQ==}378+ engines: {node: ^20.19.0 || >=22.12.0}379+ cpu: [arm64]380+ os: [linux]381+ libc: [glibc]382+383+ '@oxlint/binding-linux-arm64-musl@1.58.0':384+ resolution: {integrity: sha512-zSoYRo5dxHLcUx93Stl2hW3hSNjPt99O70eRVWt5A1zwJ+FPjeCCANCD2a9R4JbHsdcl11TIQOjyigcRVOH2mw==}385+ engines: {node: ^20.19.0 || >=22.12.0}386+ cpu: [arm64]387+ os: [linux]388+ libc: [musl]389+390+ '@oxlint/binding-linux-ppc64-gnu@1.58.0':391+ resolution: {integrity: sha512-NQ0U/lqxH2/VxBYeAIvMNUK1y0a1bJ3ZicqkF2c6wfakbEciP9jvIE4yNzCFpZaqeIeRYaV7AVGqEO1yrfVPjA==}392+ engines: {node: ^20.19.0 || >=22.12.0}393+ cpu: [ppc64]394+ os: [linux]395+ libc: [glibc]396+397+ '@oxlint/binding-linux-riscv64-gnu@1.58.0':398+ resolution: {integrity: sha512-X9J+kr3gIC9FT8GuZt0ekzpNUtkBVzMVU4KiKDSlocyQuEgi3gBbXYN8UkQiV77FTusLDPsovjo95YedHr+3yg==}399+ engines: {node: ^20.19.0 || >=22.12.0}400+ cpu: [riscv64]401+ os: [linux]402+ libc: [glibc]403+404+ '@oxlint/binding-linux-riscv64-musl@1.58.0':405+ resolution: {integrity: sha512-CDze3pi1OO3Wvb/QsXjmLEY4XPKGM6kIo82ssNOgmcl1IdndF9VSGAE38YLhADWmOac7fjqhBw82LozuUVxD0Q==}406+ engines: {node: ^20.19.0 || >=22.12.0}407+ cpu: [riscv64]408+ os: [linux]409+ libc: [musl]410+411+ '@oxlint/binding-linux-s390x-gnu@1.58.0':412+ resolution: {integrity: sha512-b/89glbxFaEAcA6Uf1FvCNecBJEgcUTsV1quzrqXM/o4R1M4u+2KCVuyGCayN2UpsRWtGGLb+Ver0tBBpxaPog==}413+ engines: {node: ^20.19.0 || >=22.12.0}414+ cpu: [s390x]415+ os: [linux]416+ libc: [glibc]417+418+ '@oxlint/binding-linux-x64-gnu@1.58.0':419+ resolution: {integrity: sha512-0/yYpkq9VJFCEcuRlrViGj8pJUFFvNS4EkEREaN7CB1EcLXJIaVSSa5eCihwBGXtOZxhnblWgxks9juRdNQI7w==}420+ engines: {node: ^20.19.0 || >=22.12.0}421+ cpu: [x64]422+ os: [linux]423+ libc: [glibc]424+425+ '@oxlint/binding-linux-x64-musl@1.58.0':426+ resolution: {integrity: sha512-hr6FNvmcAXiH+JxSvaJ4SJ1HofkdqEElXICW9sm3/Rd5eC3t7kzvmLyRAB3NngKO2wzXRCAm4Z/mGWfrsS4X8w==}427+ engines: {node: ^20.19.0 || >=22.12.0}428+ cpu: [x64]429+ os: [linux]430+ libc: [musl]431+432+ '@oxlint/binding-openharmony-arm64@1.58.0':433+ resolution: {integrity: sha512-R+O368VXgRql1K6Xar+FEo7NEwfo13EibPMoTv3sesYQedRXd6m30Dh/7lZMxnrQVFfeo4EOfYIP4FpcgWQNHg==}434+ engines: {node: ^20.19.0 || >=22.12.0}435+ cpu: [arm64]436+ os: [openharmony]437+438+ '@oxlint/binding-win32-arm64-msvc@1.58.0':439+ resolution: {integrity: sha512-Q0FZiAY/3c4YRj4z3h9K1PgaByrifrfbBoODSeX7gy97UtB7pySPUQfC2B/GbxWU6k7CzQrRy5gME10PltLAFQ==}440+ engines: {node: ^20.19.0 || >=22.12.0}441+ cpu: [arm64]442+ os: [win32]443+444+ '@oxlint/binding-win32-ia32-msvc@1.58.0':445+ resolution: {integrity: sha512-Y8FKBABrSPp9H0QkRLHDHOSUgM/309a3IvOVgPcVxYcX70wxJrk608CuTg7w+C6vEd724X5wJoNkBcGYfH7nNQ==}446+ engines: {node: ^20.19.0 || >=22.12.0}447+ cpu: [ia32]448+ os: [win32]449+450+ '@oxlint/binding-win32-x64-msvc@1.58.0':451+ resolution: {integrity: sha512-bCn5rbiz5My+Bj7M09sDcnqW0QJyINRVxdZ65x1/Y2tGrMwherwK/lpk+HRQCKvXa8pcaQdF5KY5j54VGZLwNg==}452+ engines: {node: ^20.19.0 || >=22.12.0}453+ cpu: [x64]454+ os: [win32]455+456 '@rolldown/binding-android-arm64@1.0.0-rc.12':457 resolution: {integrity: sha512-pv1y2Fv0JybcykuiiD3qBOBdz6RteYojRFY1d+b95WVuzx211CRh+ytI/+9iVyWQ6koTh5dawe4S/yRfOFjgaA==}458 engines: {node: ^20.19.0 || >=22.12.0}459 cpu: [arm64]111 unmodified lines571 572 '@types/eslint@9.6.1':573 resolution: {integrity: sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==}574 481- '@types/esrecurse@4.3.1':482- resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==}483-575 '@types/estree@1.0.8':576 resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}577 578 '@types/json-schema@7.0.15':1 unmodified line580 581 '@types/node@25.5.2':582 resolution: {integrity: sha512-tO4ZIRKNC+MDWV4qKVZe3Ql/woTnmHDr5JD8UI5hn2pwBrHEwOEMZK7WlNb5RKB6EoJ02gwmQS9OrjuFnZYdpg==}583 493- '@typescript-eslint/eslint-plugin@8.58.0':494- resolution: {integrity: sha512-RLkVSiNuUP1C2ROIWfqX+YcUfLaSnxGE/8M+Y57lopVwg9VTYYfhuz15Yf1IzCKgZj6/rIbYTmJCUSqr76r0Wg==}495- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}496- peerDependencies:497- '@typescript-eslint/parser': ^8.58.0498- eslint: ^8.57.0 || ^9.0.0 || ^10.0.0499- typescript: '>=4.8.4 <6.1.0'500-501- '@typescript-eslint/parser@8.58.0':502- resolution: {integrity: sha512-rLoGZIf9afaRBYsPUMtvkDWykwXwUPL60HebR4JgTI8mxfFe2cQTu3AGitANp4b9B2QlVru6WzjgB2IzJKiCSA==}503- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}504- peerDependencies:505- eslint: ^8.57.0 || ^9.0.0 || ^10.0.0506- typescript: '>=4.8.4 <6.1.0'507-508- '@typescript-eslint/project-service@8.58.0':509- resolution: {integrity: sha512-8Q/wBPWLQP1j16NxoPNIKpDZFMaxl7yWIoqXWYeWO+Bbd2mjgvoF0dxP2jKZg5+x49rgKdf7Ck473M8PC3V9lg==}510- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}511- peerDependencies:512- typescript: '>=4.8.4 <6.1.0'513-514- '@typescript-eslint/scope-manager@8.58.0':515- resolution: {integrity: sha512-W1Lur1oF50FxSnNdGp3Vs6P+yBRSmZiw4IIjEeYxd8UQJwhUF0gDgDD/W/Tgmh73mxgEU3qX0Bzdl/NGuSPEpQ==}516- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}517-518- '@typescript-eslint/tsconfig-utils@8.58.0':519- resolution: {integrity: sha512-doNSZEVJsWEu4htiVC+PR6NpM+pa+a4ClH9INRWOWCUzMst/VA9c4gXq92F8GUD1rwhNvRLkgjfYtFXegXQF7A==}520- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}521- peerDependencies:522- typescript: '>=4.8.4 <6.1.0'523-524- '@typescript-eslint/type-utils@8.58.0':525- resolution: {integrity: sha512-aGsCQImkDIqMyx1u4PrVlbi/krmDsQUs4zAcCV6M7yPcPev+RqVlndsJy9kJ8TLihW9TZ0kbDAzctpLn5o+lOg==}526- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}527- peerDependencies:528- eslint: ^8.57.0 || ^9.0.0 || ^10.0.0529- typescript: '>=4.8.4 <6.1.0'530-531- '@typescript-eslint/types@8.58.0':532- resolution: {integrity: sha512-O9CjxypDT89fbHxRfETNoAnHj/i6IpRK0CvbVN3qibxlLdo5p5hcLmUuCCrHMpxiWSwKyI8mCP7qRNYuOJ0Uww==}533- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}534-535- '@typescript-eslint/typescript-estree@8.58.0':536- resolution: {integrity: sha512-7vv5UWbHqew/dvs+D3e1RvLv1v2eeZ9txRHPnEEBUgSNLx5ghdzjHa0sgLWYVKssH+lYmV0JaWdoubo0ncGYLA==}537- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}538- peerDependencies:539- typescript: '>=4.8.4 <6.1.0'540-541- '@typescript-eslint/utils@8.58.0':542- resolution: {integrity: sha512-RfeSqcFeHMHlAWzt4TBjWOAtoW9lnsAGiP3GbaX9uVgTYYrMbVnGONEfUCiSss+xMHFl+eHZiipmA8WkQ7FuNA==}543- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}544- peerDependencies:545- eslint: ^8.57.0 || ^9.0.0 || ^10.0.0546- typescript: '>=4.8.4 <6.1.0'547-548- '@typescript-eslint/visitor-keys@8.58.0':549- resolution: {integrity: sha512-XJ9UD9+bbDo4a4epraTwG3TsNPeiB9aShrUneAVXy8q4LuwowN+qu89/6ByLMINqvIMeI9H9hOHQtg/ijrYXzQ==}550- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}551-552- '@unrs/resolver-binding-android-arm-eabi@1.11.1':553- resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}554- cpu: [arm]555- os: [android]556-557- '@unrs/resolver-binding-android-arm64@1.11.1':558- resolution: {integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==}559- cpu: [arm64]560- os: [android]561-562- '@unrs/resolver-binding-darwin-arm64@1.11.1':563- resolution: {integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==}564- cpu: [arm64]565- os: [darwin]566-567- '@unrs/resolver-binding-darwin-x64@1.11.1':568- resolution: {integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==}569- cpu: [x64]570- os: [darwin]571-572- '@unrs/resolver-binding-freebsd-x64@1.11.1':573- resolution: {integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==}574- cpu: [x64]575- os: [freebsd]576-577- '@unrs/resolver-binding-linux-arm-gnueabihf@1.11.1':578- resolution: {integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==}579- cpu: [arm]580- os: [linux]581-582- '@unrs/resolver-binding-linux-arm-musleabihf@1.11.1':583- resolution: {integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==}584- cpu: [arm]585- os: [linux]586-587- '@unrs/resolver-binding-linux-arm64-gnu@1.11.1':588- resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==}589- cpu: [arm64]590- os: [linux]591- libc: [glibc]592-593- '@unrs/resolver-binding-linux-arm64-musl@1.11.1':594- resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==}595- cpu: [arm64]596- os: [linux]597- libc: [musl]598-599- '@unrs/resolver-binding-linux-ppc64-gnu@1.11.1':600- resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==}601- cpu: [ppc64]602- os: [linux]603- libc: [glibc]604-605- '@unrs/resolver-binding-linux-riscv64-gnu@1.11.1':606- resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==}607- cpu: [riscv64]608- os: [linux]609- libc: [glibc]610-611- '@unrs/resolver-binding-linux-riscv64-musl@1.11.1':612- resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==}613- cpu: [riscv64]614- os: [linux]615- libc: [musl]616-617- '@unrs/resolver-binding-linux-s390x-gnu@1.11.1':618- resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==}619- cpu: [s390x]620- os: [linux]621- libc: [glibc]622-623- '@unrs/resolver-binding-linux-x64-gnu@1.11.1':624- resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==}625- cpu: [x64]626- os: [linux]627- libc: [glibc]628-629- '@unrs/resolver-binding-linux-x64-musl@1.11.1':630- resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==}631- cpu: [x64]632- os: [linux]633- libc: [musl]634-635- '@unrs/resolver-binding-wasm32-wasi@1.11.1':636- resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==}637- engines: {node: '>=14.0.0'}638- cpu: [wasm32]639-640- '@unrs/resolver-binding-win32-arm64-msvc@1.11.1':641- resolution: {integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==}642- cpu: [arm64]643- os: [win32]644-645- '@unrs/resolver-binding-win32-ia32-msvc@1.11.1':646- resolution: {integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==}647- cpu: [ia32]648- os: [win32]649-650- '@unrs/resolver-binding-win32-x64-msvc@1.11.1':651- resolution: {integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==}652- cpu: [x64]653- os: [win32]654-584 '@webassemblyjs/ast@1.14.1':585 resolution: {integrity: sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==}586 587 '@webassemblyjs/floating-point-hex-parser@1.13.2':49 unmodified lines637 engines: {node: '>=10.13.0'}638 peerDependencies:639 acorn: ^8.14.0640 712- acorn-jsx@5.3.2:713- resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}714- peerDependencies:715- acorn: ^6.0.0 || ^7.0.0 || ^8.0.0716-641 acorn@8.16.0:642 resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}643 engines: {node: '>=0.4.0'}644 hasBin: true15 unmodified lines660 resolution: {integrity: sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==}661 peerDependencies:662 ajv: ^8.8.2663 740- ajv@6.14.0:741- resolution: {integrity: sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==}742-664 ajv@8.18.0:665 resolution: {integrity: sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==}666 667 ansi-colors@4.1.3:3 unmodified lines671 ansi-regex@5.0.1:672 resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}673 engines: {node: '>=8'}674 754- argparse@2.0.1:755- resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}756-757- balanced-match@1.0.2:758- resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}759-760- balanced-match@4.0.4:761- resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}762- engines: {node: 18 || 20 || >=22}763-675 baseline-browser-mapping@2.10.16:676 resolution: {integrity: sha512-Lyf3aK28zpsD1yQMiiHD4RvVb6UdMoo8xzG2XzFIfR9luPzOpcBlAsT/qfB1XWS1bxWT+UtE4WmQgsp297FYOA==}677 engines: {node: '>=6.0.0'}678 hasBin: true2 unmodified lines681 resolution: {integrity: sha512-Abil6GxliznKjFTrIZa95y7W2siBXq+I74caB0UmiJ78G9SBXfu7vTnVN+y3DohR7gsxaz0UOqVwOf0OaFxFQw==}682 engines: {node: ^18.19.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}683 hasBin: true684 774- brace-expansion@1.1.13:775- resolution: {integrity: sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==}776-777- brace-expansion@5.0.5:778- resolution: {integrity: sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==}779- engines: {node: 18 || 20 || >=22}780-685 browserslist@4.28.2:686 resolution: {integrity: sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==}687 engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}688 hasBin: true8 unmodified lines697 cac@7.0.0:698 resolution: {integrity: sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ==}699 engines: {node: '>=20.19.0'}700 797- callsites@3.1.0:798- resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}799- engines: {node: '>=6'}800-701 caniuse-lite@1.0.30001786:702 resolution: {integrity: sha512-4oxTZEvqmLLrERwxO76yfKM7acZo310U+v4kqexI2TL1DkkUEMT8UijrxxcnVdxR3qkVf5awGRX+4Z6aPHVKrA==}703 704 chrome-trace-event@1.0.4:7 unmodified lines712 713 commander@2.20.3:714 resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}715 816- comment-parser@1.4.6:817- resolution: {integrity: sha512-ObxuY6vnbWTN6Od72xfwN9DbzC7Y2vv8u1Soi9ahRKL37gb6y1qk6/dgjs+3JWuXJHWvsg3BXIwzd/rkmAwavg==}818- engines: {node: '>= 12.0.0'}819-820- concat-map@0.0.1:821- resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}822-716 convert-source-map@2.0.0:717 resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}718 826- cross-spawn@7.0.6:827- resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}828- engines: {node: '>= 8'}829-830- debug@3.2.7:831- resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}832- peerDependencies:833- supports-color: '*'834- peerDependenciesMeta:835- supports-color:836- optional: true837-719 debug@4.4.3:720 resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}721 engines: {node: '>=6.0'}722 peerDependencies:1 unmodified line724 peerDependenciesMeta:725 supports-color:726 optional: true727 847- deep-is@0.1.4:848- resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}849-728 detect-libc@2.1.2:729 resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}730 engines: {node: '>=8'}731 139 unmodified lines871 escalade@3.2.0:872 resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}873 engines: {node: '>=6'}874 997- escape-string-regexp@4.0.0:998- resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}999- engines: {node: '>=10'}1000-1001- eslint-compat-utils@0.5.1:1002- resolution: {integrity: sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==}1003- engines: {node: '>=12'}1004- peerDependencies:1005- eslint: '>=6.0.0'1006-1007- eslint-import-context@0.1.9:1008- resolution: {integrity: sha512-K9Hb+yRaGAGUbwjhFNHvSmmkZs9+zbuoe3kFQ4V1wYjrepUFYM2dZAfNtjbbj3qsPfUfsA68Bx/ICWQMi+C8Eg==}1009- engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}1010- peerDependencies:1011- unrs-resolver: ^1.0.01012- peerDependenciesMeta:1013- unrs-resolver:1014- optional: true1015-1016- eslint-import-resolver-node@0.3.9:1017- resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}1018-1019- eslint-plugin-es-x@7.8.0:1020- resolution: {integrity: sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==}1021- engines: {node: ^14.18.0 || >=16.0.0}1022- peerDependencies:1023- eslint: '>=8'1024-1025- eslint-plugin-import-x@4.16.2:1026- resolution: {integrity: sha512-rM9K8UBHcWKpzQzStn1YRN2T5NvdeIfSVoKu/lKF41znQXHAUcBbYXe5wd6GNjZjTrP7viQ49n1D83x/2gYgIw==}1027- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}1028- peerDependencies:1029- '@typescript-eslint/utils': ^8.56.01030- eslint: ^8.57.0 || ^9.0.0 || ^10.0.01031- eslint-import-resolver-node: '*'1032- peerDependenciesMeta:1033- '@typescript-eslint/utils':1034- optional: true1035- eslint-import-resolver-node:1036- optional: true1037-1038- eslint-plugin-n@17.24.0:1039- resolution: {integrity: sha512-/gC7/KAYmfNnPNOb3eu8vw+TdVnV0zhdQwexsw6FLXbhzroVj20vRn2qL8lDWDGnAQ2J8DhdfvXxX9EoxvERvw==}1040- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}1041- peerDependencies:1042- eslint: '>=8.23.0'1043-1044- eslint-plugin-perfectionist@5.8.0:1045- resolution: {integrity: sha512-k8uIptWIxkUclonCFGyDzgYs9NI+Qh0a7cUXS3L7IYZDEsjXuimFBVbxXPQQngWqMiaxJRwbtYB4smMGMqF+cw==}1046- engines: {node: ^20.0.0 || >=22.0.0}1047- peerDependencies:1048- eslint: ^8.45.0 || ^9.0.0 || ^10.0.01049-875 eslint-plugin-prefer-let@4.2.2:876 resolution: {integrity: sha512-FkCmQwZtc4nf6EKDKEYW/lWtApDXxsJA/VXWQQemLhIWWho676CJdgt53AMubOrSOTzzep0dBMP9zVFCCCdxsw==}877 engines: {node: '>=0.10.0'}878 879 eslint-scope@5.1.1:880 resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}881 engines: {node: '>=8.0.0'}882 1058- eslint-scope@9.1.2:1059- resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==}1060- engines: {node: ^20.19.0 || ^22.13.0 || >=24}1061-1062- eslint-visitor-keys@3.4.3:1063- resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}1064- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}1065-1066- eslint-visitor-keys@4.2.1:1067- resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}1068- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}1069-1070- eslint-visitor-keys@5.0.1:1071- resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==}1072- engines: {node: ^20.19.0 || ^22.13.0 || >=24}1073-1074- eslint@10.2.0:1075- resolution: {integrity: sha512-+L0vBFYGIpSNIt/KWTpFonPrqYvgKw1eUI5Vn7mEogrQcWtWYtNQ7dNqC+px/J0idT3BAkiWrhfS7k+Tum8TUA==}1076- engines: {node: ^20.19.0 || ^22.13.0 || >=24}1077- hasBin: true1078- peerDependencies:1079- jiti: '*'1080- peerDependenciesMeta:1081- jiti:1082- optional: true1083-1084- espree@10.4.0:1085- resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}1086- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}1087-1088- espree@11.2.0:1089- resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==}1090- engines: {node: ^20.19.0 || ^22.13.0 || >=24}1091-1092- esquery@1.7.0:1093- resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==}1094- engines: {node: '>=0.10'}1095-883 esrecurse@4.3.0:884 resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}885 engines: {node: '>=4.0'}886 4 unmodified lines891 estraverse@5.3.0:892 resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}893 engines: {node: '>=4.0'}894 1108- esutils@2.0.3:1109- resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}1110- engines: {node: '>=0.10.0'}1111-895 events@3.3.0:896 resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}897 engines: {node: '>=0.8.x'}898 899 fast-deep-equal@3.1.3:900 resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}901 1119- fast-json-stable-stringify@2.1.0:1120- resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}1121-1122- fast-levenshtein@2.0.6:1123- resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}1124-902 fast-uri@3.1.0:903 resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==}904 905 fdir@6.5.0:4 unmodified lines910 peerDependenciesMeta:911 picomatch:912 optional: true913 1137- file-entry-cache@8.0.0:1138- resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}1139- engines: {node: '>=16.0.0'}1140-1141- find-up@5.0.0:1142- resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}1143- engines: {node: '>=10'}1144-1145- flat-cache@4.0.1:1146- resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}1147- engines: {node: '>=16'}1148-1149- flatted@3.4.2:1150- resolution: {integrity: sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==}1151-914 fsevents@2.3.3:915 resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}916 engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}917 os: [darwin]918 1157- function-bind@1.1.2:1158- resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}1159-919 gensync@1.0.0-beta.2:920 resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}921 engines: {node: '>=6.9.0'}922 1164- get-tsconfig@4.13.7:1165- resolution: {integrity: sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==}1166-1167- glob-parent@6.0.2:1168- resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}1169- engines: {node: '>=10.13.0'}1170-923 glob-to-regexp@0.4.1:924 resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}925 1174- globals@14.0.0:1175- resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}1176- engines: {node: '>=18'}1177-1178- globals@15.15.0:1179- resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==}1180- engines: {node: '>=18'}1181-1182- globals@17.4.0:1183- resolution: {integrity: sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw==}1184- engines: {node: '>=18'}1185-1186- globrex@0.1.2:1187- resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}1188-926 graceful-fs@4.2.11:927 resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}928 929 has-flag@4.0.0:930 resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}931 engines: {node: '>=8'}932 1196- hasown@2.0.2:1197- resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}1198- engines: {node: '>= 0.4'}1199-1200- ignore@5.3.2:1201- resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}1202- engines: {node: '>= 4'}1203-1204- ignore@7.0.5:1205- resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}1206- engines: {node: '>= 4'}1207-1208- import-fresh@3.3.1:1209- resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}1210- engines: {node: '>=6'}1211-1212- imurmurhash@0.1.4:1213- resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}1214- engines: {node: '>=0.8.19'}1215-1216- is-core-module@2.16.1:1217- resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==}1218- engines: {node: '>= 0.4'}1219-1220- is-extglob@2.1.1:1221- resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}1222- engines: {node: '>=0.10.0'}1223-1224- is-glob@4.0.3:1225- resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}1226- engines: {node: '>=0.10.0'}1227-1228- isexe@2.0.0:1229- resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}1230-933 jest-worker@27.5.1:934 resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}935 engines: {node: '>= 10.13.0'}936 3 unmodified lines940 941 js-tokens@4.0.0:942 resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}943 1242- js-yaml@4.1.1:1243- resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}1244- hasBin: true1245-944 jsesc@3.1.0:945 resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}946 engines: {node: '>=6'}947 hasBin: true948 1251- json-buffer@3.0.1:1252- resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}1253-949 json-parse-even-better-errors@2.3.1:950 resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}951 1257- json-schema-traverse@0.4.1:1258- resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}1259-952 json-schema-traverse@1.0.0:953 resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}954 1263- json-stable-stringify-without-jsonify@1.0.1:1264- resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}1265-955 json5@2.2.3:956 resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}957 engines: {node: '>=6'}958 hasBin: true959 1271- keyv@4.5.4:1272- resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}1273-1274- levn@0.4.1:1275- resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}1276- engines: {node: '>= 0.8.0'}1277-960 lightningcss-android-arm64@1.32.0:961 resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}962 engines: {node: '>= 12.0.0'}963 cpu: [arm64]74 unmodified lines1038 loader-runner@4.3.1:1039 resolution: {integrity: sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==}1040 engines: {node: '>=6.11.5'}1041 1360- locate-path@6.0.0:1361- resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}1362- engines: {node: '>=10'}1363-1042 lru-cache@5.1.1:1043 resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}1044 1045 merge-stream@2.0.0:6 unmodified lines1052 mime-types@2.1.35:1053 resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}1054 engines: {node: '>= 0.6'}1055 1378- minimatch@10.2.5:1379- resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==}1380- engines: {node: 18 || 20 || >=22}1381-1382- minimatch@3.1.5:1383- resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}1384-1056 ms@2.1.3:1057 resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}1058 1059 nanoid@3.3.11:8 unmodified lines1068 1069 nanospinner@1.2.2:1070 resolution: {integrity: sha512-Zt/AmG6qRU3e+WnzGGLuMCEAO/dAu45stNbHY223tUxldaDAeE+FxSPsd9Q+j+paejmm0ZbrNVs5Sraqy3dRxA==}1071 1401- napi-postinstall@0.3.4:1402- resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==}1403- engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}1404- hasBin: true1405-1406- natural-compare@1.4.0:1407- resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}1408-1409- natural-orderby@5.0.0:1410- resolution: {integrity: sha512-kKHJhxwpR/Okycz4HhQKKlhWe4ASEfPgkSWNmKFHd7+ezuQlxkA5cM3+XkBPvm1gmHen3w53qsYAv+8GwRrBlg==}1411- engines: {node: '>=18'}1412-1072 neo-async@2.6.2:1073 resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}1074 1075 node-releases@2.0.37:1076 resolution: {integrity: sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==}1077 1419- optionator@0.9.4:1420- resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}1421- engines: {node: '>= 0.8.0'}1078+ oxlint-tsgolint@0.20.0:1079+ resolution: {integrity: sha512-/Uc9TQyN1l8w9QNvXtVHYtz+SzDJHKpb5X0UnHodl0BVzijUPk0LPlDOHAvogd1UI+iy9ZSF6gQxEqfzUxCULQ==}1080+ hasBin: true1081 1423- p-limit@3.1.0:1424- resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}1425- engines: {node: '>=10'}1082+ oxlint@1.58.0:1083+ resolution: {integrity: sha512-t4s9leczDMqlvOSjnbCQe7gtoLkWgBGZ7sBdCJ9EOj5IXFSG/X7OAzK4yuH4iW+4cAYe8kLFbC8tuYMwWZm+Cg==}1084+ engines: {node: ^20.19.0 || >=22.12.0}1085+ hasBin: true1086+ peerDependencies:1087+ oxlint-tsgolint: '>=0.18.0'1088+ peerDependenciesMeta:1089+ oxlint-tsgolint:1090+ optional: true1091 1427- p-locate@5.0.0:1428- resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}1429- engines: {node: '>=10'}1430-1431- parent-module@1.0.1:1432- resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}1433- engines: {node: '>=6'}1434-1435- path-exists@4.0.0:1436- resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}1437- engines: {node: '>=8'}1438-1439- path-key@3.1.1:1440- resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}1441- engines: {node: '>=8'}1442-1443- path-parse@1.0.7:1444- resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}1445-1092 picocolors@1.1.1:1093 resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}1094 1095 picomatch@4.0.4:3 unmodified lines1099 postcss@8.5.8:1100 resolution: {integrity: sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==}1101 engines: {node: ^10 || ^12 || >=14}1102 1457- prelude-ls@1.2.1:1458- resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}1459- engines: {node: '>= 0.8.0'}1460-1461- punycode@2.3.1:1462- resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}1463- engines: {node: '>=6'}1464-1103 random-bytes@1.0.0:1104 resolution: {integrity: sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==}1105 engines: {node: '>= 0.8'}1106 4 unmodified lines1111 requireindex@1.2.0:1112 resolution: {integrity: sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==}1113 engines: {node: '>=0.10.5'}1114 1477- resolve-from@4.0.0:1478- resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}1479- engines: {node: '>=4'}1480-1481- resolve-pkg-maps@1.0.0:1482- resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}1483-1484- resolve@1.22.11:1485- resolution: {integrity: sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==}1486- engines: {node: '>= 0.4'}1487- hasBin: true1488-1115 rndm@1.2.0:1116 resolution: {integrity: sha512-fJhQQI5tLrQvYIYFpOnFinzv9dwmR7hRnUz1XqP3OJ1jIweTNOd6aTO4jwQSgcBSFUB+/KHJxuGneime+FdzOw==}1117 1118 rolldown@1.0.0-rc.12:16 unmodified lines1135 resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==}1136 engines: {node: '>=10'}1137 hasBin: true1138 1513- shebang-command@2.0.0:1514- resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}1515- engines: {node: '>=8'}1516-1517- shebang-regex@3.0.0:1518- resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}1519- engines: {node: '>=8'}1520-1139 shortid@2.2.17:1140 resolution: {integrity: sha512-GpbM3gLF1UUXZvQw6MCyulHkWbRseNO4cyBEZresZRorwl1+SLu1ZdqgVtuwqz8mB6RpwPkm541mYSqrKyJSaA==}1141 1142 simple-git-hooks@2.13.1:20 unmodified lines1163 source-map@0.6.1:1164 resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}1165 engines: {node: '>=0.10.0'}1166 1549- stable-hash-x@0.2.0:1550- resolution: {integrity: sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==}1551- engines: {node: '>=12.0.0'}1552-1167 strip-ansi@6.0.1:1168 resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}1169 engines: {node: '>=8'}1170 1557- strip-json-comments@3.1.1:1558- resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}1559- engines: {node: '>=8'}1560-1171 supports-color@8.1.1:1172 resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}1173 engines: {node: '>=10'}1174 1565- supports-preserve-symlinks-flag@1.0.0:1566- resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}1567- engines: {node: '>= 0.4'}1568-1175 tapable@2.3.2:1176 resolution: {integrity: sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==}1177 engines: {node: '>=6'}1178 29 unmodified lines1208 tinyglobby@0.2.15:1209 resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}1210 engines: {node: '>=12.0.0'}1211 1606- ts-api-utils@2.5.0:1607- resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==}1608- engines: {node: '>=18.12'}1609- peerDependencies:1610- typescript: '>=4.8.4'1611-1612- ts-declaration-location@1.0.7:1613- resolution: {integrity: sha512-EDyGAwH1gO0Ausm9gV6T2nUvBgXT5kGoCMJPllOaooZ+4VvJiKBdZE7wK18N1deEowhcUptS+5GXZK8U/fvpwA==}1614- peerDependencies:1615- typescript: '>=4.0.0'1616-1212 tslib@2.8.1:1213 resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}1214 1620- type-check@0.4.0:1621- resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}1622- engines: {node: '>= 0.8.0'}1623-1624- typescript-eslint@8.58.0:1625- resolution: {integrity: sha512-e2TQzKfaI85fO+F3QywtX+tCTsu/D3WW5LVU6nz8hTFKFZ8yBJ6mSYRpXqdR3mFjPWmO0eWsTa5f+UpAOe/FMA==}1626- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}1627- peerDependencies:1628- eslint: ^8.57.0 || ^9.0.0 || ^10.0.01629- typescript: '>=4.8.4 <6.1.0'1630-1631- typescript@5.5.2:1632- resolution: {integrity: sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==}1215+ typescript@6.0.2:1216+ resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==}1217 engines: {node: '>=14.17'}1218 hasBin: true1219 1220 uid-safe@2.1.5:6 unmodified lines1227 1228 undici-types@7.18.2:1229 resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==}1230 1647- unrs-resolver@1.11.1:1648- resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==}1649-1231 update-browserslist-db@1.2.3:1232 resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}1233 hasBin: true1234 peerDependencies:1235 browserslist: '>= 4.21.0'1236 1656- uri-js@4.4.1:1657- resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}1658-1237 uuid@13.0.0:1238 resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==}1239 hasBin: true1240 57 unmodified lines1298 peerDependenciesMeta:1299 webpack-cli:1300 optional: true1301 1724- which@2.0.2:1725- resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}1726- engines: {node: '>= 8'}1727- hasBin: true1728-1729- word-wrap@1.2.5:1730- resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}1731- engines: {node: '>=0.10.0'}1732-1302 yallist@3.1.1:1303 resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}1304 1305 yaml@2.8.3:1306 resolution: {integrity: sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==}1307 engines: {node: '>= 14.6'}1308 hasBin: true1309 1741- yocto-queue@0.1.0:1742- resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}1743- engines: {node: '>=10'}1744-1310 snapshots:1311 1312 '@babel/code-frame@7.29.0':1313 dependencies:113 unmodified lines1427 1428 '@esbuild/linux-loong64@0.14.54':1429 optional: true1430 1866- '@eslint-community/eslint-utils@4.9.1(eslint@10.2.0(jiti@2.5.1))':1867- dependencies:1868- eslint: 10.2.0(jiti@2.5.1)1869- eslint-visitor-keys: 3.4.31870-1871- '@eslint-community/regexpp@4.12.2': {}1872-1873- '@eslint/config-array@0.23.4':1874- dependencies:1875- '@eslint/object-schema': 3.0.41876- debug: 4.4.31877- minimatch: 10.2.51878- transitivePeerDependencies:1879- - supports-color1880-1881- '@eslint/config-helpers@0.5.4':1882- dependencies:1883- '@eslint/core': 1.2.01884-1885- '@eslint/core@1.2.0':1886- dependencies:1887- '@types/json-schema': 7.0.151888-1889- '@eslint/eslintrc@3.3.5':1890- dependencies:1891- ajv: 6.14.01892- debug: 4.4.31893- espree: 10.4.01894- globals: 14.0.01895- ignore: 5.3.21896- import-fresh: 3.3.11897- js-yaml: 4.1.11898- minimatch: 3.1.51899- strip-json-comments: 3.1.11900- transitivePeerDependencies:1901- - supports-color1902-1903- '@eslint/object-schema@3.0.4': {}1904-1905- '@eslint/plugin-kit@0.7.0':1906- dependencies:1907- '@eslint/core': 1.2.01908- levn: 0.4.11909-1910- '@humanfs/core@0.19.1': {}1911-1912- '@humanfs/node@0.16.7':1913- dependencies:1914- '@humanfs/core': 0.19.11915- '@humanwhocodes/retry': 0.4.31916-1917- '@humanwhocodes/module-importer@1.0.1': {}1918-1919- '@humanwhocodes/retry@0.4.3': {}1920-1431 '@jridgewell/gen-mapping@0.3.13':1432 dependencies:1433 '@jridgewell/sourcemap-codec': 1.5.51434 '@jridgewell/trace-mapping': 0.3.3116 unmodified lines1451 dependencies:1452 '@jridgewell/resolve-uri': 3.1.21453 '@jridgewell/sourcemap-codec': 1.5.51454 1945- '@logux/eslint-config@57.1.0(@typescript-eslint/utils@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)':1455+ '@logux/oxc-configs@0.2.2(oxlint-tsgolint@0.20.0)(oxlint@1.58.0(oxlint-tsgolint@0.20.0))(typescript@6.0.2)':1456 dependencies:1947- '@eslint/eslintrc': 3.3.51948- eslint: 10.2.0(jiti@2.5.1)1949- eslint-plugin-import-x: 4.16.2(@typescript-eslint/utils@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint@10.2.0(jiti@2.5.1))1950- eslint-plugin-n: 17.24.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)1951- eslint-plugin-perfectionist: 5.8.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)1457 eslint-plugin-prefer-let: 4.2.21953- globals: 17.4.01954- typescript-eslint: 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)1955- transitivePeerDependencies:1956- - '@typescript-eslint/utils'1957- - eslint-import-resolver-node1958- - supports-color1959- - typescript1458+ oxlint: 1.58.0(oxlint-tsgolint@0.20.0)1459+ oxlint-tsgolint: 0.20.01460+ typescript: 6.0.21461 1462 '@lukeed/csprng@1.1.0': {}1463 1464 '@lukeed/uuid@2.0.1':54 unmodified lines1519 '@napi-rs/uuid-win32-arm64-msvc': 0.2.21520 '@napi-rs/uuid-win32-ia32-msvc': 0.2.21521 '@napi-rs/uuid-win32-x64-msvc': 0.2.21522 2022- '@napi-rs/wasm-runtime@0.2.12':2023- dependencies:2024- '@emnapi/core': 1.9.22025- '@emnapi/runtime': 1.9.22026- '@tybys/wasm-util': 0.10.12027- optional: true2028-1523 '@napi-rs/wasm-runtime@1.1.2(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)':1524 dependencies:1525 '@emnapi/core': 1.9.21526 '@emnapi/runtime': 1.9.25 unmodified lines1532 esbuild: 0.14.541533 1534 '@oxc-project/types@0.122.0': {}1535 2042- '@package-json/types@0.0.12': {}1536+ '@oxlint-tsgolint/darwin-arm64@0.20.0':1537+ optional: true1538 1539+ '@oxlint-tsgolint/darwin-x64@0.20.0':1540+ optional: true1541+1542+ '@oxlint-tsgolint/linux-arm64@0.20.0':1543+ optional: true1544+1545+ '@oxlint-tsgolint/linux-x64@0.20.0':1546+ optional: true1547+1548+ '@oxlint-tsgolint/win32-arm64@0.20.0':1549+ optional: true1550+1551+ '@oxlint-tsgolint/win32-x64@0.20.0':1552+ optional: true1553+1554+ '@oxlint/binding-android-arm-eabi@1.58.0':1555+ optional: true1556+1557+ '@oxlint/binding-android-arm64@1.58.0':1558+ optional: true1559+1560+ '@oxlint/binding-darwin-arm64@1.58.0':1561+ optional: true1562+1563+ '@oxlint/binding-darwin-x64@1.58.0':1564+ optional: true1565+1566+ '@oxlint/binding-freebsd-x64@1.58.0':1567+ optional: true1568+1569+ '@oxlint/binding-linux-arm-gnueabihf@1.58.0':1570+ optional: true1571+1572+ '@oxlint/binding-linux-arm-musleabihf@1.58.0':1573+ optional: true1574+1575+ '@oxlint/binding-linux-arm64-gnu@1.58.0':1576+ optional: true1577+1578+ '@oxlint/binding-linux-arm64-musl@1.58.0':1579+ optional: true1580+1581+ '@oxlint/binding-linux-ppc64-gnu@1.58.0':1582+ optional: true1583+1584+ '@oxlint/binding-linux-riscv64-gnu@1.58.0':1585+ optional: true1586+1587+ '@oxlint/binding-linux-riscv64-musl@1.58.0':1588+ optional: true1589+1590+ '@oxlint/binding-linux-s390x-gnu@1.58.0':1591+ optional: true1592+1593+ '@oxlint/binding-linux-x64-gnu@1.58.0':1594+ optional: true1595+1596+ '@oxlint/binding-linux-x64-musl@1.58.0':1597+ optional: true1598+1599+ '@oxlint/binding-openharmony-arm64@1.58.0':1600+ optional: true1601+1602+ '@oxlint/binding-win32-arm64-msvc@1.58.0':1603+ optional: true1604+1605+ '@oxlint/binding-win32-ia32-msvc@1.58.0':1606+ optional: true1607+1608+ '@oxlint/binding-win32-x64-msvc@1.58.0':1609+ optional: true1610+1611 '@rolldown/binding-android-arm64@1.0.0-rc.12':1612 optional: true1613 1614 '@rolldown/binding-darwin-arm64@1.0.0-rc.12':74 unmodified lines1689 dependencies:1690 '@types/estree': 1.0.81691 '@types/json-schema': 7.0.151692 2126- '@types/esrecurse@4.3.1': {}2127-1693 '@types/estree@1.0.8': {}1694 1695 '@types/json-schema@7.0.15': {}1696 1697 '@types/node@25.5.2':1698 dependencies:1699 undici-types: 7.18.21700 2136- '@typescript-eslint/eslint-plugin@8.58.0(@typescript-eslint/parser@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2))(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)':2137- dependencies:2138- '@eslint-community/regexpp': 4.12.22139- '@typescript-eslint/parser': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)2140- '@typescript-eslint/scope-manager': 8.58.02141- '@typescript-eslint/type-utils': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)2142- '@typescript-eslint/utils': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)2143- '@typescript-eslint/visitor-keys': 8.58.02144- eslint: 10.2.0(jiti@2.5.1)2145- ignore: 7.0.52146- natural-compare: 1.4.02147- ts-api-utils: 2.5.0(typescript@5.5.2)2148- typescript: 5.5.22149- transitivePeerDependencies:2150- - supports-color2151-2152- '@typescript-eslint/parser@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)':2153- dependencies:2154- '@typescript-eslint/scope-manager': 8.58.02155- '@typescript-eslint/types': 8.58.02156- '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.5.2)2157- '@typescript-eslint/visitor-keys': 8.58.02158- debug: 4.4.32159- eslint: 10.2.0(jiti@2.5.1)2160- typescript: 5.5.22161- transitivePeerDependencies:2162- - supports-color2163-2164- '@typescript-eslint/project-service@8.58.0(typescript@5.5.2)':2165- dependencies:2166- '@typescript-eslint/tsconfig-utils': 8.58.0(typescript@5.5.2)2167- '@typescript-eslint/types': 8.58.02168- debug: 4.4.32169- typescript: 5.5.22170- transitivePeerDependencies:2171- - supports-color2172-2173- '@typescript-eslint/scope-manager@8.58.0':2174- dependencies:2175- '@typescript-eslint/types': 8.58.02176- '@typescript-eslint/visitor-keys': 8.58.02177-2178- '@typescript-eslint/tsconfig-utils@8.58.0(typescript@5.5.2)':2179- dependencies:2180- typescript: 5.5.22181-2182- '@typescript-eslint/type-utils@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)':2183- dependencies:2184- '@typescript-eslint/types': 8.58.02185- '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.5.2)2186- '@typescript-eslint/utils': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)2187- debug: 4.4.32188- eslint: 10.2.0(jiti@2.5.1)2189- ts-api-utils: 2.5.0(typescript@5.5.2)2190- typescript: 5.5.22191- transitivePeerDependencies:2192- - supports-color2193-2194- '@typescript-eslint/types@8.58.0': {}2195-2196- '@typescript-eslint/typescript-estree@8.58.0(typescript@5.5.2)':2197- dependencies:2198- '@typescript-eslint/project-service': 8.58.0(typescript@5.5.2)2199- '@typescript-eslint/tsconfig-utils': 8.58.0(typescript@5.5.2)2200- '@typescript-eslint/types': 8.58.02201- '@typescript-eslint/visitor-keys': 8.58.02202- debug: 4.4.32203- minimatch: 10.2.52204- semver: 7.7.42205- tinyglobby: 0.2.152206- ts-api-utils: 2.5.0(typescript@5.5.2)2207- typescript: 5.5.22208- transitivePeerDependencies:2209- - supports-color2210-2211- '@typescript-eslint/utils@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)':2212- dependencies:2213- '@eslint-community/eslint-utils': 4.9.1(eslint@10.2.0(jiti@2.5.1))2214- '@typescript-eslint/scope-manager': 8.58.02215- '@typescript-eslint/types': 8.58.02216- '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.5.2)2217- eslint: 10.2.0(jiti@2.5.1)2218- typescript: 5.5.22219- transitivePeerDependencies:2220- - supports-color2221-2222- '@typescript-eslint/visitor-keys@8.58.0':2223- dependencies:2224- '@typescript-eslint/types': 8.58.02225- eslint-visitor-keys: 5.0.12226-2227- '@unrs/resolver-binding-android-arm-eabi@1.11.1':2228- optional: true2229-2230- '@unrs/resolver-binding-android-arm64@1.11.1':2231- optional: true2232-2233- '@unrs/resolver-binding-darwin-arm64@1.11.1':2234- optional: true2235-2236- '@unrs/resolver-binding-darwin-x64@1.11.1':2237- optional: true2238-2239- '@unrs/resolver-binding-freebsd-x64@1.11.1':2240- optional: true2241-2242- '@unrs/resolver-binding-linux-arm-gnueabihf@1.11.1':2243- optional: true2244-2245- '@unrs/resolver-binding-linux-arm-musleabihf@1.11.1':2246- optional: true2247-2248- '@unrs/resolver-binding-linux-arm64-gnu@1.11.1':2249- optional: true2250-2251- '@unrs/resolver-binding-linux-arm64-musl@1.11.1':2252- optional: true2253-2254- '@unrs/resolver-binding-linux-ppc64-gnu@1.11.1':2255- optional: true2256-2257- '@unrs/resolver-binding-linux-riscv64-gnu@1.11.1':2258- optional: true2259-2260- '@unrs/resolver-binding-linux-riscv64-musl@1.11.1':2261- optional: true2262-2263- '@unrs/resolver-binding-linux-s390x-gnu@1.11.1':2264- optional: true2265-2266- '@unrs/resolver-binding-linux-x64-gnu@1.11.1':2267- optional: true2268-2269- '@unrs/resolver-binding-linux-x64-musl@1.11.1':2270- optional: true2271-2272- '@unrs/resolver-binding-wasm32-wasi@1.11.1':2273- dependencies:2274- '@napi-rs/wasm-runtime': 0.2.122275- optional: true2276-2277- '@unrs/resolver-binding-win32-arm64-msvc@1.11.1':2278- optional: true2279-2280- '@unrs/resolver-binding-win32-ia32-msvc@1.11.1':2281- optional: true2282-2283- '@unrs/resolver-binding-win32-x64-msvc@1.11.1':2284- optional: true2285-1701 '@webassemblyjs/ast@1.14.1':1702 dependencies:1703 '@webassemblyjs/helper-numbers': 1.13.21704 '@webassemblyjs/helper-wasm-bytecode': 1.13.276 unmodified lines1781 acorn-import-phases@1.0.4(acorn@8.16.0):1782 dependencies:1783 acorn: 8.16.01784 2370- acorn-jsx@5.3.2(acorn@8.16.0):2371- dependencies:2372- acorn: 8.16.02373-1785 acorn@8.16.0: {}1786 1787 actions-up@1.12.1:1788 dependencies:12 unmodified lines1801 dependencies:1802 ajv: 8.18.01803 fast-deep-equal: 3.1.31804 2394- ajv@6.14.0:2395- dependencies:2396- fast-deep-equal: 3.1.32397- fast-json-stable-stringify: 2.1.02398- json-schema-traverse: 0.4.12399- uri-js: 4.4.12400-1805 ajv@8.18.0:1806 dependencies:1807 fast-deep-equal: 3.1.31808 fast-uri: 3.1.03 unmodified lines1812 ansi-colors@4.1.3: {}1813 1814 ansi-regex@5.0.1: {}1815 2412- argparse@2.0.1: {}2413-2414- balanced-match@1.0.2: {}2415-2416- balanced-match@4.0.4: {}2417-1816 baseline-browser-mapping@2.10.16: {}1817 1818 better-node-test@0.8.4: {}1819 2422- brace-expansion@1.1.13:2423- dependencies:2424- balanced-match: 1.0.22425- concat-map: 0.0.12426-2427- brace-expansion@5.0.5:2428- dependencies:2429- balanced-match: 4.0.42430-1820 browserslist@4.28.2:1821 dependencies:1822 baseline-browser-mapping: 2.10.161823 caniuse-lite: 1.0.300017866 unmodified lines1830 bytes-iec@3.1.1: {}1831 1832 cac@7.0.0: {}1833 2445- callsites@3.1.0: {}2446-1834 caniuse-lite@1.0.30001786: {}1835 1836 chrome-trace-event@1.0.4: {}1837 5 unmodified lines1843 tinyglobby: 0.2.151844 1845 commander@2.20.3: {}1846 2460- comment-parser@1.4.6: {}2461-2462- concat-map@0.0.1: {}2463-1847 convert-source-map@2.0.0: {}1848 2466- cross-spawn@7.0.6:2467- dependencies:2468- path-key: 3.1.12469- shebang-command: 2.0.02470- which: 2.0.22471-2472- debug@3.2.7:2473- dependencies:2474- ms: 2.1.32475- optional: true2476-1849 debug@4.4.3:1850 dependencies:1851 ms: 2.1.31852 2481- deep-is@0.1.4: {}2482-1853 detect-libc@2.1.2: {}1854 1855 electron-to-chromium@1.5.331: {}1856 94 unmodified lines1951 esbuild-windows-arm64: 0.14.541952 1953 escalade@3.2.0: {}1954 2585- escape-string-regexp@4.0.0: {}2586-2587- eslint-compat-utils@0.5.1(eslint@10.2.0(jiti@2.5.1)):2588- dependencies:2589- eslint: 10.2.0(jiti@2.5.1)2590- semver: 7.7.42591-2592- eslint-import-context@0.1.9(unrs-resolver@1.11.1):2593- dependencies:2594- get-tsconfig: 4.13.72595- stable-hash-x: 0.2.02596- optionalDependencies:2597- unrs-resolver: 1.11.12598-2599- eslint-import-resolver-node@0.3.9:2600- dependencies:2601- debug: 3.2.72602- is-core-module: 2.16.12603- resolve: 1.22.112604- transitivePeerDependencies:2605- - supports-color2606- optional: true2607-2608- eslint-plugin-es-x@7.8.0(eslint@10.2.0(jiti@2.5.1)):2609- dependencies:2610- '@eslint-community/eslint-utils': 4.9.1(eslint@10.2.0(jiti@2.5.1))2611- '@eslint-community/regexpp': 4.12.22612- eslint: 10.2.0(jiti@2.5.1)2613- eslint-compat-utils: 0.5.1(eslint@10.2.0(jiti@2.5.1))2614-2615- eslint-plugin-import-x@4.16.2(@typescript-eslint/utils@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint@10.2.0(jiti@2.5.1)):2616- dependencies:2617- '@package-json/types': 0.0.122618- '@typescript-eslint/types': 8.58.02619- comment-parser: 1.4.62620- debug: 4.4.32621- eslint: 10.2.0(jiti@2.5.1)2622- eslint-import-context: 0.1.9(unrs-resolver@1.11.1)2623- is-glob: 4.0.32624- minimatch: 10.2.52625- semver: 7.7.42626- stable-hash-x: 0.2.02627- unrs-resolver: 1.11.12628- optionalDependencies:2629- '@typescript-eslint/utils': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)2630- eslint-import-resolver-node: 0.3.92631- transitivePeerDependencies:2632- - supports-color2633-2634- eslint-plugin-n@17.24.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2):2635- dependencies:2636- '@eslint-community/eslint-utils': 4.9.1(eslint@10.2.0(jiti@2.5.1))2637- enhanced-resolve: 5.20.12638- eslint: 10.2.0(jiti@2.5.1)2639- eslint-plugin-es-x: 7.8.0(eslint@10.2.0(jiti@2.5.1))2640- get-tsconfig: 4.13.72641- globals: 15.15.02642- globrex: 0.1.22643- ignore: 5.3.22644- semver: 7.7.42645- ts-declaration-location: 1.0.7(typescript@5.5.2)2646- transitivePeerDependencies:2647- - typescript2648-2649- eslint-plugin-perfectionist@5.8.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2):2650- dependencies:2651- '@typescript-eslint/utils': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)2652- eslint: 10.2.0(jiti@2.5.1)2653- natural-orderby: 5.0.02654- transitivePeerDependencies:2655- - supports-color2656- - typescript2657-1955 eslint-plugin-prefer-let@4.2.2:1956 dependencies:1957 requireindex: 1.2.01958 1 unmodified line1960 dependencies:1961 esrecurse: 4.3.01962 estraverse: 4.3.01963 2667- eslint-scope@9.1.2:2668- dependencies:2669- '@types/esrecurse': 4.3.12670- '@types/estree': 1.0.82671- esrecurse: 4.3.02672- estraverse: 5.3.02673-2674- eslint-visitor-keys@3.4.3: {}2675-2676- eslint-visitor-keys@4.2.1: {}2677-2678- eslint-visitor-keys@5.0.1: {}2679-2680- eslint@10.2.0(jiti@2.5.1):2681- dependencies:2682- '@eslint-community/eslint-utils': 4.9.1(eslint@10.2.0(jiti@2.5.1))2683- '@eslint-community/regexpp': 4.12.22684- '@eslint/config-array': 0.23.42685- '@eslint/config-helpers': 0.5.42686- '@eslint/core': 1.2.02687- '@eslint/plugin-kit': 0.7.02688- '@humanfs/node': 0.16.72689- '@humanwhocodes/module-importer': 1.0.12690- '@humanwhocodes/retry': 0.4.32691- '@types/estree': 1.0.82692- ajv: 6.14.02693- cross-spawn: 7.0.62694- debug: 4.4.32695- escape-string-regexp: 4.0.02696- eslint-scope: 9.1.22697- eslint-visitor-keys: 5.0.12698- espree: 11.2.02699- esquery: 1.7.02700- esutils: 2.0.32701- fast-deep-equal: 3.1.32702- file-entry-cache: 8.0.02703- find-up: 5.0.02704- glob-parent: 6.0.22705- ignore: 5.3.22706- imurmurhash: 0.1.42707- is-glob: 4.0.32708- json-stable-stringify-without-jsonify: 1.0.12709- minimatch: 10.2.52710- natural-compare: 1.4.02711- optionator: 0.9.42712- optionalDependencies:2713- jiti: 2.5.12714- transitivePeerDependencies:2715- - supports-color2716-2717- espree@10.4.0:2718- dependencies:2719- acorn: 8.16.02720- acorn-jsx: 5.3.2(acorn@8.16.0)2721- eslint-visitor-keys: 4.2.12722-2723- espree@11.2.0:2724- dependencies:2725- acorn: 8.16.02726- acorn-jsx: 5.3.2(acorn@8.16.0)2727- eslint-visitor-keys: 5.0.12728-2729- esquery@1.7.0:2730- dependencies:2731- estraverse: 5.3.02732-1964 esrecurse@4.3.0:1965 dependencies:1966 estraverse: 5.3.01967 1968 estraverse@4.3.0: {}1969 1970 estraverse@5.3.0: {}1971 2741- esutils@2.0.3: {}2742-1972 events@3.3.0: {}1973 1974 fast-deep-equal@3.1.3: {}1975 2747- fast-json-stable-stringify@2.1.0: {}2748-2749- fast-levenshtein@2.0.6: {}2750-1976 fast-uri@3.1.0: {}1977 1978 fdir@6.5.0(picomatch@4.0.4):1979 optionalDependencies:1980 picomatch: 4.0.41981 2757- file-entry-cache@8.0.0:2758- dependencies:2759- flat-cache: 4.0.12760-2761- find-up@5.0.0:2762- dependencies:2763- locate-path: 6.0.02764- path-exists: 4.0.02765-2766- flat-cache@4.0.1:2767- dependencies:2768- flatted: 3.4.22769- keyv: 4.5.42770-2771- flatted@3.4.2: {}2772-1982 fsevents@2.3.3:1983 optional: true1984 2776- function-bind@1.1.2:2777- optional: true2778-1985 gensync@1.0.0-beta.2: {}1986 2781- get-tsconfig@4.13.7:2782- dependencies:2783- resolve-pkg-maps: 1.0.02784-2785- glob-parent@6.0.2:2786- dependencies:2787- is-glob: 4.0.32788-1987 glob-to-regexp@0.4.1: {}1988 2791- globals@14.0.0: {}2792-2793- globals@15.15.0: {}2794-2795- globals@17.4.0: {}2796-2797- globrex@0.1.2: {}2798-1989 graceful-fs@4.2.11: {}1990 1991 has-flag@4.0.0: {}1992 2803- hasown@2.0.2:2804- dependencies:2805- function-bind: 1.1.22806- optional: true2807-2808- ignore@5.3.2: {}2809-2810- ignore@7.0.5: {}2811-2812- import-fresh@3.3.1:2813- dependencies:2814- parent-module: 1.0.12815- resolve-from: 4.0.02816-2817- imurmurhash@0.1.4: {}2818-2819- is-core-module@2.16.1:2820- dependencies:2821- hasown: 2.0.22822- optional: true2823-2824- is-extglob@2.1.1: {}2825-2826- is-glob@4.0.3:2827- dependencies:2828- is-extglob: 2.1.12829-2830- isexe@2.0.0: {}2831-1993 jest-worker@27.5.1:1994 dependencies:1995 '@types/node': 25.5.21996 merge-stream: 2.0.03 unmodified lines2000 optional: true2001 2002 js-tokens@4.0.0: {}2003 2843- js-yaml@4.1.1:2844- dependencies:2845- argparse: 2.0.12846-2004 jsesc@3.1.0: {}2005 2849- json-buffer@3.0.1: {}2850-2006 json-parse-even-better-errors@2.3.1: {}2007 2853- json-schema-traverse@0.4.1: {}2854-2008 json-schema-traverse@1.0.0: {}2009 2857- json-stable-stringify-without-jsonify@1.0.1: {}2858-2010 json5@2.2.3: {}2011 2861- keyv@4.5.4:2862- dependencies:2863- json-buffer: 3.0.12864-2865- levn@0.4.1:2866- dependencies:2867- prelude-ls: 1.2.12868- type-check: 0.4.02869-2012 lightningcss-android-arm64@1.32.0:2013 optional: true2014 2015 lightningcss-darwin-arm64@1.32.0:45 unmodified lines2061 lilconfig@3.1.3: {}2062 2063 loader-runner@4.3.1: {}2064 2923- locate-path@6.0.0:2924- dependencies:2925- p-locate: 5.0.02926-2065 lru-cache@5.1.1:2066 dependencies:2067 yallist: 3.1.12068 4 unmodified lines2073 mime-types@2.1.35:2074 dependencies:2075 mime-db: 1.52.02076 2939- minimatch@10.2.5:2940- dependencies:2941- brace-expansion: 5.0.52942-2943- minimatch@3.1.5:2944- dependencies:2945- brace-expansion: 1.1.132946-2077 ms@2.1.3: {}2078 2079 nanoid@3.3.11: {}2080 2 unmodified lines2083 nanospinner@1.2.2:2084 dependencies:2085 picocolors: 1.1.12086 2957- napi-postinstall@0.3.4: {}2958-2959- natural-compare@1.4.0: {}2960-2961- natural-orderby@5.0.0: {}2962-2087 neo-async@2.6.2: {}2088 2089 node-releases@2.0.37: {}2090 2967- optionator@0.9.4:2968- dependencies:2969- deep-is: 0.1.42970- fast-levenshtein: 2.0.62971- levn: 0.4.12972- prelude-ls: 1.2.12973- type-check: 0.4.02974- word-wrap: 1.2.52091+ oxlint-tsgolint@0.20.0:2092+ optionalDependencies:2093+ '@oxlint-tsgolint/darwin-arm64': 0.20.02094+ '@oxlint-tsgolint/darwin-x64': 0.20.02095+ '@oxlint-tsgolint/linux-arm64': 0.20.02096+ '@oxlint-tsgolint/linux-x64': 0.20.02097+ '@oxlint-tsgolint/win32-arm64': 0.20.02098+ '@oxlint-tsgolint/win32-x64': 0.20.02099 2976- p-limit@3.1.0:2977- dependencies:2978- yocto-queue: 0.1.02100+ oxlint@1.58.0(oxlint-tsgolint@0.20.0):2101+ optionalDependencies:2102+ '@oxlint/binding-android-arm-eabi': 1.58.02103+ '@oxlint/binding-android-arm64': 1.58.02104+ '@oxlint/binding-darwin-arm64': 1.58.02105+ '@oxlint/binding-darwin-x64': 1.58.02106+ '@oxlint/binding-freebsd-x64': 1.58.02107+ '@oxlint/binding-linux-arm-gnueabihf': 1.58.02108+ '@oxlint/binding-linux-arm-musleabihf': 1.58.02109+ '@oxlint/binding-linux-arm64-gnu': 1.58.02110+ '@oxlint/binding-linux-arm64-musl': 1.58.02111+ '@oxlint/binding-linux-ppc64-gnu': 1.58.02112+ '@oxlint/binding-linux-riscv64-gnu': 1.58.02113+ '@oxlint/binding-linux-riscv64-musl': 1.58.02114+ '@oxlint/binding-linux-s390x-gnu': 1.58.02115+ '@oxlint/binding-linux-x64-gnu': 1.58.02116+ '@oxlint/binding-linux-x64-musl': 1.58.02117+ '@oxlint/binding-openharmony-arm64': 1.58.02118+ '@oxlint/binding-win32-arm64-msvc': 1.58.02119+ '@oxlint/binding-win32-ia32-msvc': 1.58.02120+ '@oxlint/binding-win32-x64-msvc': 1.58.02121+ oxlint-tsgolint: 0.20.02122 2980- p-locate@5.0.0:2981- dependencies:2982- p-limit: 3.1.02983-2984- parent-module@1.0.1:2985- dependencies:2986- callsites: 3.1.02987-2988- path-exists@4.0.0: {}2989-2990- path-key@3.1.1: {}2991-2992- path-parse@1.0.7:2993- optional: true2994-2123 picocolors@1.1.1: {}2124 2125 picomatch@4.0.4: {}2126 2 unmodified lines2129 nanoid: 3.3.112130 picocolors: 1.1.12131 source-map-js: 1.2.12132 3005- prelude-ls@1.2.1: {}3006-3007- punycode@2.3.1: {}3008-2133 random-bytes@1.0.0: {}2134 2135 require-from-string@2.0.2: {}2136 2137 requireindex@1.2.0: {}2138 3015- resolve-from@4.0.0: {}3016-3017- resolve-pkg-maps@1.0.0: {}3018-3019- resolve@1.22.11:3020- dependencies:3021- is-core-module: 2.16.13022- path-parse: 1.0.73023- supports-preserve-symlinks-flag: 1.0.03024- optional: true3025-2139 rndm@1.2.0: {}2140 2141 rolldown@1.0.0-rc.12(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2):2142 dependencies:31 unmodified lines2174 semver@6.3.1: {}2175 2176 semver@7.7.4: {}2177 3065- shebang-command@2.0.0:3066- dependencies:3067- shebang-regex: 3.0.03068-3069- shebang-regex@3.0.0: {}3070-2178 shortid@2.2.17:2179 dependencies:2180 nanoid: 3.3.112181 17 unmodified lines2199 source-map: 0.6.12200 2201 source-map@0.6.1: {}2202 3096- stable-hash-x@0.2.0: {}3097-2203 strip-ansi@6.0.1:2204 dependencies:2205 ansi-regex: 5.0.12206 3102- strip-json-comments@3.1.1: {}3103-2207 supports-color@8.1.1:2208 dependencies:2209 has-flag: 4.0.02210 3108- supports-preserve-symlinks-flag@1.0.0:3109- optional: true3110-2211 tapable@2.3.2: {}2212 2213 terser-webpack-plugin@5.4.0(webpack@5.105.4):2214 dependencies:18 unmodified lines2233 dependencies:2234 fdir: 6.5.0(picomatch@4.0.4)2235 picomatch: 4.0.42236 3137- ts-api-utils@2.5.0(typescript@5.5.2):3138- dependencies:3139- typescript: 5.5.23140-3141- ts-declaration-location@1.0.7(typescript@5.5.2):3142- dependencies:3143- picomatch: 4.0.43144- typescript: 5.5.23145-2237 tslib@2.8.1:2238 optional: true2239 3149- type-check@0.4.0:3150- dependencies:3151- prelude-ls: 1.2.12240+ typescript@6.0.2: {}2241 3153- typescript-eslint@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2):3154- dependencies:3155- '@typescript-eslint/eslint-plugin': 8.58.0(@typescript-eslint/parser@8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2))(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)3156- '@typescript-eslint/parser': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)3157- '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.5.2)3158- '@typescript-eslint/utils': 8.58.0(eslint@10.2.0(jiti@2.5.1))(typescript@5.5.2)3159- eslint: 10.2.0(jiti@2.5.1)3160- typescript: 5.5.23161- transitivePeerDependencies:3162- - supports-color3163-3164- typescript@5.5.2: {}3165-2242 uid-safe@2.1.5:2243 dependencies:2244 random-bytes: 1.0.02245 2 unmodified lines2248 '@lukeed/csprng': 1.1.02249 2250 undici-types@7.18.2: {}2251 3176- unrs-resolver@1.11.1:3177- dependencies:3178- napi-postinstall: 0.3.43179- optionalDependencies:3180- '@unrs/resolver-binding-android-arm-eabi': 1.11.13181- '@unrs/resolver-binding-android-arm64': 1.11.13182- '@unrs/resolver-binding-darwin-arm64': 1.11.13183- '@unrs/resolver-binding-darwin-x64': 1.11.13184- '@unrs/resolver-binding-freebsd-x64': 1.11.13185- '@unrs/resolver-binding-linux-arm-gnueabihf': 1.11.13186- '@unrs/resolver-binding-linux-arm-musleabihf': 1.11.13187- '@unrs/resolver-binding-linux-arm64-gnu': 1.11.13188- '@unrs/resolver-binding-linux-arm64-musl': 1.11.13189- '@unrs/resolver-binding-linux-ppc64-gnu': 1.11.13190- '@unrs/resolver-binding-linux-riscv64-gnu': 1.11.13191- '@unrs/resolver-binding-linux-riscv64-musl': 1.11.13192- '@unrs/resolver-binding-linux-s390x-gnu': 1.11.13193- '@unrs/resolver-binding-linux-x64-gnu': 1.11.13194- '@unrs/resolver-binding-linux-x64-musl': 1.11.13195- '@unrs/resolver-binding-wasm32-wasi': 1.11.13196- '@unrs/resolver-binding-win32-arm64-msvc': 1.11.13197- '@unrs/resolver-binding-win32-ia32-msvc': 1.11.13198- '@unrs/resolver-binding-win32-x64-msvc': 1.11.13199-2252 update-browserslist-db@1.2.3(browserslist@4.28.2):2253 dependencies:2254 browserslist: 4.28.22255 escalade: 3.2.02256 picocolors: 1.1.12257 3206- uri-js@4.4.1:3207- dependencies:3208- punycode: 2.3.13209-2258 uuid@13.0.0: {}2259 2260 vite@8.0.5(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(@types/node@25.5.2)(jiti@2.5.1)(terser@5.46.1)(yaml@2.8.3):2261 dependencies:50 unmodified lines2312 - '@swc/core'2313 - esbuild2314 - uglify-js2315 3268- which@2.0.2:3269- dependencies:3270- isexe: 2.0.03271-3272- word-wrap@1.2.5: {}3273-2316 yallist@3.1.1: {}2317 2318 yaml@2.8.3: {}3277-3278- yocto-queue@0.1.0: {}modified:README.ar.md+73 added-84 removed
10 unmodified lines11 12 > "مستوى مذهل من الكمالية التي لا معنى لها،13 > والتي يستحيل ألّا تحظى بالاحترام."14 15-* **صغير الحجم.** 118 بايت فقط (بعد التصغير والضغط ببروتلي). بدون أيّ اعتماديات خارجية.15+- **صغير الحجم.** 118 بايت فقط (بعد التصغير والضغط ببروتلي). بدون أيّ اعتماديات خارجية.16 يتم التحكّم بالحجم عبر [Size Limit].17-* **آمن.** يستخدم مُولِّد أرقام عشوائية على مستوى العتاد. يمكن استخدامه في بيئات الكلستر.18-* **مُعرِّفات قصيرة.** يستخدم أبجدية أكبر من UUID وهي (`A-Za-z0-9_-`).17+- **آمن.** يستخدم مُولِّد أرقام عشوائية على مستوى العتاد. يمكن استخدامه في بيئات الكلستر.18+- **مُعرِّفات قصيرة.** يستخدم أبجدية أكبر من UUID وهي (`A-Za-z0-9_-`).19 لذا تم تقليص حجم المُعرِّف من 36 إلى 21 رمزًا.20-* **قابل للنقل.** تم نقل Nano ID20+- **قابل للنقل.** تم نقل Nano ID21 إلى أكثر من [20 لغة برمجة](./README.md#other-programming-languages).22 23 </div>24 3 unmodified lines28 ```29 30 ---31 32-<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.32+<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.33 34 ---35 36 [online tool]: https://gitpod.io/#https://github.com/ai/nanoid/37-[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/38-[Size Limit]: https://github.com/ai/size-limit37+[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/38+[Size Limit]: https://github.com/ai/size-limit39 40-40 <div dir="rtl">41 42 ## جدول المحتويات43 19 unmodified lines63 - [TypeScript](#typescript)64 - [لغات البرمجة الأخرى](#لغات-البرمجة-الأخرى)65 - [الأدوات](#الأدوات)66 68-67 ## المقارنة مع UUID68 69 Nano ID قابل للمقارنة مع UUID v4 (المبني على العشوائية).70 يحتوي على عدد مماثل من البتّات العشوائية في المُعرِّف8 unmodified lines79 في 21 رمزًا فقط بدلاً من 36.80 2. كود Nano ID أصغر بـ **4 مرات** من حزمة `uuid/v4`:81 118 بايت مقابل 423.82 85-83 ## اختبار الأداء84 85 </div>86 20 unmodified lines107 <div dir="rtl">108 109 بيئة الاختبار: Framework 13 7840U، فيدورا 39، Node.js 21.6.110 114-111 ## الأمان112 117-*اقرأ مقالاً جيداً عن نظرية مُولِّدات الأرقام العشوائية:118-[Secure random values (in Node.js)]*113+_اقرأ مقالاً جيداً عن نظرية مُولِّدات الأرقام العشوائية:114+[Secure random values (in Node.js)]_115 120-* **عدم القابلية للتنبؤ.** بدلاً من استخدام `Math.random()` غير الآمن، يستخدم Nano ID116+- **عدم القابلية للتنبؤ.** بدلاً من استخدام `Math.random()` غير الآمن، يستخدم Nano ID117 وحدة `crypto` في Node.js و Web Crypto API في المتصفحات.118 هذه الوحدات تستخدم مُولِّد أرقام عشوائية على مستوى العتاد لا يمكن التنبؤ به.123-* **التوزيع المنتظم.** `random % alphabet` هو خطأ شائع عند برمجة مُولِّد مُعرِّفات.119+- **التوزيع المنتظم.** `random % alphabet` هو خطأ شائع عند برمجة مُولِّد مُعرِّفات.120 التوزيع لن يكون متساويًا؛ بعض الرموز ستظهر بتواتر أقل من غيرها.121 وهذا يقلّل عدد المحاولات اللازمة للكسر بالقوة الغاشمة. يستخدم Nano ID122 [خوارزمية أفضل] وقد تم اختباره للتحقّق من انتظام التوزيع.123 124 <img src="img/distribution.png" alt="انتظام توزيع Nano ID"125 width="340" height="135">126 131-* **موثّق جيداً:** جميع الحيل البرمجية في Nano ID موثّقة. اطّلع على التعليقات127+- **موثّق جيداً:** جميع الحيل البرمجية في Nano ID موثّقة. اطّلع على التعليقات128 في [الكود المصدري].133-* **الثغرات الأمنية:** للإبلاغ عن ثغرة أمنية، يُرجى استخدام129+- **الثغرات الأمنية:** للإبلاغ عن ثغرة أمنية، يُرجى استخدام130 [جهة اتصال Tidelift الأمنية](https://tidelift.com/security).131 سيقوم Tidelift بتنسيق الإصلاح والإفصاح.132 133 [Secure random values (in Node.js)]: https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba138-[خوارزمية أفضل]: https://github.com/ai/nanoid/blob/main/index.js139-[الكود المصدري]: https://github.com/ai/nanoid/blob/main/index.js134+[خوارزمية أفضل]: https://github.com/ai/nanoid/blob/main/index.js135+[الكود المصدري]: https://github.com/ai/nanoid/blob/main/index.js136 141-137 ## التثبيت138 139 ### ESM140 18 unmodified lines159 - لـ Node.js 18 يمكنك استيراد Nano ID ديناميكيًا كالتالي:160 161 </div>162 168- ```js169- let nanoid170- module.exports.createID = async () => {171- if (!nanoid) ({ nanoid } = await import('nanoid'))172- return nanoid() // => "V1StGXR8_Z5jdHi6B-myT"173- }174- ```163+```js164+let nanoid165+module.exports.createID = async () => {166+ if (!nanoid) ({ nanoid } = await import('nanoid'))167+ return nanoid() // => "V1StGXR8_Z5jdHi6B-myT"168+}169+```170 171 <div dir="rtl">172 173 - يمكنك استخدام Nano ID 3.x (ما زلنا ندعمه):174 175 </div>176 182- ```bash183- npm install nanoid@3184- ```177+```bash178+npm install nanoid@3179+```180 181 <div dir="rtl">182 183 ### JSR22 unmodified lines206 207 لـ Deno ثبّته عبر `deno add jsr:@sitnik/nanoid` أو استورده208 من `jsr:@sitnik/nanoid`.209 215-210 ### CDN211 212 للتجارب السريعة، يمكنك تحميل Nano ID من CDN. لكن لا يُنصح باستخدامه213 في الإنتاج بسبب انخفاض أداء التحميل.12 unmodified lines226 227 بشكل افتراضي، يستخدم Nano ID رموزًا متوافقة مع الروابط (`A-Za-z0-9_-`) ويُنتج مُعرِّفًا228 مكوّنًا من 21 حرفًا (ليكون احتمال التكرار مماثلاً لـ UUID v4).229 236-230 ### متزامن (Blocking)231 232 الطريقة الأسهل والأكثر أمانًا لاستخدام Nano ID.233 27 unmodified lines261 أو [مُولِّد أرقام عشوائية مخصّص](#مُولِّد-بايتات-عشوائية-مخصّص).262 263 [احتمالية تكرار المُعرِّف]: https://zelark.github.io/nano-id-cc/264 272-265 ### غير آمن (Non-Secure)266 267 بشكل افتراضي، يستخدم Nano ID توليد بايتات عشوائية على مستوى العتاد268 من أجل الأمان وتقليل احتمالية التكرار. إذا لم يكن الأمان مهمًا بالنسبة لك،47 unmodified lines316 model.id = nanoid(5) //=> "f01a2"317 ```318 319 [احتمالية تكرار المُعرِّف]: https://zelark.github.io/nano-id-cc/328-[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary320+[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary321 322 <div dir="rtl">323 324 ### مُولِّد بايتات عشوائية مخصّص9 unmodified lines334 import { customRandom } from 'nanoid'335 336 const rng = seedrandom(seed)337 const nanoid = customRandom('abcdef', 10, size => {346- return (new Uint8Array(size)).map(() => 256 * rng())338+ return new Uint8Array(size).map(() => 256 * rng())339 })340 341 nanoid() //=> "fbaefaadeb"342 ```17 unmodified lines360 361 ملاحظة: بين إصدارات Nano ID قد يتغيّر تسلسل استدعاء مُولِّد الأرقام العشوائية.362 إذا كنت تستخدم مُولِّدات مبنية على بذرة، فإننا لا نضمن نفس النتيجة.363 372-364 ## الاستخدام365 366 ### React367 2 unmodified lines370 371 </div>372 373 ```jsx383-function Todos({todos}) {374+function Todos({ todos }) {375 return (376 <ul>377 {todos.map(todo => (387- <li key={nanoid()}> /* لا تفعل هذا */378+ <li key={nanoid()}>379+ {' '}380+ /* لا تفعل هذا */381 {todo.text}382 </li>383 ))}384 </ul>7 unmodified lines392 393 </div>394 395 ```jsx403-const todoItems = todos.map((todo) =>404- <li key={todo.id}>405- {todo.text}406- </li>407-)396+const todoItems = todos.map(todo => <li key={todo.id}>{todo.text}</li>)397 ```398 399 <div dir="rtl">400 2 unmodified lines403 404 </div>405 406 ```jsx418-const todoItems = todos.map((text, index) =>419- <li key={index}> /* غير مُوصى به لكنه أفضل من nanoid().420- استخدمه فقط إذا لم تكن لديك مُعرِّفات ثابتة. */407+const todoItems = todos.map((text, index) => (408+ <li key={index}>409+ {' '}410+ /* غير مُوصى به لكنه أفضل من nanoid(). استخدمه فقط إذا لم تكن لديك مُعرِّفات411+ ثابتة. */412 {text}413 </li>423-)414+))415 ```416 417 <div dir="rtl">418 2 unmodified lines421 تمت إضافة هذا الـ hook في React 18.422 423 [`useId`]: https://react.dev/reference/react/useId424 434-425 ### React Native426 427 لا يحتوي React Native على مُولِّد أرقام عشوائية مدمج. يعمل البوليفِل التالي428 مع React Native العادي و Expo بدءًا من الإصدار `39.x`.103 unmodified lines532 على نفس مُولِّد المُعرِّفات على جانبَي العميل والخادم.533 534 </div>535 546-* [C](https://github.com/lukateras/nanoid.h)547-* [C#](https://github.com/codeyu/nanoid-net)548-* [C++](https://github.com/mcmikecreations/nanoid_cpp)549-* [Clojure and ClojureScript](https://github.com/zelark/nano-id)550-* [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)551-* [Crystal](https://github.com/mamantoha/nanoid.cr)552-* [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)553-* [Elixir](https://github.com/railsmechanic/nanoid)554-* [Gleam](https://github.com/0xca551e/glanoid)555-* [Go](https://github.com/matoous/go-nanoid)556-* [Haskell](https://github.com/MichelBoucey/NanoID)557-* [Haxe](https://github.com/flashultra/uuid)558-* [Janet](https://sr.ht/~statianzo/janet-nanoid/)559-* [Java](https://github.com/wosherco/jnanoid-enhanced)560-* [Kotlin](https://github.com/viascom/nanoid-kotlin)561-* [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)562-* [Nim](https://github.com/icyphox/nanoid.nim)563-* [OCaml](https://github.com/routineco/ocaml-nanoid)564-* [Perl](https://github.com/tkzwtks/Nanoid-perl)565-* [PHP](https://github.com/hidehalo/nanoid-php)566-* Python [native](https://github.com/puyuan/py-nanoid) implementation536+- [C](https://github.com/lukateras/nanoid.h)537+- [C#](https://github.com/codeyu/nanoid-net)538+- [C++](https://github.com/mcmikecreations/nanoid_cpp)539+- [Clojure and ClojureScript](https://github.com/zelark/nano-id)540+- [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)541+- [Crystal](https://github.com/mamantoha/nanoid.cr)542+- [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)543+- [Elixir](https://github.com/railsmechanic/nanoid)544+- [Gleam](https://github.com/0xca551e/glanoid)545+- [Go](https://github.com/matoous/go-nanoid)546+- [Haskell](https://github.com/MichelBoucey/NanoID)547+- [Haxe](https://github.com/flashultra/uuid)548+- [Janet](https://sr.ht/~statianzo/janet-nanoid/)549+- [Java](https://github.com/wosherco/jnanoid-enhanced)550+- [Kotlin](https://github.com/viascom/nanoid-kotlin)551+- [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)552+- [Nim](https://github.com/icyphox/nanoid.nim)553+- [OCaml](https://github.com/routineco/ocaml-nanoid)554+- [Perl](https://github.com/tkzwtks/Nanoid-perl)555+- [PHP](https://github.com/hidehalo/nanoid-php)556+- Python [native](https://github.com/puyuan/py-nanoid) implementation557 with [dictionaries](https://pypi.org/project/nanoid-dictionary)558 and [fast](https://github.com/oliverlambson/fastnanoid) implementation (written in Rust)569-* Postgres [Extension](https://github.com/spa5k/uids-postgres)559+- Postgres [Extension](https://github.com/spa5k/uids-postgres)560 and [Native Function](https://github.com/viascom/nanoid-postgres)571-* [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)572-* [Ruby](https://github.com/radeno/nanoid.rb)573-* [Rust](https://github.com/nikolay-govorov/nanoid)574-* [Swift](https://github.com/ShivaHuang/swift-nanoid)575-* [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)576-* [V](https://github.com/invipal/nanoid)577-* [Zig](https://github.com/SasLuca/zig-nanoid)561+- [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)562+- [Ruby](https://github.com/radeno/nanoid.rb)563+- [Rust](https://github.com/nikolay-govorov/nanoid)564+- [Swift](https://github.com/ShivaHuang/swift-nanoid)565+- [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)566+- [V](https://github.com/invipal/nanoid)567+- [Zig](https://github.com/SasLuca/zig-nanoid)568 569 <div dir="rtl">570 571 للبيئات الأخرى، يتوفر [سطر الأوامر] لتوليد المُعرِّفات من الطرفية.572 573 [سطر الأوامر]: #سطر-الأوامر-cli574 585-575 ## الأدوات576 588-* [حاسبة حجم المُعرِّف] تعرض احتمالية التكرار عند تعديل577+- [حاسبة حجم المُعرِّف] تعرض احتمالية التكرار عند تعديل578 أبجدية المُعرِّف أو حجمه.590-* [`nanoid-dictionary`] تحتوي على أبجديات شائعة لاستخدامها مع [`customAlphabet`].591-* [`nanoid-good`] للتأكد من أن المُعرِّف لا يحتوي على كلمات غير لائقة.579+- [`nanoid-dictionary`] تحتوي على أبجديات شائعة لاستخدامها مع [`customAlphabet`].580+- [`nanoid-good`] للتأكد من أن المُعرِّف لا يحتوي على كلمات غير لائقة.581 582 [`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary594-[حاسبة حجم المُعرِّف]: https://zelark.github.io/nano-id-cc/595-[`customAlphabet`]: #أبجدية-أو-حجم-مخصّص596-[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good583+[حاسبة حجم المُعرِّف]: https://zelark.github.io/nano-id-cc/584+[`customAlphabet`]: #أبجدية-أو-حجم-مخصّص585+[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good586 587 </div>modified:README.id-ID.md-13 removed
26 unmodified lines27 <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.28 29 ---30 31-31 ## Table of Contents32 33 - [Table of Contents](#table-of-contents)34 - [Perbandingan dengan UUID](#perbandingan-dengan-uuid)13 unmodified lines48 - [TypeScript](#typescript)49 - [Bahasa Pemrograman Lainnya](#bahasa-pemrograman-lainnya)50 - [Alat](#alat)51 53-52 ## Perbandingan dengan UUID53 54 Nano ID dapat dibandingkan dengan UUID v4 (yang berbasis acak / _randomly generated_). Nano ID dan UUID v4 memiliki jumlah bita yang mirip pada ID yang dihasilkan (126 bita pada NanoID dan 122 bita pada UUID), karenanya ia memiliki probabilitas _collision_ (konflik / tabrakan) yang hampir serupa:55 3 unmodified lines59 60 1. Nano ID menggunakan alfabet yang lebih lebar, karenanya jumlah bita acak dapat 'dikemas' dalam 21 simbol, bukan 36 simbol.61 2. Kode sumber Nano ID **empat kali lebih kecil** ketimbang `uuid/v4`: 118 bytes dibanding 423 bytes.62 65-63 ## Benchmark64 65 ```rust66 $ node ./test/benchmark.js16 unmodified lines83 ```84 85 Konfigurasi pengujian: Framework 13 7840U, Fedora 39, Node.js 21.6.86 90-87 ## Keamanan88 89 _Lihat artikel yang informatif tentang teori angka acak: [Nilai acak yang aman dalam Node.js (English)](https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba)_.90 7 unmodified lines98 - **Terdokumentasi secara baik.** Seluruh algoritma Nano ID sudah terdokumentasi. Lihat komentar di [kode sumber](https://github.com/ai/nanoid/blob/main/index.js).99 100 - **Kerentanan.** Untuk melaporkan sebuah _security vulnerability_ atau kerentanan, mohon menggunakan [Tidelift Security Contact](https://tidelift.com/security). Tidelift akan mengkoordinasikan pembetulan dan penyingkapan dari kerentanan tersebut.101 106-102 ## Instalasi103 104 ```bash105 npm install nanoid11 unmodified lines117 ```js118 import { nanoid } from 'https://cdn.jsdelivr.net/npm/nanoid/nanoid.js'119 ```120 126-121 ## API122 123 Nano ID memiliki dua API: normal dan _non-secure_.124 125 Bawaannya, Nano ID menggunakan simbol yang _URL-friendly_ (`A-Za-z0-9_-`) dan mengembalikan ID dengan 21 karakter (untuk memiliki probabilitas collision / tabrakan yang mirip dengan UUID v4).126 133-127 ### Blocking128 129 Penggunaan Nano ID yang aman dan yang paling mudah.130 13 unmodified lines144 Jangan lupa memeriksa tingkat keamanan dari ukuran ID dalam situs [ID collision probability calculator](https://zelark.github.io/nano-id-cc/).145 146 Dapat digunakan pula [custom alphabet](#custom-alphabet-or-size) atau [random generator](#custom-random-bytes-generator) yang lain.147 155-148 ### Non-Secure149 150 Konfigurasi bawaan Nano ID menggunakan random bytes generator yang berasal dari perangkat keras untuk keamanan dan probabilitas collision yang rendah. Apabila tidak terlalu memikirkan soal keamanan, dapat pula menggunakan non-secure generator yang lebih cepat.151 1 unmodified line153 import { nanoid } from 'nanoid/non-secure'154 const id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqLJ"155 ```156 165-157 ### Alfabet dan Ukuran (Custom)158 159 `customAlphabet` digunakan untuk membuat Nano ID dengan alfabet dan ukuran ID yang sesuai dengan kebutuhan (dapat dikustomisasi).160 14 unmodified lines175 const nanoid = customAlphabet('1234567890abcdef', 10)176 user.id = nanoid()177 ```178 188-179 ### Generasi Random Bytes (Custom)180 181 `customRandom` digunakan untuk membuat Nano ID yang mengganti alfabet dan algoritma _random bytes generator_ yang telah diimplementasikan pada versi bawaan (dalam artian menggunakan algoritma sendiri untuk mendapatkan random bytes).182 20 unmodified lines203 ```204 205 API asinkronus dan non-secure tidak tersedia untuk fungsi `customRandom`.206 217-207 ## Penggunaan208 209 ### React210 52 unmodified lines263 …264 })265 ```266 278-267 ### CLI268 269 Nano ID dapat didapatkan dengan cara menggunakan `npx nanoid` pada Terminal. Hanya diperlukan Node.js untuk ini, dan tidak perlu mengunduh dan menginstall Nano ID dalam sistem.270 65 unmodified lines336 - [Zig](https://github.com/SasLuca/zig-nanoid)337 338 Untuk environment lainnya, [CLI](#cli) tersedia untuk melakukan generasi ID dari command line / Terminal.339 352-340 ## Alat341 342 - [ID Size Calculator](https://zelark.github.io/nano-id-cc/) menunjukkan probabilitas collision ketika melakukan konfigurasi alfabet dan ukuran.343 - [`nanoid-dictionary`](https://github.com/CyberAP/nanoid-dictionary) untuk menggunakan alfabet popular dalam fungsi [`customAlphabet`](#custom-alphabet-or-size)1 unmodified linemodified:README.ja.md+64 added-79 removed
8 unmodified lines9 10 > 「意味不明なレベルの完璧主義、11 > これは尊敬せざるを得ない。」12 13-* **小さい。** 118バイト(圧縮・brotli圧縮後)。依存関係なし。13+- **小さい。** 118バイト(圧縮・brotli圧縮後)。依存関係なし。14 [Size Limit]がサイズを管理。15-* **安全。** ハードウェア乱数生成器を使用。クラスタでも利用可能。16-* **短いID。** UUIDより大きなアルファベット(A-Za-z0-9_-)を使用。15+- **安全。** ハードウェア乱数生成器を使用。クラスタでも利用可能。16+- **短いID。** UUIDより大きなアルファベット(A-Za-z0-9\_-)を使用。17 そのためID長は36から21文字に短縮されています。18-* **移植性。** Nano IDは[20以上のプログラミング言語](./README.md#other-programming-languages)に移植されています。18+- **移植性。** Nano IDは[20以上のプログラミング言語](./README.md#other-programming-languages)に移植されています。19 20 ```js21 import { nanoid } from 'nanoid'22 model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"23 ```24 25 ---26 27-<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.27+<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.28 29 ---30 31 [online tool]: https://gitpod.io/#https://github.com/ai/nanoid/32-[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/33-[Size Limit]: https://github.com/ai/size-limit32+[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/33+[Size Limit]: https://github.com/ai/size-limit34 35-35 ## 目次36 37 - [目次](#目次)38 - [UUIDとの比較](#uuidとの比較)17 unmodified lines56 - [TypeScript](#typescript)57 - [その他のプログラミング言語](#その他のプログラミング言語)58 - [ツール](#ツール)59 61-60 ## UUIDとの比較61 62 Nano IDはUUID v4(ランダムベース)と十分に比較可能です。63 ID内のランダムビット数は同様です(Nano IDで126ビット、UUIDで122ビット)、8 unmodified lines72 36文字ではなく21文字に詰め込まれています。73 2. Nano IDのコードはuuid/v4パッケージより**4倍小さい**です:74 423バイトではなく118バイトです。75 78-76 ## ベンチマーク77 78 ```rust79 $ node ./test/benchmark.js16 unmodified lines96 ```97 98 テスト構成:Framework 13 7840U, Fedora 39, Node.js 21.6.99 103-100 ## セキュリティ101 106-*乱数生成器の理論に関する良い記事を参照してください:107-[Secure random values (in Node.js)]*102+_乱数生成器の理論に関する良い記事を参照してください:103+[Secure random values (in Node.js)]_104 109-* **予測不可能性。** 安全でないMath.random()を使う代わりに、Nano IDは105+- **予測不可能性。** 安全でないMath.random()を使う代わりに、Nano IDは106 Node.jsではcryptoモジュールを、ブラウザではWeb Crypto APIを使用します。107 これらのモジュールは予測不可能なハードウェア乱数生成器を使用します。112-* **均一性。** random % alphabetはID生成器をコーディングする際によくある間違いです。108+- **均一性。** random % alphabetはID生成器をコーディングする際によくある間違いです。109 分布は均一ではなく、一部の記号が他のものより出現確率が低くなります。110 そのため、総当たり攻撃の際に試行回数が減少します。Nano IDは[より良いアルゴリズム]を111 使用し、均一性についてテストされています。112 113 <img src="img/distribution.png" alt="Nano ID uniformity"114 width="340" height="135">115 120-* **十分に文書化されている:** Nano IDのすべてのハックは文書化されています。116+- **十分に文書化されている:** Nano IDのすべてのハックは文書化されています。117 [ソース]のコメントを参照してください。122-* **脆弱性:** セキュリティの脆弱性を報告するには、118+- **脆弱性:** セキュリティの脆弱性を報告するには、119 [Tideliftセキュリティ連絡先](https://tidelift.com/security)を使用してください。120 Tideliftが修正と開示を調整します。121 122 [Secure random values (in Node.js)]: https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba127-[より良いアルゴリズム]: https://github.com/ai/nanoid/blob/main/index.js128-[ソース]: https://github.com/ai/nanoid/blob/main/index.js123+[より良いアルゴリズム]: https://github.com/ai/nanoid/blob/main/index.js124+[ソース]: https://github.com/ai/nanoid/blob/main/index.js125 130-126 ## インストール127 128 ### ESM129 43 unmodified lines173 174 Denoでは、`deno add jsr:@sitnik/nanoid`でインストールするか、175 `jsr:@sitnik/nanoid`からインポートします。176 182-177 ### CDN178 179 クイックハックの場合、CDNからNano IDを読み込むことができます。ただし、読み込みパフォーマンスが低いため、本番環境での使用はお勧めしません。180 4 unmodified lines185 ## API186 187 Nano IDには2つのAPI:通常と非セキュアがあります。188 195-デフォルトでは、Nano IDはURL友好的な記号(A-Za-z0-9_-)を使用し、189+デフォルトでは、Nano IDはURL友好的な記号(A-Za-z0-9\_-)を使用し、190 21文字のID(UUID v4と同様の衝突確率を持つ)を返します。191 198-192 ### ブロッキング193 194 Nano IDを使用する安全で最も簡単な方法です。195 17 unmodified lines213 [ランダム生成器](#カスタムランダムバイト生成器)も使用できます。214 215 [ID衝突確率]: https://zelark.github.io/nano-id-cc/216 224-217 ### 非セキュア218 219 デフォルトでは、Nano IDはセキュリティと低衝突確率のためにハードウェアランダムバイト生成を使用します。セキュリティにそれほど関心がない場合は、ハードウェア乱数生成器がない環境でも使用できます。220 1 unmodified line222 import { nanoid } from 'nanoid/non-secure'223 const id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqLJ"224 ```225 234-226 ### カスタムアルファベットまたはサイズ227 228 customAlphabetは、独自のアルファベットとIDサイズでnanoidを作成できる関数を返します。229 23 unmodified lines253 model.id = nanoid(5) //=> "f01a2"254 ```255 256 [ID衝突確率]: https://zelark.github.io/nano-id-cc/266-[nanoid-dictionary]: https://github.com/CyberAP/nanoid-dictionary257+[nanoid-dictionary]: https://github.com/CyberAP/nanoid-dictionary258 268-259 ### カスタムランダムバイト生成器260 261 customRandomを使用すると、nanoidを作成し、アルファベットとデフォルトのランダムバイト生成器を置き換えることができます。262 3 unmodified lines266 import { customRandom } from 'nanoid'267 268 const rng = seedrandom(seed)269 const nanoid = customRandom('abcdef', 10, size => {280- return (new Uint8Array(size)).map(() => 256 * rng())270+ return new Uint8Array(size).map(() => 256 * rng())271 })272 273 nanoid() //=> "fbaefaadeb"274 ```8 unmodified lines283 ```284 285 なお、Nano IDのバージョン間でランダム生成器の呼び出しシーケンスが変更される場合があります。シードベースの生成器を使用している場合、同じ結果を保証するものではありません。286 297-287 ## 使用方法288 289 ### React290 291 Reactの`key` propにNano IDを使用する正しい方法はありません。なぜなら、keyはレンダー間で一貫性がある必要があるからです。292 293 ```jsx305-function Todos({todos}) {294+function Todos({ todos }) {295 return (296 <ul>297 {todos.map(todo => (309- <li key={nanoid()}> /* これはやめましょう */298+ <li key={nanoid()}>299+ {' '}300+ /* これはやめましょう */301 {todo.text}302 </li>303 ))}304 </ul>3 unmodified lines308 309 代わりに、リストアイテム内で安定したIDを使用するようにしましょう。310 311 ```jsx321-const todoItems = todos.map((todo) =>322- <li key={todo.id}>323- {todo.text}324- </li>325-)312+const todoItems = todos.map(todo => <li key={todo.id}>{todo.text}</li>)313 ```314 315 安定したIDがない場合は、`nanoid()`の代わりにインデックスを`key`として使用することをお勧めします:316 317 ```jsx331-const todoItems = todos.map((text, index) =>332- <li key={index}> /* まだ推奨されませんが、nanoid()よりは優先されます。333- アイテムに安定したIDがない場合のみ行ってください。 */318+const todoItems = todos.map((text, index) => (319+ <li key={index}>320+ {' '}321+ /* まだ推奨されませんが、nanoid()よりは優先されます。322+ アイテムに安定したIDがない場合のみ行ってください。 */323 {text}324 </li>336-)325+))326 ```327 328 ラベルと入力フィールドのように要素を関連付けるためだけにランダムなIDが必要な場合は、[`useId`]が推奨されます。329 このフックはReact 18で追加されました。330 331 [`useId`]: https://react.dev/reference/react/useId332 344-333 ### React Native334 335 React Nativeには組み込みのランダム生成器がありません。次のポリフィルは336 プレーンなReact NativeとExpo(`39.x`以降)で動作します。7 unmodified lines344 ```345 346 [`react-native-get-random-values`]: https://github.com/LinusU/react-native-get-random-values347 360-348 ### PouchDBとCouchDB349 350 PouchDBとCouchDBでは、IDはアンダースコア`_`で始めることができません。351 Nano IDはデフォルトでIDの先頭に`_`を使用する可能性があるため、7 unmodified lines359 …360 })361 ```362 376-363 ### CLI364 365 ターミナルで`npx nanoid`を呼び出すことで、一意のIDを取得できます。366 システムにNode.jsがあれば十分で、Nano IDをどこかにインストールする必要はありません。47 unmodified lines414 415 Nano IDは多くの言語に移植されています。これらのポートを使用して、416 クライアント側とサーバー側で同じID生成器を持つことができます。417 432-* [C](https://github.com/lukateras/nanoid.h)433-* [C#](https://github.com/codeyu/nanoid-net)434-* [C++](https://github.com/mcmikecreations/nanoid_cpp)435-* [Clojure and ClojureScript](https://github.com/zelark/nano-id)436-* [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)437-* [Crystal](https://github.com/mamantoha/nanoid.cr)438-* [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)439-* [Elixir](https://github.com/railsmechanic/nanoid)440-* [Gleam](https://github.com/0xca551e/glanoid)441-* [Go](https://github.com/matoous/go-nanoid)442-* [Haskell](https://github.com/MichelBoucey/NanoID)443-* [Haxe](https://github.com/flashultra/uuid)444-* [Janet](https://sr.ht/~statianzo/janet-nanoid/)445-* [Java](https://github.com/wosherco/jnanoid-enhanced)446-* [Kotlin](https://github.com/viascom/nanoid-kotlin)447-* [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)448-* [Nim](https://github.com/icyphox/nanoid.nim)449-* [OCaml](https://github.com/routineco/ocaml-nanoid)450-* [Perl](https://github.com/tkzwtks/Nanoid-perl)451-* [PHP](https://github.com/hidehalo/nanoid-php)452-* Python [ネイティブ](https://github.com/puyuan/py-nanoid)実装418+- [C](https://github.com/lukateras/nanoid.h)419+- [C#](https://github.com/codeyu/nanoid-net)420+- [C++](https://github.com/mcmikecreations/nanoid_cpp)421+- [Clojure and ClojureScript](https://github.com/zelark/nano-id)422+- [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)423+- [Crystal](https://github.com/mamantoha/nanoid.cr)424+- [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)425+- [Elixir](https://github.com/railsmechanic/nanoid)426+- [Gleam](https://github.com/0xca551e/glanoid)427+- [Go](https://github.com/matoous/go-nanoid)428+- [Haskell](https://github.com/MichelBoucey/NanoID)429+- [Haxe](https://github.com/flashultra/uuid)430+- [Janet](https://sr.ht/~statianzo/janet-nanoid/)431+- [Java](https://github.com/wosherco/jnanoid-enhanced)432+- [Kotlin](https://github.com/viascom/nanoid-kotlin)433+- [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)434+- [Nim](https://github.com/icyphox/nanoid.nim)435+- [OCaml](https://github.com/routineco/ocaml-nanoid)436+- [Perl](https://github.com/tkzwtks/Nanoid-perl)437+- [PHP](https://github.com/hidehalo/nanoid-php)438+- Python [ネイティブ](https://github.com/puyuan/py-nanoid)実装439 [辞書](https://pypi.org/project/nanoid-dictionary)付きと440 [高速](https://github.com/oliverlambson/fastnanoid)実装(Rustで書かれています)455-* Postgres [拡張機能](https://github.com/spa5k/uids-postgres)441+- Postgres [拡張機能](https://github.com/spa5k/uids-postgres)442 と[ネイティブ関数](https://github.com/viascom/nanoid-postgres)457-* [R](https://github.com/hrbrmstr/nanoid)(辞書付き)458-* [Ruby](https://github.com/radeno/nanoid.rb)459-* [Rust](https://github.com/nikolay-govorov/nanoid)460-* [Swift](https://github.com/ShivaHuang/swift-nanoid)461-* [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)462-* [V](https://github.com/invipal/nanoid)463-* [Zig](https://github.com/SasLuca/zig-nanoid)443+- [R](https://github.com/hrbrmstr/nanoid)(辞書付き)444+- [Ruby](https://github.com/radeno/nanoid.rb)445+- [Rust](https://github.com/nikolay-govorov/nanoid)446+- [Swift](https://github.com/ShivaHuang/swift-nanoid)447+- [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)448+- [V](https://github.com/invipal/nanoid)449+- [Zig](https://github.com/SasLuca/zig-nanoid)450 451 その他の環境では、コマンドラインからIDを生成するための[CLI]が利用可能です。452 453 [CLI]: #cli454 469-455 ## ツール456 472-* [IDサイズ計算機]は、IDのアルファベットやサイズを調整する際の衝突確率を表示します。473-* [`nanoid-dictionary`]は[`customAlphabet`]で使用する一般的なアルファベットを提供します。474-* [`nanoid-good`]はIDに不適切な単語が含まれていないことを確認します。457+- [IDサイズ計算機]は、IDのアルファベットやサイズを調整する際の衝突確率を表示します。458+- [`nanoid-dictionary`]は[`customAlphabet`]で使用する一般的なアルファベットを提供します。459+- [`nanoid-good`]はIDに不適切な単語が含まれていないことを確認します。460 461 [`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary477-[IDサイズ計算機]: https://zelark.github.io/nano-id-cc/478-[`customAlphabet`]: #カスタムアルファベットまたはサイズ479-[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good462+[IDサイズ計算機]: https://zelark.github.io/nano-id-cc/463+[`customAlphabet`]: #カスタムアルファベットまたはサイズ464+[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-goodmodified:README.ko.md+61 added-76 removed
8 unmodified lines9 10 > “대단한 레벨의 무의미한 완벽주의,11 > 경의를 표하지 않을 수 없습니다”12 13-* **가볍습니다.** 118 bytes (minified 및 brotli 적용 후). 다른 의존성이 없습니다.13+- **가볍습니다.** 118 bytes (minified 및 brotli 적용 후). 다른 의존성이 없습니다.14 [Size Limit] 의 기능으로 컨트롤합니다.15-* **안전합니다.** 하드웨어의 랜덤 생성기를 사용합니다. 클러스터에서 사용할 수 있습니다.16-* **짧은 ID를 생성합니다.** UUID와는 다르게 대소문자를 모두 사용하여 키를 생성하므로, 36 byte를 차지하는 UUID와 다르게 21 byte만으로도 고유 아이디를 생성할 수 있습니다.15+- **안전합니다.** 하드웨어의 랜덤 생성기를 사용합니다. 클러스터에서 사용할 수 있습니다.16+- **짧은 ID를 생성합니다.** UUID와는 다르게 대소문자를 모두 사용하여 키를 생성하므로, 36 byte를 차지하는 UUID와 다르게 21 byte만으로도 고유 아이디를 생성할 수 있습니다.17 So ID size was reduced from 36 to 21 symbols.18-* **이식이 쉽습니다.** Nano ID 는 20개 이상의 언어로 포팅되었습니다 [다른 언어들](#다른-언어들).18+- **이식이 쉽습니다.** Nano ID 는 20개 이상의 언어로 포팅되었습니다 [다른 언어들](#다른-언어들).19 20 ```js21 import { nanoid } from 'nanoid'22 model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"5 unmodified lines28 29 ---30 31 [online tool]: https://gitpod.io/#https://github.com/ai/nanoid/32-[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/33-[Size Limit]: https://github.com/ai/size-limit32+[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/33+[Size Limit]: https://github.com/ai/size-limit34 35-35 ## 목차36 37 - [목차](#목차)38 - [UUID와 비교](#uuid와-비교)17 unmodified lines56 - [TypeScript](#typescript)57 - [다른 언어들](#다른-언어들)58 - [도구](#도구)59 61-60 ## UUID와 비교61 62 Nano ID 는 (랜덤 기반의) UUID v4와 비교할 수 있습니다.63 아이디로 생성되는 랜덤 비트의 수가 유사하여7 unmodified lines71 1. Nano ID는 대문자를 사용합니다. 그래서 유사한 개수의 랜덤 값을 36개가 아닌 21개의 문자로 나타낼 수 있습니다.72 2. Nano ID 코드는 `uuid/v4` 패키지보다 **4분의 1 사이즈**입니다:73 UUIDv4는 423 bytes, Nano ID는 118 bytes 입니다.74 77-75 ## 벤치마크76 77 ```rust78 $ node ./test/benchmark.js16 unmodified lines95 ```96 97 테스트 환경: 프레임워크 13 7840U, 페도라 39, Node.js 21.6.98 102-99 ## 보안100 105-*랜덤 생성기에 대한 설명은 다음 기사를 참고하세요:106-[Secure random values (in Node.js)]*101+_랜덤 생성기에 대한 설명은 다음 기사를 참고하세요:102+[Secure random values (in Node.js)]_103 108-* **예측불가성.** 안전하지 않은 `Math.random()`를 사용하는 대신, Nano ID는104+- **예측불가성.** 안전하지 않은 `Math.random()`를 사용하는 대신, Nano ID는105 Node.js에서 제공하는 `crypto` 모듈과 브라우저의 Web Crypto API를 사용합니다.106 이 모듈들은 예측이 불가능한 하드웨어 레벨의 랜덤 생성기입니다.111-* **균일성.** `random % alphabet` 는 랜덤 아이디 생성기를 만들때 흔히들 하는 실수입니다.107+- **균일성.** `random % alphabet` 는 랜덤 아이디 생성기를 만들때 흔히들 하는 실수입니다.108 이 경우 분포(수학)가 일정하지 않게 되며, 일부 기호들은 다른 기호들보다 사용될 확률이 낮아집니다.109 이로 인해 브루트포스를 사용한 시도의 횟수를 줄일 수 있는 결과를 가져옵니다.110 Nano ID는 [이보다 더 좋은 알고리즘]을 사용하며, 균일성 테스트를 수행하였습니다.111 112 <img src="img/distribution.png" alt="Nano ID uniformity"113 width="340" height="135">114 119-* **문서화:** Nano ID의 모든것이 코드에 문서화되어있습니다. [소스 코드]에서 코멘트를 확인하세요.120-* **취약점:** 보안 취약점에 대한 리포트는 아래 링크를 사용해주세요.115+- **문서화:** Nano ID의 모든것이 코드에 문서화되어있습니다. [소스 코드]에서 코멘트를 확인하세요.116+- **취약점:** 보안 취약점에 대한 리포트는 아래 링크를 사용해주세요.117 [Tidelift security contact](https://tidelift.com/security).118 Tidelift에서 취약점에 대한 수정 및 알림등을 도와줄 수 있습니다.119 120 [Secure random values (in Node.js)]: https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba125-[이보다 더 좋은 알고리즘]: https://github.com/ai/nanoid/blob/main/index.js126-[소스 코드]: https://github.com/ai/nanoid/blob/main/index.js121+[이보다 더 좋은 알고리즘]: https://github.com/ai/nanoid/blob/main/index.js122+[소스 코드]: https://github.com/ai/nanoid/blob/main/index.js123 128-124 ## 설치125 126 ### ESM127 44 unmodified lines172 173 Deno 사용시에는 `deno add jsr:@sitnik/nanoid` 명령어로 설치하고174 `jsr:@sitnik/nanoid`로 import 합니다.175 181-176 ### CDN177 178 빠른 적용을 위해 CDN에서 Nano ID를 가져올 수 있습니다.179 하지만 로딩 성능이 늦어지므로 프로덕션에서는 사용하는 것을 추천하지 않습니다.8 unmodified lines188 189 기본적으로 Nano ID는 URL에 친화적인 기호들을 사용하여 21자리의 랜덤한 문자열을 생성합니다.190 (이들은 UUID v4와 유사한 중복생성 확률을 가집니다)191 198-192 ### Blocking193 194 Nano ID를 사용하는 가장 안전하고 쉬운 방법입니다.195 17 unmodified lines213 [사용자가 만든 랜덤 생성기](#사용자-지정-랜덤-바이트-생성기) 를 사용할 수도 있습니다.214 215 [아이디 중복확률]: https://zelark.github.io/nano-id-cc/216 224-217 ### Non-Secure218 219 기본적으로 Nano ID는 보안과 낮은 충돌 확률을 위해 하드웨어 랜덤 바이트 생성기를 사용합니다.220 만약 보안이 중요하지 않다면 하드웨어 랜덤 생성기를 사용하지 않도록 설정할 수 있습니다.2 unmodified lines223 import { nanoid } from 'nanoid/non-secure'224 const id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqLJ"225 ```226 235-227 ### 사용자 커스텀 문자열228 229 `customAlphabet` 함수를 사용하면 지정된 문자열 내에서 지정된 개수로 이루어진230 랜덤 아이디를 생성할 수 있는 `nanoid` 함수를 만들 수 있습니다24 unmodified lines255 model.id = nanoid(5) //=> "f01a2"256 ```257 258 [아이디 충돌 확률]: https://zelark.github.io/nano-id-cc/268-[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary259+[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary260 270-261 ### 사용자 지정 랜덤 바이트 생성기262 263 `customRandom` 함수를 사용하면 `nanoid`에서 사용할 문자열과 알고리즘을 지정할 수 있습니다.264 3 unmodified lines268 import { customRandom } from 'nanoid'269 270 const rng = seedrandom(seed)271 const nanoid = customRandom('abcdef', 10, size => {282- return (new Uint8Array(size)).map(() => 256 * rng())272+ return new Uint8Array(size).map(() => 256 * rng())273 })274 275 nanoid() //=> "fbaefaadeb"276 ```10 unmodified lines287 288 참고로, Nano ID 버전이 변경됨에 따라 랜덤 생성기의 호출 시퀀스가 변경될 수 있습니다.289 시드기반 생성기를 사용하는 경우 동일한 결과가 나오는 것을 보장할 수 없습니다.290 301-291 ## 사용법292 293 ### React294 295 React에서 `key` props에 Nano ID를 사용하는 것은 좋지 않습니다.296 이 값은 렌더링 될 때마다 동일한 값을 가지고 있어야 합니다.297 298 ```jsx310-function Todos({todos}) {299+function Todos({ todos }) {300 return (301 <ul>302 {todos.map(todo => (314- <li key={nanoid()}> /* 절대 하지 마세요 */303+ <li key={nanoid()}>304+ {' '}305+ /* 절대 하지 마세요 */306 {todo.text}307 </li>308 ))}309 </ul>3 unmodified lines313 314 랜덤값보다 리스트 내에서 가져올 수 있는 값을 사용하여 안정된 값을 키 값으로 사용하는 것이 좋습니다.315 316 ```jsx326-const todoItems = todos.map((todo) =>327- <li key={todo.id}>328- {todo.text}329- </li>330-)317+const todoItems = todos.map(todo => <li key={todo.id}>{todo.text}</li>)318 ```319 320 `key` 값으로 사용할 적절한 값이 없는 경우에도 `nanoid()`를 사용하기 보다는 인덱스 값을 사용하세요:321 322 ```jsx336-const todoItems = todos.map((text, index) =>337- <li key={index}> /* 추천되는 방식은 아니지만 nanoid()를 쓰는것 보단 낫습니다 */323+const todoItems = todos.map((text, index) => (324+ <li key={index}>325+ {' '}326+ /* 추천되는 방식은 아니지만 nanoid()를 쓰는것 보단 낫습니다 */327 {text}328 </li>340-)329+))330 ```331 332 랜덤한 아이디를 생성하여 HTML 요소간의 연결 (label과 input 등)에 사용하는 경우에는333 React 18에서 추가된 [`useId`] 를 추천합니다.334 335 [`useId`]: https://react.dev/reference/react/useId336 348-337 ### React Native338 339 React Native에는 내장된 랜덤 생성기가 존재하지 않습니다.340 아래의 폴리필을 사용하면 순수 React Native와 Expo(`39`버전 이상) 환경에서8 unmodified lines349 ```350 351 [`react-native-get-random-values`]: https://github.com/LinusU/react-native-get-random-values352 365-353 ### PouchDB 및 CouchDB354 355 PouchDB와 CouchDB에서는 ID 값을 `_`로 시작할 수 없습니다.356 Nano ID는 기본적으로 `_`를 맨 앞에 붙일 수 있기 때문에,7 unmodified lines364 …365 })366 ```367 381-368 ### CLI369 370 터미널에서 `npx nanoid` 명령어를 입력하면 고유 ID를 생성할 수 있습니다.371 Node.js가 시스템에 설치되어있어야 하며, Nano ID는 미리 설치되어있지 않아도 됩니다.46 unmodified lines418 ### 다른 언어들419 420 Nano ID는 다양한 언어로 포팅되었습니다. 클라이언트/서버에 관계없이 아래의 다양한 포팅된 버전들을 사용할 수 있습니다.421 436-* [C](https://github.com/lukateras/nanoid.h)437-* [C#](https://github.com/codeyu/nanoid-net)438-* [C++](https://github.com/mcmikecreations/nanoid_cpp)439-* [Clojure and ClojureScript](https://github.com/zelark/nano-id)440-* [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)441-* [Crystal](https://github.com/mamantoha/nanoid.cr)442-* [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)443-* [Elixir](https://github.com/railsmechanic/nanoid)444-* [Gleam](https://github.com/0xca551e/glanoid)445-* [Go](https://github.com/matoous/go-nanoid)446-* [Haskell](https://github.com/MichelBoucey/NanoID)447-* [Haxe](https://github.com/flashultra/uuid)448-* [Janet](https://sr.ht/~statianzo/janet-nanoid/)449-* [Java](https://github.com/wosherco/jnanoid-enhanced)450-* [Kotlin](https://github.com/viascom/nanoid-kotlin)451-* [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)452-* [Nim](https://github.com/icyphox/nanoid.nim)453-* [OCaml](https://github.com/routineco/ocaml-nanoid)454-* [Perl](https://github.com/tkzwtks/Nanoid-perl)455-* [PHP](https://github.com/hidehalo/nanoid-php)456-* Python [native](https://github.com/puyuan/py-nanoid) implementation422+- [C](https://github.com/lukateras/nanoid.h)423+- [C#](https://github.com/codeyu/nanoid-net)424+- [C++](https://github.com/mcmikecreations/nanoid_cpp)425+- [Clojure and ClojureScript](https://github.com/zelark/nano-id)426+- [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)427+- [Crystal](https://github.com/mamantoha/nanoid.cr)428+- [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)429+- [Elixir](https://github.com/railsmechanic/nanoid)430+- [Gleam](https://github.com/0xca551e/glanoid)431+- [Go](https://github.com/matoous/go-nanoid)432+- [Haskell](https://github.com/MichelBoucey/NanoID)433+- [Haxe](https://github.com/flashultra/uuid)434+- [Janet](https://sr.ht/~statianzo/janet-nanoid/)435+- [Java](https://github.com/wosherco/jnanoid-enhanced)436+- [Kotlin](https://github.com/viascom/nanoid-kotlin)437+- [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)438+- [Nim](https://github.com/icyphox/nanoid.nim)439+- [OCaml](https://github.com/routineco/ocaml-nanoid)440+- [Perl](https://github.com/tkzwtks/Nanoid-perl)441+- [PHP](https://github.com/hidehalo/nanoid-php)442+- Python [native](https://github.com/puyuan/py-nanoid) implementation443 with [dictionaries](https://pypi.org/project/nanoid-dictionary)444 and [fast](https://github.com/oliverlambson/fastnanoid) implementation (written in Rust)459-* Postgres [Extension](https://github.com/spa5k/uids-postgres)445+- Postgres [Extension](https://github.com/spa5k/uids-postgres)446 and [Native Function](https://github.com/viascom/nanoid-postgres)461-* [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)462-* [Ruby](https://github.com/radeno/nanoid.rb)463-* [Rust](https://github.com/nikolay-govorov/nanoid)464-* [Swift](https://github.com/ShivaHuang/swift-nanoid)465-* [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)466-* [V](https://github.com/invipal/nanoid)467-* [Zig](https://github.com/SasLuca/zig-nanoid)447+- [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)448+- [Ruby](https://github.com/radeno/nanoid.rb)449+- [Rust](https://github.com/nikolay-govorov/nanoid)450+- [Swift](https://github.com/ShivaHuang/swift-nanoid)451+- [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)452+- [V](https://github.com/invipal/nanoid)453+- [Zig](https://github.com/SasLuca/zig-nanoid)454 455 이 외의 환경에서는 [CLI]를 사용하여 터미널 환경에서 랜덤 아이디를 생성할 수 있습니다.456 457 [CLI]: #cli458 473-459 ## 도구460 476-* [ID 사이즈 계산기]는 문자열과 생성 사이즈를 변경한 경우 중복된 아이디가 생성될 수 있는 충돌 확률을 알려줍니다.477-* [`customAlphabet`]에서 사용할 수 있는 일반적인 문자열들을 [`nanoid-dictionary`]로 찾아볼 수 있습니다.478-* 생성된 ID에 이상한 단어가 들어가는 것을 방지하려면 [`nanoid-good`]를 사용할 수 있습니다.461+- [ID 사이즈 계산기]는 문자열과 생성 사이즈를 변경한 경우 중복된 아이디가 생성될 수 있는 충돌 확률을 알려줍니다.462+- [`customAlphabet`]에서 사용할 수 있는 일반적인 문자열들을 [`nanoid-dictionary`]로 찾아볼 수 있습니다.463+- 생성된 ID에 이상한 단어가 들어가는 것을 방지하려면 [`nanoid-good`]를 사용할 수 있습니다.464 465 [`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary481-[ID 사이즈 계산기]: https://zelark.github.io/nano-id-cc/482-[`customAlphabet`]: #custom-alphabet-or-size483-[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good466+[ID 사이즈 계산기]: https://zelark.github.io/nano-id-cc/467+[`customAlphabet`]: #custom-alphabet-or-size468+[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-goodmodified:README.md+62 added-77 removed
8 unmodified lines9 10 > “An amazing level of senseless perfectionism,11 > which is simply impossible not to respect.”12 13-* **Small.** 118 bytes (minified and brotlied). No dependencies.13+- **Small.** 118 bytes (minified and brotlied). No dependencies.14 [Size Limit] controls the size.15-* **Safe.** It uses hardware random generator. Can be used in clusters.16-* **Short IDs.** It uses a larger alphabet than UUID (`A-Za-z0-9_-`).15+- **Safe.** It uses hardware random generator. Can be used in clusters.16+- **Short IDs.** It uses a larger alphabet than UUID (`A-Za-z0-9_-`).17 So ID size was reduced from 36 to 21 symbols.18-* **Portable.** Nano ID was ported18+- **Portable.** Nano ID was ported19 to over [20 programming languages](./README.md#other-programming-languages).20 21 ```js22 import { nanoid } from 'nanoid'6 unmodified lines29 30 ---31 32 [online tool]: https://gitpod.io/#https://github.com/ai/nanoid/33-[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/34-[Size Limit]: https://github.com/ai/size-limit33+[with Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/34+[Size Limit]: https://github.com/ai/size-limit35 36-36 ## Table of Contents37 38 - [Table of Contents](#table-of-contents)39 - [Comparison with UUID](#comparison-with-uuid)17 unmodified lines57 - [TypeScript](#typescript)58 - [Other Programming Languages](#other-programming-languages)59 - [Tools](#tools)60 62-61 ## Comparison with UUID62 63 Nano ID is quite comparable to UUID v4 (random-based).64 It has a similar number of random bits in the ID8 unmodified lines73 are packed in just 21 symbols instead of 36.74 2. Nano ID code is **4 times smaller** than `uuid/v4` package:75 118 bytes instead of 423.76 79-77 ## Benchmark78 79 ```rust80 $ node ./test/benchmark.js16 unmodified lines97 ```98 99 Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.100 104-101 ## Security102 107-*See a good article about random generators theory:108-[Secure random values (in Node.js)]*103+_See a good article about random generators theory:104+[Secure random values (in Node.js)]_105 110-* **Unpredictability.** Instead of using the unsafe `Math.random()`, Nano ID106+- **Unpredictability.** Instead of using the unsafe `Math.random()`, Nano ID107 uses the `crypto` module in Node.js and the Web Crypto API in browsers.108 These modules use unpredictable hardware random generator.113-* **Uniformity.** `random % alphabet` is a popular mistake to make when coding109+- **Uniformity.** `random % alphabet` is a popular mistake to make when coding110 an ID generator. The distribution will not be even; there will be a lower111 chance for some symbols to appear compared to others. So, it will reduce112 the number of tries when brute-forcing. Nano ID uses a [better algorithm]113 and is tested for uniformity.114 115 <img src="img/distribution.png" alt="Nano ID uniformity"116 width="340" height="135">117 122-* **Well-documented:** all Nano ID hacks are documented. See comments118+- **Well-documented:** all Nano ID hacks are documented. See comments119 in [the source].124-* **Vulnerabilities:** to report a security vulnerability, please use120+- **Vulnerabilities:** to report a security vulnerability, please use121 the [Tidelift security contact](https://tidelift.com/security).122 Tidelift will coordinate the fix and disclosure.123 124 [Secure random values (in Node.js)]: https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba129-[better algorithm]: https://github.com/ai/nanoid/blob/main/index.js130-[the source]: https://github.com/ai/nanoid/blob/main/index.js125+[better algorithm]: https://github.com/ai/nanoid/blob/main/index.js126+[the source]: https://github.com/ai/nanoid/blob/main/index.js127 132-128 ## Install129 130 ### ESM131 45 unmodified lines177 178 For Deno install it by `deno add jsr:@sitnik/nanoid` or import179 from `jsr:@sitnik/nanoid`.180 186-181 ### CDN182 183 For quick hacks, you can load Nano ID from CDN. Though, it is not recommended184 to be used in production because of the lower loading performance.8 unmodified lines193 194 By default, Nano ID uses URL-friendly symbols (`A-Za-z0-9_-`) and returns an ID195 with 21 characters (to have a collision probability similar to UUID v4).196 203-197 ### Blocking198 199 The safe and easiest way to use Nano ID.200 19 unmodified lines220 or a [random generator](#custom-random-bytes-generator).221 222 [ID collision probability]: https://zelark.github.io/nano-id-cc/223 231-224 ### Non-Secure225 226 By default, Nano ID uses hardware random bytes generation for security227 and low collision probability. If you are not so concerned with security,3 unmodified lines231 import { nanoid } from 'nanoid/non-secure'232 const id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqLJ"233 ```234 243-235 ### Custom Alphabet or Size236 237 `customAlphabet` returns a function that allows you to create `nanoid`238 with your own alphabet and ID size.25 unmodified lines264 const nanoid = customAlphabet('1234567890abcdef', 10)265 model.id = nanoid(5) //=> "f01a2"266 ```267 277-[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary268+[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary269 279-270 ### Custom Random Bytes Generator271 272 `customRandom` allows you to create a `nanoid` and replace alphabet273 and the default random bytes generator.4 unmodified lines278 import { customRandom } from 'nanoid'279 280 const rng = seedrandom(seed)281 const nanoid = customRandom('abcdef', 10, size => {292- return (new Uint8Array(size)).map(() => 256 * rng())282+ return new Uint8Array(size).map(() => 256 * rng())283 })284 285 nanoid() //=> "fbaefaadeb"286 ```12 unmodified lines299 Note, that between Nano ID versions we may change random generator300 call sequence. If you are using seed-based generators, we do not guarantee301 the same result.302 313-303 ## Usage304 305 ### React306 307 There’s no correct way to use Nano ID for React `key` prop308 since it should be consistent among renders.309 310 ```jsx322-function Todos({todos}) {311+function Todos({ todos }) {312 return (313 <ul>314 {todos.map(todo => (326- <li key={nanoid()}> /* DON’T DO IT */315+ <li key={nanoid()}>316+ {' '}317+ /* DON’T DO IT */318 {todo.text}319 </li>320 ))}321 </ul>3 unmodified lines325 326 You should rather try to reach for stable ID inside your list item.327 328 ```jsx338-const todoItems = todos.map((todo) =>339- <li key={todo.id}>340- {todo.text}341- </li>342-)329+const todoItems = todos.map(todo => <li key={todo.id}>{todo.text}</li>)330 ```331 332 In case you don’t have stable IDs you'd rather use index as `key`333 instead of `nanoid()`:334 335 ```jsx349-const todoItems = todos.map((text, index) =>350- <li key={index}> /* Still not recommended but preferred over nanoid().351- Only do this if items have no stable IDs. */336+const todoItems = todos.map((text, index) => (337+ <li key={index}>338+ {' '}339+ /* Still not recommended but preferred over nanoid(). Only do this if items340+ have no stable IDs. */341 {text}342 </li>354-)343+))344 ```345 346 In case you just need random IDs to link elements like labels347 and input fields together, [`useId`] is recommended.348 That hook was added in React 18.349 350 [`useId`]: https://react.dev/reference/react/useId351 363-352 ### React Native353 354 React Native does not have built-in random generator. The following polyfill355 works for plain React Native and Expo starting with `39.x`.7 unmodified lines363 ```364 365 [`react-native-get-random-values`]: https://github.com/LinusU/react-native-get-random-values366 379-367 ### PouchDB and CouchDB368 369 In PouchDB and CouchDB, IDs can’t start with an underscore `_`.370 A prefix is required to prevent this issue, as Nano ID might use a `_`7 unmodified lines378 …379 })380 ```381 395-382 ### CLI383 384 You can get unique ID in terminal by calling `npx nanoid`. You need only385 Node.js in the system. You do not need Nano ID to be installed anywhere.47 unmodified lines433 434 Nano ID was ported to many languages. You can use these ports to have435 the same ID generator on the client and server side.436 451-* [C](https://github.com/lukateras/nanoid.h)452-* [C#](https://github.com/codeyu/nanoid-net)453-* [C++](https://github.com/mcmikecreations/nanoid_cpp)454-* [Clojure and ClojureScript](https://github.com/zelark/nano-id)455-* [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)456-* [Crystal](https://github.com/mamantoha/nanoid.cr)457-* [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)458-* [Elixir](https://github.com/railsmechanic/nanoid)459-* [Gleam](https://github.com/0xca551e/glanoid)460-* [Go](https://github.com/matoous/go-nanoid)461-* [Haskell](https://github.com/MichelBoucey/NanoID)462-* [Haxe](https://github.com/flashultra/uuid)463-* [Janet](https://sr.ht/~statianzo/janet-nanoid/)464-* [Java](https://github.com/wosherco/jnanoid-enhanced)465-* [Kotlin](https://github.com/viascom/nanoid-kotlin)466-* [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)467-* [Nim](https://github.com/icyphox/nanoid.nim)468-* [OCaml](https://github.com/routineco/ocaml-nanoid)469-* [Perl](https://github.com/tkzwtks/Nanoid-perl)470-* [PHP](https://github.com/hidehalo/nanoid-php)471-* Python [native](https://github.com/puyuan/py-nanoid) implementation437+- [C](https://github.com/lukateras/nanoid.h)438+- [C#](https://github.com/codeyu/nanoid-net)439+- [C++](https://github.com/mcmikecreations/nanoid_cpp)440+- [Clojure and ClojureScript](https://github.com/zelark/nano-id)441+- [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)442+- [Crystal](https://github.com/mamantoha/nanoid.cr)443+- [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)444+- [Elixir](https://github.com/railsmechanic/nanoid)445+- [Gleam](https://github.com/0xca551e/glanoid)446+- [Go](https://github.com/matoous/go-nanoid)447+- [Haskell](https://github.com/MichelBoucey/NanoID)448+- [Haxe](https://github.com/flashultra/uuid)449+- [Janet](https://sr.ht/~statianzo/janet-nanoid/)450+- [Java](https://github.com/wosherco/jnanoid-enhanced)451+- [Kotlin](https://github.com/viascom/nanoid-kotlin)452+- [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)453+- [Nim](https://github.com/icyphox/nanoid.nim)454+- [OCaml](https://github.com/routineco/ocaml-nanoid)455+- [Perl](https://github.com/tkzwtks/Nanoid-perl)456+- [PHP](https://github.com/hidehalo/nanoid-php)457+- Python [native](https://github.com/puyuan/py-nanoid) implementation458 with [dictionaries](https://pypi.org/project/nanoid-dictionary)459 and [fast](https://github.com/oliverlambson/fastnanoid) implementation (written in Rust)474-* Postgres [Extension](https://github.com/spa5k/uids-postgres)460+- Postgres [Extension](https://github.com/spa5k/uids-postgres)461 and [Native Function](https://github.com/viascom/nanoid-postgres)476-* [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)477-* [Ruby](https://github.com/radeno/nanoid.rb)478-* [Rust](https://github.com/nikolay-govorov/nanoid)479-* [Swift](https://github.com/ShivaHuang/swift-nanoid)480-* [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)481-* [V](https://github.com/invipal/nanoid)482-* [Zig](https://github.com/SasLuca/zig-nanoid)462+- [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)463+- [Ruby](https://github.com/radeno/nanoid.rb)464+- [Rust](https://github.com/nikolay-govorov/nanoid)465+- [Swift](https://github.com/ShivaHuang/swift-nanoid)466+- [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)467+- [V](https://github.com/invipal/nanoid)468+- [Zig](https://github.com/SasLuca/zig-nanoid)469 470 For other environments, [CLI] is available to generate IDs from a command line.471 472 [CLI]: #cli473 488-474 ## Tools475 491-* [ID size calculator] shows collision probability when adjusting476+- [ID size calculator] shows collision probability when adjusting477 the ID alphabet or size.493-* [`nanoid-dictionary`] with popular alphabets to use with [`customAlphabet`].494-* [`nanoid-good`] to be sure that your ID doesn’t contain any obscene words.478+- [`nanoid-dictionary`] with popular alphabets to use with [`customAlphabet`].479+- [`nanoid-good`] to be sure that your ID doesn’t contain any obscene words.480 481 [`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary497-[ID size calculator]: https://zelark.github.io/nano-id-cc/498-[`customAlphabet`]: #custom-alphabet-or-size499-[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good482+[ID size calculator]: https://zelark.github.io/nano-id-cc/483+[`customAlphabet`]: #custom-alphabet-or-size484+[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-goodmodified:README.ru.md+3 added-17 removed
35 unmodified lines36 <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Сделано в <b><a href="https://evilmartians.com/devtools?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Злых марсианах</a></b>, продуктовом консалтинге для <b>инструментов разработки</b>.37 38 ---39 40-40 ## Оглавление41 42 - [Оглавление](#оглавление)43 - [Сравнение с UUID](#сравнение-с-uuid)17 unmodified lines61 - [TypeScript](#typescript)62 - [Другие языки программирования](#другие-языки-программирования)63 - [Инструменты](#инструменты)64 66-65 ## Сравнение с UUID66 67 Nano ID похож на UUID v4 (случайный).68 У них сравнимое число битов случайности в ID (126 у Nano ID против 122 у UUID),9 unmodified lines78 битов случайности будут упакованы в более короткую строку79 (21 символ, против 36 у UUID).80 2. Код Nano ID **в 4 раз меньше**, чем у `uuid/v4` — 118 байт против 423.81 84-82 ## Сравнение производительности83 84 ```rust85 $ node ./test/benchmark.js16 unmodified lines102 ```103 104 Среда сравнения: Framework 13 7840U, Fedora 39, Node.js 21.6.105 109-106 ## Безопасность107 108 _См. также хорошую статью о теориях генераторов случайных чисел:109 [Secure random values (in Node.js)]_21 unmodified lines131 [secure random values (in node.js)]: https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba132 [более совершенный алгоритм]: https://github.com/ai/nanoid/blob/main/index.js133 [в исходниках]: https://github.com/ai/nanoid/blob/main/index.js134 139-135 ## Подключение136 137 ### ESM138 44 unmodified lines183 184 Для Deno установите через `deno add jsr:@sitnik/nanoid`185 или импортируйте `jsr:@sitnik/nanoid`.186 192-187 ### CDN188 189 Для быстрого прототипирования вы можете подключить Nano ID с CDN без установки.190 Не используйте этот способ на реальном сайте, так как он сильно бьёт2 unmodified lines193 ```js194 import { nanoid } from 'https://cdn.jsdelivr.net/npm/nanoid/nanoid.js'195 ```196 203-197 ## API198 199 Nano ID разделён на два модуля: стандартный и небезопасный.200 201 По умолчанию используются символы, безопасные для URL (`A-Za-z0-9_-`).202 Длина ID по умолчанию — 21 символ203 (чтобы вероятность коллизий была соизмеримой с UUID v4).204 212-205 ### Блокирующий206 207 Безопасный и простой в использовании способ использования Nano ID.208 13 unmodified lines222 223 При изменении размера, всегда проверяйте риски224 в нашем [калькуляторе коллизий](https://zelark.github.io/nano-id-cc/).225 234-226 ### Небезопасный227 228 По умолчанию, Nano ID использует аппаратный генератор случайных чисел для229 получения непредсказуемых ID и минимизации риска возникновения коллизий7 unmodified lines237 ```238 239 Но учтите, что предсказуемость ID может быть использована для атаки на систему.240 250-241 ### Смена алфавита или длины242 243 Функция `customAlphabet` позволяет создать свою функцию `nanoid`244 с нужным вам алфавитом и длиной ID.28 unmodified lines273 274 [на нашем калькуляторе]: https://zelark.github.io/nano-id-cc/275 [`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary276 287-277 ### Смена генератора случайных чисел278 279 Функция `customRandom` позволяет создать свою функцию `nanoid` со своими280 генераторами случайных чисел, алфавитом и длинной ID.22 unmodified lines303 const { customRandom, urlAlphabet } = require('nanoid')304 const nanoid = customRandom(urlAlphabet, 10, random)305 ```306 318-307 ## Руководство308 309 ### React310 4 unmodified lines315 function Todos({ todos }) {316 return (317 <ul>318 {todos.map(todo => (331- <li key={nanoid()}> /* НЕ ДЕЛАЙТЕ ТАК */319+ <li key={nanoid()}>320+ {' '}321+ /* НЕ ДЕЛАЙТЕ ТАК */322 {todo.text}323 </li>324 ))}325 </ul>5 unmodified lines331 который был добавлен в React 18.332 333 [`useId`]: https://react.dev/reference/react/useId334 345-335 ### React Native336 337 React Native не имеет встроенного аппаратного генератора случайных чисел.338 Полифил ниже работает в чистом React Native и в Expo начиная с версии 39.7 unmodified lines346 ```347 348 [`react-native-get-random-values`]: https://github.com/LinusU/react-native-get-random-values349 361-350 ### PouchDB и CouchDB351 352 В PouchDB и CouchDB, ID не могут начинаться с `_`. Добавьте к ID префикс,353 так как иногда Nano ID может сгенерировать ID начинающийся с `_`.6 unmodified lines360 …361 })362 ```363 376-364 ### Терминал365 366 Можно сгенерировать уникальный ID прямо из терминала, вызвав `npx nanoid`.367 Для этого в системе должна быть только Node.js. `npx` сама скачает Nano ID,82 unmodified lines450 Для остальных сред можно использовать Nano ID [для терминала].451 452 [для терминала]: #терминал453 467-454 ## Инструменты455 456 - [Калькулятор длины ID] поможет подобрать оптимальную длину ID,457 в зависимости от частоты выдачи ID и нужной надёжности системы.7 unmodified linesmodified:README.zh-CN.md+61 added-76 removed
7 unmodified lines8 一个小巧、安全、URL友好、唯一的 JavaScript 字符串ID生成器。9 10 > “一个惊人的无意义的完美主义水平,这简直让人无法不敬佩。”11 12-* **小巧.** 118字节 (经过压缩和Brotli处理)。没有依赖。[Size Limit] 控制大小。13-* **安全.** 它使用硬件随机生成器。可在集群中使用。14-* **紧凑.** 它使用比 UUID(`A-Za-z0-9_-`)更大的字母表。因此,ID 大小从36个符号减少到21个符号。15-* **可移植.** Nano ID 已被移植到 [20种编程语言](#其他编程语言)。12+- **小巧.** 118字节 (经过压缩和Brotli处理)。没有依赖。[Size Limit] 控制大小。13+- **安全.** 它使用硬件随机生成器。可在集群中使用。14+- **紧凑.** 它使用比 UUID(`A-Za-z0-9_-`)更大的字母表。因此,ID 大小从36个符号减少到21个符号。15+- **可移植.** Nano ID 已被移植到 [20种编程语言](#其他编程语言)。16 17 ```js18 import { nanoid } from 'nanoid'19 model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"1 unmodified line21 22 支持现代浏览器、IE [需使用 Babel]、Node.js 和 React Native。23 24 [在线工具]: https://gitpod.io/#https://github.com/ai/nanoid/25-[使用 Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/26-[Size Limit]: https://github.com/ai/size-limit25+[使用 Babel]: https://developer.epages.com/blog/coding/how-to-transpile-node-modules-with-babel-and-webpack-in-a-monorepo/26+[Size Limit]: https://github.com/ai/size-limit27 28 ---29 30 <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.20 unmodified lines51 - [TypeScript](#typescript)52 - [其他编程语言](#其他编程语言)53 - [工具](#工具)54 55-55 ## 与 UUID 的比较56 57 Nano ID 与 UUID v4 (基于随机数) 相当。58 它们在 ID 中有相似数量的随机位7 unmodified lines66 1. Nano ID 使用更大的字母表,所以类似数量的随机位67 被包装在21个符号中,而不是36个。68 2. Nano ID 代码比 `uuid/v4` 包少 **4倍**: 118字节而不是423字节.69 71-70 ## 基准值71 72 ```rust73 $ node ./test/benchmark.js16 unmodified lines90 ```91 92 测试配置: Framework 13 7840U, Fedora 39, Node.js 21.6.93 96-94 ## 安全性95 99-*请看一篇关于随机生成器理论的好文章:100-[安全的随机值 (在 Node.js 中)]*96+_请看一篇关于随机生成器理论的好文章:97+[安全的随机值 (在 Node.js 中)]_98 102-* **不可预测性.** 不使用不安全的 `Math.random()`, Nano ID99+- **不可预测性.** 不使用不安全的 `Math.random()`, Nano ID100 使用 Node.js 的 `crypto` 模块和浏览器的 Web Crypto API。101 这些模块使用不可预测的硬件随机生成器。105-* **统一性.** `random % alphabet` 是编写ID生成器时常犯的一个错误。102+- **统一性.** `random % alphabet` 是编写ID生成器时常犯的一个错误。103 这样做会导致分布不均匀; 一些符号出现的机会较其他符号低。因此,在暴力破解时,尝试的次数会减少。104 Nano ID 使用了一种 [更好的算法],并进行了一致性测试。105 106 <img src="img/distribution.png" alt="Nano ID uniformity"107 width="340" height="135">108 112-* **有据可查:** 所有的 Nano ID 的行为都有记录。109+- **有据可查:** 所有的 Nano ID 的行为都有记录。110 见 [源代码] 中的注释。114-* **漏洞:** 报告安全漏洞,请使用111+- **漏洞:** 报告安全漏洞,请使用112 [安全联系人 Tidelift](https://tidelift.com/security).113 Tidelift 将协调修复和披露。114 115 [安全的随机值 (在 Node.js 中)]: https://gist.github.com/joepie91/7105003c3b26e65efcea63f3db82dfba119-[更好的算法]: https://github.com/ai/nanoid/blob/main/index.js120-[源代码]: https://github.com/ai/nanoid/blob/main/index.js116+[更好的算法]: https://github.com/ai/nanoid/blob/main/index.js117+[源代码]: https://github.com/ai/nanoid/blob/main/index.js118 122-119 ## 安装120 121 ```bash122 npm install nanoid12 unmodified lines135 ```js136 import { nanoid } from 'https://cdn.jsdelivr.net/npm/nanoid/nanoid.js'137 ```138 143-139 ## API140 141 Nano ID 有2个 API:正常(阻塞),和不安全。142 143 默认情况下,Nano ID 使用 URL 友好的符号(`A-Za-z0-9_-`)并返回一个144 有21个字符(类似 UUID v4 的碰撞概率)的 ID。145 151-146 ### 阻塞147 148 使用 Nano ID 最安全、最简单的方法149 17 unmodified lines167 或者是 [自定义生成器](#自定义随机字节生成器).168 169 [ID 碰撞概率]: https://zelark.github.io/nano-id-cc/170 177-171 ### 不安全172 173 默认情况下,Nano ID 使用硬件随机字节生成以提供安全性和较低的碰撞概率。如果您对安全性不太担心,您可以在没有硬件随机生成器的环境中使用它174 1 unmodified line176 import { nanoid } from 'nanoid/non-secure'177 const id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqLJ"178 ```179 187-180 ### 自定义字母或大小181 182 `customAlphabet` 返回一个函数,允许您使用自定义字母表和ID大小创建 `nanoid`。183 23 unmodified lines207 model.id = nanoid(5) //=> "f01a2"208 ```209 210 [ID collision probability]: https://zelark.github.io/nano-id-cc/219-[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary211+[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary212 221-213 ### 自定义随机字节生成器214 215 `customRandom` 允许您创建一个 `nanoid` 并替换字母表216 和默认的随机字节生成器。4 unmodified lines221 import { customRandom } from 'nanoid'222 223 const rng = seedrandom(seed)224 const nanoid = customRandom('abcdef', 10, size => {234- return (new Uint8Array(size)).map(() => 256 * rng())225+ return new Uint8Array(size).map(() => 256 * rng())226 })227 228 nanoid() //=> "fbaefaadeb"229 ```9 unmodified lines239 ```240 241 请注意,在Nano ID的不同版本之间,我们可能会更改随机生成器的调用顺序。如果您正在使用基于种子的生成器,我们不能保证相同的结果。242 252-243 ## 用法244 245 ### React246 247 目前还没有将 nanoid 用于 React `key` prop 的正确方法248 因为它在不同的渲染中应该是一致的。249 250 ```jsx261-function Todos({todos}) {251+function Todos({ todos }) {252 return (253 <ul>254 {todos.map(todo => (265- <li key={nanoid()}> /* 不要这样做 */255+ <li key={nanoid()}>256+ {' '}257+ /* 不要这样做 */258 {todo.text}259 </li>260 ))}261 </ul>3 unmodified lines265 266 您应该尝试在列表项中找到稳定的 id。267 268 ```jsx277-const todoItems = todos.map((todo) =>278- <li key={todo.id}>279- {todo.text}280- </li>281-)269+const todoItems = todos.map(todo => <li key={todo.id}>{todo.text}</li>)270 ```271 272 如果您没有稳定的 ID,您最好使用索引作为 `键` 而不是 `nanoid()`:273 274 ```jsx287-const todoItems = todos.map((text, index) =>288- <li key={index}> /* 仍然不推荐,但优于 nanoid()。289- 仅当项目没有稳定ID时才执行此操作。 */275+const todoItems = todos.map((text, index) => (276+ <li key={index}>277+ {' '}278+ /* 仍然不推荐,但优于 nanoid()。 仅当项目没有稳定ID时才执行此操作。 */279 {text}280 </li>292-)281+))282 ```283 284 如果您只需要随机 ID 来将元素(如标签和输入字段)链接在一起,建议使用 [`useId`]。该钩子在 React 18 中添加。285 286 [`useId`]: https://react.dev/reference/react/useId287 299-288 ### React Native289 290 React Native 没有内置的随机生成器。以下polyfill适用于纯 React Native 和 Expo,从39.x版本开始生效。291 6 unmodified lines298 ```299 300 [`react-native-get-random-values`]: https://github.com/LinusU/react-native-get-random-values301 314-302 ### PouchDB and CouchDB303 304 在 PouchDB 和 CouchDB 中,ID 不能以下划线 `_` 开头。305 需要一个前缀来防止这个问题,因为 Nano ID 可能在默认情况下使用 `_` 作为 ID 的开头。7 unmodified lines313 …314 })315 ```316 330-317 ### CLI318 319 你可以通过调用 `npx nanoid` 在终端获得唯一的 ID。你只需要320 在系统中安装了 Node.js。你不需要把 Nano ID 安装在任何地方。44 unmodified lines365 ### 其他编程语言366 367 Nano ID 已被移植到许多语言。 你可以使用下面这些移植,获取在客户端和服务器端相同的ID生成器。368 383-* [C#](https://github.com/codeyu/nanoid-net)384-* [C++](https://github.com/mcmikecreations/nanoid_cpp)385-* [Clojure and ClojureScript](https://github.com/zelark/nano-id)386-* [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)387-* [Crystal](https://github.com/mamantoha/nanoid.cr)388-* [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)389-* [Deno](https://github.com/ianfabs/nanoid)390-* [Elixir](https://github.com/railsmechanic/nanoid)391-* [Gleam](https://github.com/0xca551e/glanoid)392-* [Go](https://github.com/jaevor/go-nanoid)393-* [Haskell](https://github.com/MichelBoucey/NanoID)394-* [Haxe](https://github.com/flashultra/uuid)395-* [Janet](https://sr.ht/~statianzo/janet-nanoid/)396-* [Java](https://github.com/wosherco/jnanoid-enhanced)397-* [Kotlin](https://github.com/viascom/nanoid-kotlin)398-* [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)399-* [Nim](https://github.com/icyphox/nanoid.nim)400-* [Perl](https://github.com/tkzwtks/Nanoid-perl)401-* [PHP](https://github.com/hidehalo/nanoid-php)402-* [Python](https://github.com/puyuan/py-nanoid)369+- [C#](https://github.com/codeyu/nanoid-net)370+- [C++](https://github.com/mcmikecreations/nanoid_cpp)371+- [Clojure and ClojureScript](https://github.com/zelark/nano-id)372+- [ColdFusion/CFML](https://github.com/JamoCA/cfml-nanoid)373+- [Crystal](https://github.com/mamantoha/nanoid.cr)374+- [Dart & Flutter](https://github.com/pd4d10/nanoid-dart)375+- [Deno](https://github.com/ianfabs/nanoid)376+- [Elixir](https://github.com/railsmechanic/nanoid)377+- [Gleam](https://github.com/0xca551e/glanoid)378+- [Go](https://github.com/jaevor/go-nanoid)379+- [Haskell](https://github.com/MichelBoucey/NanoID)380+- [Haxe](https://github.com/flashultra/uuid)381+- [Janet](https://sr.ht/~statianzo/janet-nanoid/)382+- [Java](https://github.com/wosherco/jnanoid-enhanced)383+- [Kotlin](https://github.com/viascom/nanoid-kotlin)384+- [MySQL/MariaDB](https://github.com/viascom/nanoid-mysql-mariadb)385+- [Nim](https://github.com/icyphox/nanoid.nim)386+- [Perl](https://github.com/tkzwtks/Nanoid-perl)387+- [PHP](https://github.com/hidehalo/nanoid-php)388+- [Python](https://github.com/puyuan/py-nanoid)389 with [dictionaries](https://pypi.org/project/nanoid-dictionary)404-* [Postgres Extension](https://github.com/spa5k/uids-postgres)405-* [Postgres Native Function](https://github.com/viascom/nanoid-postgres)406-* [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)407-* [Ruby](https://github.com/radeno/nanoid.rb)408-* [Rust](https://github.com/nikolay-govorov/nanoid)409-* [Swift](https://github.com/ShivaHuang/swift-nanoid)410-* [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)411-* [V](https://github.com/invipal/nanoid)412-* [Zig](https://github.com/SasLuca/zig-nanoid)390+- [Postgres Extension](https://github.com/spa5k/uids-postgres)391+- [Postgres Native Function](https://github.com/viascom/nanoid-postgres)392+- [R](https://github.com/hrbrmstr/nanoid) (with dictionaries)393+- [Ruby](https://github.com/radeno/nanoid.rb)394+- [Rust](https://github.com/nikolay-govorov/nanoid)395+- [Swift](https://github.com/ShivaHuang/swift-nanoid)396+- [Unison](https://share.unison-lang.org/latest/namespaces/hojberg/nanoid)397+- [V](https://github.com/invipal/nanoid)398+- [Zig](https://github.com/SasLuca/zig-nanoid)399 400 此外,[CLI] 还可用于从命令行生成 ID。401 402 [CLI]: #cli403 418-404 ## 工具405 421-* [ID size 计算器] 显示调整时的碰撞概率406+- [ID size 计算器] 显示调整时的碰撞概率407 ID的字母或大小。423-* [`nanoid-dictionary`] 与常用的字母一起使用 [`自定义字母`]。424-* [`nanoid-good`] 以确保你的ID不包含任何淫秽词汇。408+- [`nanoid-dictionary`] 与常用的字母一起使用 [`自定义字母`]。409+- [`nanoid-good`] 以确保你的ID不包含任何淫秽词汇。410 411 [`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary427-[ID size 计算器]: https://zelark.github.io/nano-id-cc/428-[`自定义字母`]: #自定义字母或大小429-[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good412+[ID size 计算器]: https://zelark.github.io/nano-id-cc/413+[`自定义字母`]: #自定义字母或大小414+[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good