pm2
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -262,3 +262,4 @@ /** | ||
God.system_infos_proc.kill() | ||
if (God.system_infos !== null) | ||
God.system_infos_proc.kill() | ||
@@ -339,3 +340,4 @@ /** | ||
God.system_infos_proc.kill() | ||
if (God.system_infos !== null) | ||
God.system_infos_proc.kill() | ||
@@ -342,0 +344,0 @@ God.dumpProcessList(function() { |
@@ -28,3 +28,2 @@ /** | ||
var Configuration = require('./Configuration.js'); | ||
var sysinfo = require('./Sysinfo/SystemInfo.js') | ||
@@ -78,11 +77,19 @@ /** | ||
God.system_infos_proc = new sysinfo() | ||
God.system_infos_proc = null | ||
setInterval(() => { | ||
God.system_infos_proc.query((err, data) => { | ||
God.system_infos = data | ||
}) | ||
}, 1000) | ||
// try { | ||
// var sysinfo = require('./Sysinfo/SystemInfo.js') | ||
// God.system_infos_proc = new sysinfo() | ||
God.system_infos_proc.fork() | ||
// setInterval(() => { | ||
// God.system_infos_proc.query((err, data) => { | ||
// God.system_infos = data | ||
// }) | ||
// }, 1000) | ||
// God.system_infos_proc.fork() | ||
// } catch(e) { | ||
// console.log(e) | ||
// God.system_infos_proc = null | ||
// } | ||
} | ||
@@ -89,0 +96,0 @@ |
@@ -129,5 +129,9 @@ /** | ||
God.getSystemData = function getSystemData(env, cb) { | ||
God.system_infos_proc.query((err, data) => { | ||
cb(null, data) | ||
}) | ||
if (God.system_infos_proc !== null) | ||
God.system_infos_proc.query((err, data) => { | ||
cb(null, data) | ||
}) | ||
else { | ||
cb(null, {}) | ||
} | ||
}; | ||
@@ -134,0 +138,0 @@ |
{ | ||
"name": "pm2", | ||
"preferGlobal": true, | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"engines": { | ||
@@ -196,3 +196,2 @@ "embed": "12.4.0", | ||
"sprintf-js": "1.1.2", | ||
"systeminformation": "^4.14.11", | ||
"vizion": "~2.0.2", | ||
@@ -205,2 +204,5 @@ "yamljs": "0.3.0" | ||
}, | ||
"optionalDependencies": { | ||
"systeminformation": "^4.14.11" | ||
}, | ||
"bugs": { | ||
@@ -207,0 +209,0 @@ "url": "https://github.com/Unitech/pm2/issues" |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 81 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
817381
113
17223
284
33
- Removedsysteminformation@^4.14.11