Comparing version 1.1.0 to 1.1.1
// Bluecat client command line tool | ||
// used for setup basic test framework scaffold | ||
// used for setup the following basic test framework scaffold | ||
// ├── config | ||
// │ ├── api.json | ||
// │ └── default.json | ||
// ├── package.json | ||
// └── test | ||
// ├── projectName | ||
// │ └── sample.js | ||
// └── test.js | ||
@@ -87,6 +95,6 @@ var Fs = require('fs'); | ||
console.log('\nInstalling npm package...'); | ||
Exec('npm install bluecat chai config mocha mocha-multi --save', function (error, stdout, stderr) { | ||
var child = Exec('npm install bluecat chai config mocha testarmada-magellan@8.8.4 testarmada-magellan-mocha-plugin2 --save --loglevel silent --color always', function (error, stdout, stderr) { | ||
if (error !== null) { | ||
console.log('npm install failed: ' + error); | ||
console.log('Please try bluecat config again'); | ||
console.log('Please try "' + argv.$0 + ' config" again'); | ||
} else { | ||
@@ -99,6 +107,16 @@ console.log('\n================================================================'); | ||
}); | ||
child.stdout.pipe(process.stdout); | ||
child.stderr.pipe(process.stderr); | ||
}); | ||
} else if(argv._[0] === 'api') { | ||
var api = require(Path.resolve() + Path.sep + 'config/api.json'); | ||
var apiFilePath = Path.resolve() + Path.sep + 'config/api.json'; | ||
if (!Fs.existsSync(apiFilePath)) { | ||
console.log(apiFilePath + ' doesn\'t exist'); | ||
console.log('You need to define APIs in apis.json first'); | ||
process.exit(1); | ||
} | ||
var api = require(apiFilePath); | ||
var apis = []; | ||
@@ -105,0 +123,0 @@ var findPath = function(api, path){ |
exports.ServiceSync = require('./service.gen.sync'); | ||
exports.ServiceAsync = require('./service.gen.async'); | ||
exports.Api = require('./service.api'); | ||
exports.version = '1.1.0'; | ||
exports.version = '1.1.1'; |
{ | ||
"name": "bluecat", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Chaoyi Chen <ccy.chenchaoyi@gmail.com>", | ||
@@ -32,3 +32,3 @@ "description": "Library for building RESTful API HTTP requests, good for generic RESTful API Test Framework", | ||
"request": "2.79.0", | ||
"yargs": "^6.4.0" | ||
"yargs": "^6.5.0" | ||
}, | ||
@@ -40,8 +40,8 @@ "scripts": { | ||
"chai": "^3.4.1", | ||
"mocha": "^3.1.2", | ||
"mocha": "^3.2.0", | ||
"grunt-cli": "^1.2.0", | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-contrib-jshint": "^1.1.0", | ||
"grunt-jscs": "^3.0.1" | ||
} | ||
} |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
36996
702
Updatedyargs@^6.5.0