Comparing version 2.2.11 to 2.2.12
# 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,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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21303
251
253