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
1
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.4.0 to 0.5.0

test/get_user.js

14

index.js

@@ -93,2 +93,15 @@ "use strict";

/**
* get user id from isolated global id
* @param {String} globalId - isolated global id
* @return {Number} - returns user id or null if can't extract it
*/
function getUser(globalId) {
var userId = globalId.split("-")[0];
if(isNaN(userId)) {
return null;
}
return parseInt(userId);
}
function GlobalId(options) {

@@ -156,3 +169,4 @@ if(typeof options === "number") {

GlobalId.gen = gen;
GlobalId.getUser = getUser;
module.exports = GlobalId;

2

package.json
{
"name": "eh-guid",
"version": "0.4.0",
"version": "0.5.0",
"description": "EverHelper working with guid",

@@ -5,0 +5,0 @@ "main": "index.js",

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