Socket
Socket
Sign inDemoInstall

pm2

Package Overview
Dependencies
294
Maintainers
1
Versions
276
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.1 to 3.5.2

lib/VersionCheck.js

5

lib/Client.js

@@ -171,2 +171,7 @@ /**

if (!process.env.PM2_PROGRAMMATIC && !fs.existsSync(path.join(opts.PM2_HOME, 'touch'))) {
var vCheck = require('./VersionCheck.js')
vCheck({
state: 'install',
version: pkg.version
})
var dt = fs.readFileSync(path.join(__dirname, opts.PM2_BANNER));

@@ -173,0 +178,0 @@ console.log(dt.toString());

@@ -12,2 +12,4 @@ /**

var cronJob = require('cron').CronJob
var vCheck = require('./VersionCheck.js')
var pkg = require('../package.json')

@@ -185,2 +187,9 @@ module.exports = function(God) {

timer = setInterval(wrappedTasks, cst.WORKER_INTERVAL);
setInterval(() => {
vCheck({
state: 'check',
version: pkg.version
})
}, 1000 * 60 * 60 * 24)
};

@@ -187,0 +196,0 @@

3

package.json
{
"name": "pm2",
"preferGlobal": true,
"version": "3.5.1",
"version": "3.5.2",
"engines": {

@@ -164,2 +164,3 @@ "node": ">=6.0.0"

"@pm2/js-api": "^0.5.43",
"@pm2/pm2-version-check": "latest",
"async": "^2.6.1",

@@ -166,0 +167,0 @@ "blessed": "^0.1.81",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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