base62-random
Advanced tools
Comparing version 0.2.0-1 to 0.2.0
@@ -21,2 +21,4 @@ 'use strict'; | ||
base62.test = isbase62 | ||
// Attach methods for tests to use | ||
base62.generateBase62Math = generateBase62Math | ||
@@ -107,3 +109,3 @@ base62.generateBase62Node = generateBase62Node | ||
else { | ||
throw new Error('Non-standard crypto library') | ||
throw new Error('Non-standard crypto library') | ||
} | ||
@@ -114,2 +116,3 @@ | ||
function base62(length) { | ||
if ( !length || typeof length !== 'number') throw new Error(`base62 length must be a number "${length}"`) | ||
if ( str.length < (strIdx+length) ) generateBase62() | ||
@@ -119,2 +122,2 @@ return str.slice(strIdx, (strIdx+=length)) | ||
})() | ||
})() |
{ | ||
"name": "base62-random", | ||
"version": "0.2.0-1", | ||
"version": "0.2.0", | ||
"description": "Fast base62 random", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
44350
6
100