nanoid 5.0.1 → 5.0.3

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.

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/bin/nanoid.js CHANGED
@@ -16,7 +16,7 @@ if (process.argv.includes('--help') || process.argv.includes('-h')) {
16
16
  -a, --alphabet Alphabet to use
17
17
  -h, --help Show this help
18
18
  Examples
19
- $ nanoid --s 15
19
+ $ nanoid -s 15
20
20
  S9sBF77U6sDB8Yg
21
21
  $ nanoid --size 10 --alphabet abc
22
22
  bcabababca`)
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import crypto from 'node:crypto'
1
+ import { webcrypto as crypto } from 'node:crypto'
2
2
  import { urlAlphabet } from './url-alphabet/index.js'
3
3
  export { urlAlphabet }
4
4
  const POOL_SIZE_MULTIPLIER = 128
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanoid",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",
5
5
  "keywords": [
6
6
  "uuid",