@@ -8,3 +8,3 @@ let urlAlphabet = | ||
| let i = size | 0 | ||
| while (i--) { | ||
| while (i-- > 0) { | ||
| id += alphabet[(Math.random() * alphabet.length) | 0] | ||
@@ -19,3 +19,3 @@ } | ||
| let i = size | 0 | ||
| while (i--) { | ||
| while (i-- > 0) { | ||
| id += urlAlphabet[(Math.random() * 64) | 0] | ||
@@ -22,0 +22,0 @@ } |
@@ -8,3 +8,3 @@ let urlAlphabet = | ||
| let i = size | 0 | ||
| while (i--) { | ||
| while (i-- > 0) { | ||
| id += alphabet[(Math.random() * alphabet.length) | 0] | ||
@@ -19,3 +19,3 @@ } | ||
| let i = size | 0 | ||
| while (i--) { | ||
| while (i-- > 0) { | ||
| id += urlAlphabet[(Math.random() * 64) | 0] | ||
@@ -22,0 +22,0 @@ } |
+1
-1
| { | ||
| "name": "nanoid", | ||
| "version": "3.3.15", | ||
| "version": "3.3.16", | ||
| "description": "A tiny (116 bytes), secure URL-friendly unique string ID generator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
24714
0.06%