Socket
Socket
Sign inDemoInstall

pm2

Package Overview
Dependencies
226
Maintainers
1
Versions
275
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.1.2

e2e_time

6

lib/Daemon.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc