Socket
Socket
Sign inDemoInstall

pm2

Package Overview
Dependencies
202
Maintainers
1
Versions
275
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.2 to 5.3.0

2

lib/API.js

@@ -185,3 +185,3 @@ /**

// If new pm2 instance has been popped
// Lauch all modules
// Launch all modules
that.launchAll(that, function(err_mod) {

@@ -188,0 +188,0 @@ return cb(err, meta);

@@ -44,9 +44,6 @@ var chalk = require('chalk');

}
else if (l.pm2_env.name === api) {
else if (l.pm2_env.pm_id == api || l.pm2_env.name === api) {
Common.printOut(cst.PREFIX_MSG + 'Flushing:');
Common.printOut(cst.PREFIX_MSG + l.pm2_env.pm_out_log_path);
Common.printOut(cst.PREFIX_MSG + l.pm2_env.pm_err_log_path);
if (l.pm2_env.pm_log_path &&
l.pm2_env.pm_log_path.lastIndexOf('/') < l.pm2_env.pm_log_path.lastIndexOf(api)) {
if (l.pm2_env.pm_log_path && fs.existsSync(l.pm2_env.pm_log_path)) {
Common.printOut(cst.PREFIX_MSG + l.pm2_env.pm_log_path);

@@ -56,6 +53,11 @@ fs.closeSync(fs.openSync(l.pm2_env.pm_log_path, 'w'));

if (l.pm2_env.pm_out_log_path.lastIndexOf('/') < l.pm2_env.pm_out_log_path.lastIndexOf(api))
if (l.pm2_env.pm_out_log_path && fs.existsSync(l.pm2_env.pm_out_log_path)) {
Common.printOut(cst.PREFIX_MSG + l.pm2_env.pm_out_log_path);
fs.closeSync(fs.openSync(l.pm2_env.pm_out_log_path, 'w'));
if (l.pm2_env.pm_err_log_path.lastIndexOf('/') < l.pm2_env.pm_err_log_path.lastIndexOf(api))
}
if (l.pm2_env.pm_err_log_path && fs.existsSync(l.pm2_env.pm_err_log_path)) {
Common.printOut(cst.PREFIX_MSG + l.pm2_env.pm_err_log_path);
fs.closeSync(fs.openSync(l.pm2_env.pm_err_log_path, 'w'));
}
}

@@ -62,0 +64,0 @@ });

@@ -47,4 +47,9 @@

var id_width = Math.max(
2 + (Math.max(...list.map((l) => String(l.pm2_env.pm_id || 0).length)) || 0),
4
);
var app_head = {
id: 5,
id: id_width,
name: name_col_size,

@@ -65,3 +70,3 @@ namespace: 13,

var mod_head = {
id: 4,
id: id_width,
module: 30,

@@ -79,3 +84,3 @@ version: 15,

app_head = {
id: 4,
id: id_width,
name: 20,

@@ -90,3 +95,3 @@ mode: 10,

mod_head = {
id: 4,
id: id_width,
name: 20,

@@ -93,0 +98,0 @@ status: 10,

@@ -884,3 +884,3 @@ 'use strict';

.option('--timestamp [format]', 'add timestamps (default format YYYY-MM-DD-HH:mm:ss)')
.option('--nostream', 'print logs without lauching the log stream')
.option('--nostream', 'print logs without launching the log stream')
.option('--highlight [value]', 'highlights the given value')

@@ -887,0 +887,0 @@ .description('stream logs file. Default stream all logs')

@@ -16,2 +16,3 @@ /**

var ProcessUtils = require('./ProcessUtils');
var Url = require('url');

@@ -302,3 +303,3 @@ // Load all env-vars from master.

if (ProcessUtils.isESModule(script) === true)
import(process.env.pm_exec_path);
import(Url.pathToFileURL(process.env.pm_exec_path));
else

@@ -305,0 +306,0 @@ require('module')._load(script, null, true);

{
"name": "pm2",
"preferGlobal": true,
"version": "5.2.2",
"version": "5.3.0",
"engines": {

@@ -6,0 +6,0 @@ "node": ">=10.0.0"

@@ -43,3 +43,3 @@ <div align="center">

PM2 is constantly assailed by [more than 1800 tests](https://app.travis-ci.com/github/Unitech/pm2).
PM2 is constantly assailed by [more than 1800 tests](https://app.travis-ci.com/github/Unitech/pm2/branches).

@@ -46,0 +46,0 @@ Official website: [https://pm2.keymetrics.io/](https://pm2.keymetrics.io/)

Sorry, the diff of this file is not supported yet

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