Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pm2-mongodb

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2-mongodb - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

5

lib/mongostat.js

@@ -6,3 +6,3 @@ var shelljs = require('shelljs');

var refresh = function() {
var mongostat = "mongostat --port " + pmx.getConf().port + " -n 1";
var mongostat = "mongostat --noheaders --port " + pmx.getConf().port + " -n 1";
if (pmx.getConf().username != 0 && pmx.getConf().password != false && pmx.getConf().authDB != false)

@@ -14,4 +14,3 @@ mongostat += ' -u ' + pmx.getConf().username + ' -p ' + pmx.getConf().password + ' --authenticationDatabase' + pmx.getConf().authDB;

}
var lines = out.split("\n");
var str_info = lines[1].replace( /[\s\n\r]+/g,' ');
var str_info = out.replace( /[\s\n\r]+/g,' ');
var data = str_info.split(' ');

@@ -18,0 +17,0 @@ insert.set(data[1]);

2

package.json
{
"name": "pm2-mongodb",
"version": "0.4.1",
"version": "0.4.2",
"description": "PM2 MongoDB Module",

@@ -5,0 +5,0 @@ "main": "app.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc