nanoid 5.0.0 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nanoid might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +3 -1
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  <img src="https://ai.github.io/nanoid/logo.svg" align="right"
4
4
  alt="Nano ID logo by Anton Lovchikov" width="180" height="94">
5
5
 
6
+ **English** | [Русский](./README.ru.md) | [简体中文](./README.zh-CN.md) | [Bahasa Indonesia](./README.id-ID.md)
7
+
6
8
  A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
7
9
 
8
10
  > “An amazing level of senseless perfectionism,
@@ -23,7 +25,7 @@ model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"
23
25
 
24
26
  ---
25
27
 
26
- <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" />  Made in <b><a href="https://evilmartians.com/?utm_source=nanoid&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.
28
+ <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" />  Made in <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
29
 
28
30
  ---
29
31
 
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { webcrypto as crypto } from 'node:crypto'
1
2
  import { urlAlphabet } from './url-alphabet/index.js'
2
3
  export { urlAlphabet }
3
4
  const POOL_SIZE_MULTIPLIER = 128
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanoid",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",
5
5
  "keywords": [
6
6
  "uuid",