unleash-client
Advanced tools
Comparing version 2.1.1 to 2.1.2
# Changelog | ||
## 2.1.2 | ||
- Unleash should not throw if os.userInfo throws #35 | ||
## 2.1.1 (March 2017) | ||
@@ -4,0 +7,0 @@ - allow appName to contain "/" when storing file backup |
@@ -44,3 +44,10 @@ 'use strict'; | ||
if (!instanceId) { | ||
var info = os_2.userInfo(); | ||
var info = void 0; | ||
try { | ||
info = os_2.userInfo(); | ||
} | ||
catch (e) { | ||
//unable to read info; | ||
info = {}; | ||
} | ||
var prefix = info.username ? info.username : "generated-" + Math.round(Math.random() * 1000000) + "-" + process.pid; | ||
@@ -47,0 +54,0 @@ instanceId = prefix + "-" + os_2.hostname(); |
{ | ||
"name": "unleash-client", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Unleash Client for Node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
76423
71
1202