apigeetool
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -1,3 +0,4 @@ | ||
var defaults = require('../defaults') | ||
var request=require('request') | ||
var defaults = require('../defaults') | ||
var request = require('request') | ||
var util = require('util') | ||
@@ -34,2 +35,2 @@ module.exports.run = function(command, opts, requestOpts,done){ | ||
}) | ||
} | ||
} |
@@ -144,3 +144,6 @@ /* jshint node: true */ | ||
module.exports.getCommand = function(n) { | ||
return Commands[n]; | ||
var command = _.findKey(Commands, function(val, key) { | ||
return key.toLowerCase() === n.toLowerCase(); | ||
}); | ||
return Commands[command] | ||
}; |
@@ -52,3 +52,3 @@ /* jshint node: true */ | ||
"name" : opts.name, | ||
"apiproducts" : [], | ||
"apiProducts" : [], | ||
"callbackUrl": opts.callback | ||
@@ -60,3 +60,3 @@ } | ||
if(s && s.trim()!= '') { | ||
app.apiproducts.push(s.trim()) | ||
app.apiProducts.push(s.trim()) | ||
} | ||
@@ -63,0 +63,0 @@ }) |
@@ -55,2 +55,16 @@ /* jshint node: true */ | ||
ApigeeTool.deploySharedflow = function(opts) { | ||
var cb = q.defer() | ||
var cmd = require('./commands/deploysharedflow.js'); | ||
runCommand(cmd, opts, cb); | ||
return cb.promise | ||
}; | ||
ApigeeTool.deleteSharedflow = function(opts) { | ||
var cb = q.defer() | ||
var cmd = require('./commands/deletesharedflow.js'); | ||
runCommand(cmd, opts, cb); | ||
return cb.promise | ||
}; | ||
ApigeeTool.getLogs = function(opts) { | ||
@@ -57,0 +71,0 @@ var cb = q.defer() |
{ | ||
"name": "apigeetool", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"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
171250
4889
1