Comparing version 0.13.0 to 0.13.1
@@ -8,5 +8,5 @@ "use strict"; | ||
function gen() { | ||
function gen(len = 16) { | ||
try { | ||
return cryptoRandomString({ length: 16, type: 'alphanumeric' }).toLowerCase() | ||
return cryptoRandomString({ length: len, type: 'alphanumeric' }).toLowerCase() | ||
} catch (err) { | ||
@@ -148,3 +148,3 @@ return randomString(16) | ||
GlobalId.prototype.gen = function() { | ||
GlobalId.prototype.gen = function(len) { | ||
if(this._options.userId) { | ||
@@ -154,3 +154,3 @@ return genIsolated(this._options.userId); | ||
else { | ||
return gen(); | ||
return gen(len); | ||
} | ||
@@ -157,0 +157,0 @@ }; |
{ | ||
"name": "eh-guid", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "EverHelper working with guid", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
50651
1