Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kitx

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitx - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

23

lib/index.js

@@ -86,6 +86,23 @@ 'use strict';

*/
exports.makeNonce = function () {
return '' + Math.floor(Math.random() * 1000000000000);
};
exports.makeNonce = (function() {
var counter = 0;
var last;
const machine = os.hostname();
const pid = process.pid;
return function () {
var val = Math.floor(Math.random() * 1000000000000);
if (val === last) {
counter++;
} else {
counter = 0;
}
last = val;
var uid = `${machine}${pid}${val}${counter}`;
return exports.md5(uid, 'hex');
};
}());
/**

@@ -92,0 +109,0 @@ * Pad a number as \d\d format

4

package.json
{
"name": "kitx",
"version": "1.2.0",
"version": "1.2.1",
"description": "toolkit",

@@ -31,3 +31,3 @@ "main": "lib/index.js",

"istanbul": "~0.4.2",
"mocha": "~2.3.4"
"mocha": "^3.4.2"
},

@@ -34,0 +34,0 @@ "files": [

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