Comparing version 3.1.30 to 3.1.31
@@ -17,3 +17,3 @@ import crypto from 'crypto' | ||
let random = bytes => { | ||
fillPool(bytes) | ||
fillPool((bytes -= 0)) | ||
return pool.subarray(poolOffset - bytes, poolOffset) | ||
@@ -38,3 +38,3 @@ } | ||
let nanoid = (size = 21) => { | ||
fillPool(size) | ||
fillPool((size -= 0)) | ||
let id = '' | ||
@@ -41,0 +41,0 @@ for (let i = poolOffset - size; i < poolOffset; i++) { |
{ | ||
"name": "nanoid", | ||
"version": "3.1.30", | ||
"version": "3.1.31", | ||
"description": "A tiny (130 bytes), secure URL-friendly unique string ID generator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ # Nano ID | ||
**English** | [Русский](./README.ru.md) | [简体中文](./README.zh-CN.md) | ||
**English** | [Русский](./README.ru.md) | [简体中文](./README.zh-CN.md) | [Bahasa Indonesia](./README.id-ID.md) | ||
@@ -21,3 +21,3 @@ A tiny, secure, URL-friendly, unique string ID generator for JavaScript. | ||
* **Portable.** Nano ID was ported | ||
to [19 programming languages](#other-programming-languages). | ||
to [20 programming languages](#other-programming-languages). | ||
@@ -24,0 +24,0 @@ ```js |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25858