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

shortid

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shortid - npm Package Compare versions

Comparing version 2.2.11 to 2.2.12

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 2.2.12
* Fix cluster worker ID for non-Node environments.
## 2.2.11

@@ -5,0 +8,0 @@ * Fix React Native support.

5

lib/util/cluster-worker-id.js

@@ -5,3 +5,6 @@ 'use strict';

var clusterId = cluster.isMaster ? 0 : cluster.worker.id;
var clusterId = 0;
if (!cluster.isMaster && cluster.worker) {
clusterId = cluster.worker.id;
}
module.exports = parseInt(process.env.NODE_UNIQUE_ID || clusterId, 10);
{
"name": "shortid",
"version": "2.2.11",
"version": "2.2.12",
"description": "Amazingly short non-sequential url-friendly unique id generator.",

@@ -49,3 +49,3 @@ "main": "index.js",

"mocha": "^5.2.0",
"size-limit": "^0.18.4",
"size-limit": "^0.18.5",
"time-grunt": "^1.2.1"

@@ -52,0 +52,0 @@ },

@@ -23,2 +23,3 @@ ## shortid [![Build Status](http://img.shields.io/travis/dylang/shortid.svg)](https://travis-ci.org/dylang/shortid) [![shortid](http://img.shields.io/npm/dm/shortid.svg)](https://www.npmjs.org/package/shortid)

ShortId does not generate cryptographically secure ids, so don't rely on it to make IDs which are impossible to guess.

@@ -25,0 +26,0 @@

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