New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eh-guid

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eh-guid - npm Package Compare versions

Comparing version 0.13.0 to 0.13.1

8

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc