Comparing version 0.0.1 to 0.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21393
21
539
9