boom-deploy
Advanced tools
Comparing version 0.2.48 to 0.2.49
@@ -46,3 +46,3 @@ var cp = require('child_process'); | ||
console.log(packageJson.version); | ||
console.log(boom.version()); | ||
@@ -49,0 +49,0 @@ } else if (argv.t) { |
@@ -20,3 +20,4 @@ var _ = require('lodash'); | ||
var argv = require('optimist').argv; | ||
var packageJson = require(path.resolve(__dirname, '../package.json')); | ||
var argv = require('optimist').argv; | ||
@@ -40,2 +41,6 @@ exports.hasDir = function(dir){ | ||
exports.version = function(){ | ||
return packageJson.version; | ||
} | ||
exports.list = function(){ | ||
@@ -74,2 +79,3 @@ | ||
config.set('task', taskname); | ||
config.set('version', packageJson.version); | ||
helpers.init(); | ||
@@ -76,0 +82,0 @@ cb(); |
@@ -1,7 +0,8 @@ | ||
var _ = require('lodash'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var _ = require('lodash'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var querystring = require('querystring'); | ||
var superagent = require('superagent'); | ||
var config = require('./config'); | ||
var superagent = require('superagent'); | ||
var config = require('./config'); | ||
var github = require('./github'); | ||
@@ -14,7 +15,13 @@ | ||
params = params || {}; | ||
params = _.assign(params, { _sk: config.get('dimcity.secret_key') }); | ||
var sk = config.get('dimcity.secret_key'); | ||
if (sk) { | ||
params._sk = sk; | ||
} | ||
var url = config.get('dimcity.url') + method + '?' + querystring.stringify(params); | ||
superagent.get(url) | ||
.set('X-Github-Token', github.token) | ||
.timeout(20 * 1000) | ||
@@ -21,0 +28,0 @@ .end(function(err, res){ |
@@ -372,2 +372,3 @@ var _ = require('lodash'); | ||
' --header="X-Github-Token: ' + github.token + '"' + | ||
' --header="X-Boom-Version: ' + config.get('version') + '"' + | ||
' --tries=1'; | ||
@@ -403,2 +404,3 @@ | ||
' --header="X-Github-Token: ' + github.token + '"' + | ||
' --header="X-Boom-Version: ' + config.get('version') + '"' + | ||
' --tries=1'; | ||
@@ -405,0 +407,0 @@ |
@@ -12,3 +12,3 @@ var cp = require('child_process'); | ||
child.stderr.on('data', function (chunk) { | ||
process.stderr.write($.lightred(chunk.toString())); | ||
process.stderr.write(chunk.toString()); | ||
err.push(chunk.toString()); | ||
@@ -15,0 +15,0 @@ }); |
{ | ||
"name": "boom-deploy", | ||
"main": "boom.js", | ||
"version": "0.2.48", | ||
"version": "0.2.49", | ||
"description": "deploy your app", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
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
84201
2378
15