pm2-deploy
Advanced tools
Comparing version 0.3.9 to 0.3.10
var fs = require('fs'); | ||
var tv4 = require('tv4'); | ||
var async = require('async'); | ||
var series = require('async/series'); | ||
var childProcess = require('child_process'); | ||
@@ -17,5 +17,6 @@ var path = require('path'); | ||
var proc = childProcess.spawn('sh', ['-c', shellSyntaxCommand], { stdio: 'inherit' }); | ||
var error; | ||
proc.on('error', function (e) { | ||
return cb(e.stack || e); | ||
error = e; | ||
}); | ||
@@ -25,3 +26,3 @@ | ||
if (code == 0) return cb(null, args); | ||
else return cb(code); | ||
else return cb(error || code); | ||
}); | ||
@@ -90,3 +91,3 @@ } | ||
if (Array.isArray(target_conf.host)) { | ||
async.series(target_conf.host.reduce(function (jobs, host) { | ||
series(target_conf.host.reduce(function (jobs, host) { | ||
jobs.push(function (done) { | ||
@@ -136,3 +137,3 @@ | ||
Deploy.deployForEnv(conf.deploy, env, args, function (err, data) { | ||
deployForEnv(conf.deploy, env, args, function (err, data) { | ||
console.log(arguments); | ||
@@ -139,0 +140,0 @@ }); |
{ | ||
"name": "pm2-deploy", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "Deployment system for PM2", | ||
@@ -14,3 +14,3 @@ "main": "deploy.js", | ||
"dependencies": { | ||
"async": "^1.5", | ||
"async": "^2.6", | ||
"tv4": "^1.3" | ||
@@ -21,3 +21,3 @@ }, | ||
"mocha": "^3.5", | ||
"should": "^11" | ||
"should": "^13" | ||
}, | ||
@@ -24,0 +24,0 @@ "author": "Alexandre Strzelewicz", |
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
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
15091
149
+ Addedasync@2.6.4(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedasync@1.5.2(transitive)
Updatedasync@^2.6