Comparing version 1.0.8 to 1.0.9
@@ -86,3 +86,3 @@ // Bluecat client command line tool | ||
console.log('\nInstalling npm package...'); | ||
Exec('npm install bluecat chai config mocha mocha-espresso mocha-multi --save', function (error, stdout, stderr) { | ||
Exec('npm install bluecat chai config mocha mocha-multi --save', function (error, stdout, stderr) { | ||
if (error !== null) { | ||
@@ -99,3 +99,31 @@ console.log('npm install failed: ' + error); | ||
}); | ||
} else if(argv._[0] === 'api') { | ||
var api = require(Path.resolve() + Path.sep + 'config/api.json'); | ||
var findPath = function(api, path){ | ||
path = path || ''; | ||
for(var i in api){ | ||
console.log('----------------'); | ||
if (api[i] !== null && typeof api[i] === 'object') { | ||
//console.log(i); | ||
path = path + '/' + i; | ||
if (api[i].hasOwnProperty('method')) { | ||
for(var j in api[i].method) { | ||
console.log('full path: ' + api[i].method[j] + ' ' + path); | ||
} | ||
var keys = Object.keys(api[i]); | ||
//if(keys | ||
findPath(api[i], path); | ||
//return; | ||
} else { | ||
findPath(api[i], path); | ||
} | ||
} else { | ||
//return; | ||
} | ||
} | ||
} | ||
findPath(api, ''); | ||
} | ||
exports.ServiceSync = require('./service.gen.sync'); | ||
exports.ServiceAsync = require('./service.gen.async'); | ||
exports.Api = require('./service.api'); | ||
exports.version = '1.0.8'; | ||
exports.version = '1.0.9'; |
{ | ||
"name": "bluecat", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"author": "Chaoyi Chen <ccy.chenchaoyi@gmail.com>", | ||
@@ -25,5 +25,5 @@ "description": "Library for building RESTful API HTTP requests, good for generic RESTful API Test Framework", | ||
"dependencies": { | ||
"fibers": "^1.0.13", | ||
"fibers": "^1.0.14", | ||
"hoek": "^2.16.3", | ||
"inquirer": "^1.0.2", | ||
"inquirer": "^1.1.3", | ||
"path": "^0.12.7", | ||
@@ -39,8 +39,8 @@ "promise": "^7.1.1", | ||
"chai": "^3.4.1", | ||
"mocha": "^2.3.4", | ||
"mocha": "^2.5.3", | ||
"grunt-cli": "^1.2.0", | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-jscs": "^2.8.0" | ||
"grunt-jscs": "^3.0.1" | ||
} | ||
} |
@@ -11,3 +11,3 @@ ## Bluecat <img src="https://raw.github.com/chenchaoyi/bluecat/master/images/bluecat.png" align="middle" /> | ||
`Bluecat` is a library that helps to easily create HTTP requests and maintain session information underlayer. | ||
**Bluecat** is a library that helps to easily create HTTP requests and maintain session information underlayer. | ||
@@ -14,0 +14,0 @@ It could be integrated with any Node.js test framework and assertion library to create a clear and straighforward `Web services API testing framework`. |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
36043
690
11
Updatedfibers@^1.0.14
Updatedinquirer@^1.1.3