apigeetool
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -15,2 +15,5 @@ /* jshint node: true */ | ||
}, | ||
'displayName': { | ||
name: 'Display Name' | ||
}, | ||
'productDesc': { | ||
@@ -74,3 +77,7 @@ name: 'Description' | ||
product.name = opts.productName | ||
product.displayName = opts.productName | ||
if(opts.displayName){ | ||
product.displayName = opts.displayName | ||
}else{ | ||
product.displayName = opts.productName | ||
} | ||
product.description = opts.productDesc | ||
@@ -98,2 +105,5 @@ if(opts.approvalType){ | ||
} | ||
if(opts.attributes) { | ||
product.attributes = opts.attributes; | ||
} | ||
if(opts.scopes){ | ||
@@ -100,0 +110,0 @@ var split = opts.scopes.split(',') |
@@ -721,5 +721,10 @@ /* jshint node: true */ | ||
if (err) { return done(err); } | ||
var jsonBody; | ||
try { | ||
jsonBody = (body ? JSON.parse(body) : null); | ||
} catch(e) { | ||
// fall through -- error handling below will catch any error | ||
} | ||
var jsonBody = (body ? JSON.parse(body) : null); | ||
if (req.statusCode === 200) { | ||
@@ -726,0 +731,0 @@ if (opts.verbose) { console.log('Deployment on %s successful', environment); } |
@@ -10,3 +10,3 @@ /* jshint node: true */ | ||
function ApigeeTool(defaults) { | ||
this.defaults = (defaults ? defaults : DefaultDefaults); | ||
this.defaults = (defaults ? defaults : DefaultDefaults); | ||
} | ||
@@ -35,3 +35,3 @@ | ||
ApigeeTool.deployProxy = function(opts) { | ||
ApigeeTool.deployProxy = function(opts) { | ||
var cb = q.defer() | ||
@@ -50,2 +50,9 @@ var cmd = require('./commands/deployproxy'); | ||
ApigeeTool.delete = function(opts) { | ||
var cb = q.defer() | ||
var cmd = require('./commands/delete'); | ||
runCommand(cmd, opts, cb); | ||
return cb.promise | ||
}; | ||
ApigeeTool.fetchProxy = function(opts) { | ||
@@ -60,3 +67,3 @@ var cb = q.defer() | ||
var cb = q.defer() | ||
var cmd = require('./commands/deploysharedflow.js'); | ||
var cmd = require('./commands/deploysharedflow'); | ||
runCommand(cmd, opts, cb); | ||
@@ -66,5 +73,12 @@ return cb.promise | ||
ApigeeTool.undeploySharedflow = function(opts) { | ||
var cb = q.defer() | ||
var cmd = require('./commands/undeploysharedflow'); | ||
runCommand(cmd, opts, cb); | ||
return cb.promise | ||
}; | ||
ApigeeTool.deleteSharedflow = function(opts) { | ||
var cb = q.defer() | ||
var cmd = require('./commands/deletesharedflow.js'); | ||
var cmd = require('./commands/deletesharedflow'); | ||
runCommand(cmd, opts, cb); | ||
@@ -119,3 +133,3 @@ return cb.promise | ||
try{ | ||
var cmd = require('./commands/createproduct'); | ||
var cmd = require('./commands/createproduct'); | ||
runCommand(cmd, opts, cb); | ||
@@ -132,3 +146,3 @@ } | ||
try{ | ||
var cmd = require('./commands/deleteproduct'); | ||
var cmd = require('./commands/deleteproduct'); | ||
runCommand(cmd, opts, cb); | ||
@@ -236,5 +250,5 @@ } | ||
if(runerr){cb.reject(runerr)} | ||
else { cb.resolve(response)} | ||
else { cb.resolve(response)} | ||
}); | ||
}); | ||
} |
{ | ||
"name": "apigeetool", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "A CLI for Apigee Edge", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
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
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
219879
5982
2