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

dpd-cli

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dpd-cli - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/cli/create.js

4

lib/client/repl.js

@@ -5,3 +5,3 @@ var os = require('os')

, sh = require('shelljs')
, _open = require('../util/open')
, _open = require('opener')
, Keys = require('../keys')

@@ -60,3 +60,3 @@ , keys = new Keys();

server.resources && server.resources.forEach(function (r) {
if(r.settings.type) console.log('\t' + r.settings.path, '(' + r.settings.type + ')');
if(r.config.type) console.log('\t' + r.path, '(' + r.config.type + ')');
});

@@ -63,0 +63,0 @@ },

@@ -17,4 +17,4 @@ var fs = require('fs')

pid = JSON.parse(fs.readFileSync('./.dpd/pids/mongod'));
if(pid) {
if (pid) {
debug('pid %s', pid);

@@ -25,3 +25,5 @@ process.kill(pid);

}
} catch(e) {}
} catch(e) {
debug('no pid found');
}

@@ -40,4 +42,4 @@ /*!

var proc = spawn(mongod, options, {title: 'FOOBAR', stdio: 'pipe'})
, buf = '';
var proc = spawn(mongod, options, {title: 'FOOBAR', stdio: 'pipe'}),
buf = '';
proc.stdout.on('data', function(data) {

@@ -48,3 +50,3 @@ buf += data;

}
debug(data);
debug(data.toString());
});

@@ -72,9 +74,18 @@

process.stdin.on('end', kill);
process.stdin.on('end', function(err) {
debug('process end %s', err);
kill(err);
});
process.on('exit', kill);
process.on('exit', function(err) {
debug('process exit %s', err);
kill(err);
});
// on non win32 platforms SIGTERM is emitted instead of exit when
// a process is killed by another process, so use it to end our mongo
// process
process.on('SIGTERM', kill);
process.on('SIGTERM', function(err) {
debug('process SIGTERM %s', err);
kill(err);
});
};
{
"name": "dpd-cli",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",

@@ -10,3 +10,3 @@ "description": "The deployd command line interface",

"engines": {
"node": ">= 0.10.0"
"node": ">= 0.12.0"
},

@@ -13,0 +13,0 @@ "dependencies": {

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc