Comparing version 0.2.0 to 0.2.1
@@ -7,6 +7,6 @@ var os = require('os'); | ||
function isString(obj) { | ||
return "[object String]" == toString.call(obj); | ||
return "[object String]" === toString.call(obj); | ||
} | ||
function isNumber(obj) { | ||
return (toString.call(obj) == "[object " + Number + "]") || !isNaN(obj); | ||
return (toString.call(obj) === "[object " + Number + "]") || !isNaN(obj); | ||
} | ||
@@ -144,3 +144,5 @@ function isObject(obj) { | ||
return this.toBase36String( process.pid, processLength ); | ||
var pid = (process && process.pid) ? process.pid : Date.now(); | ||
return this.toBase36String( pid, processLength ); | ||
}; | ||
@@ -160,3 +162,3 @@ ClerobeeProto.getNetworkId = function( networkLength ) { | ||
var time = process.hrtime(); | ||
var time = (process && process.hrtime) ? process.hrtime() : [1, Date.now()]; | ||
var nano = time[0] * 1e9 + time[1]; | ||
@@ -163,0 +165,0 @@ |
{ | ||
"name": "clerobee", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A featureful dependency-free UID generator", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
}, | ||
"_id": "clerobee@0.2.0" | ||
"_id": "clerobee@0.2.1" | ||
} |
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
11977
188