detect-node
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,1 +0,6 @@ | ||
module.exports = Object.prototype.toString.call( (global || window).process ) === '[object process]' ? true : false; | ||
module.exports = false; | ||
// Only Node.JS has a process variable that is of [[Class]] process | ||
try { | ||
module.exports = Object.prototype.toString.call(process) === '[object process]' | ||
} catch(e) {} |
{ | ||
"name": "detect-node", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Detect Node.JS (as opposite to browser environment) (reliable)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1291
5