Comparing version 0.1.1 to 0.1.2
@@ -367,16 +367,16 @@ 'use strict'; | ||
// consume the argument | ||
var argument = nextArgument(args); | ||
var argument = args.shift(); | ||
switch(argument) | ||
{ | ||
case '-n': | ||
options.maxRequests = nextArgument(args); | ||
options.maxRequests = args.shift(); | ||
return true; | ||
case '-c': | ||
options.concurrency = nextArgument(args); | ||
options.concurrency = args.shift(); | ||
return true; | ||
case '-t': | ||
options.maxSeconds = nextArgument(args); | ||
options.maxSeconds = args.shift(); | ||
return true; | ||
case '--rps': | ||
options.requestsPerSecond = nextArgument(args); | ||
options.requestsPerSecond = args.shift(); | ||
return true; | ||
@@ -394,10 +394,2 @@ case '--noagent': | ||
/** | ||
* Get the next argument and remove it from the list. | ||
*/ | ||
function nextArgument(args) | ||
{ | ||
return args.splice(0, 1)[0]; | ||
} | ||
/** | ||
* Process command line arguments. | ||
@@ -404,0 +396,0 @@ */ |
{ | ||
"name": "loadtest", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Load test scripts.", | ||
@@ -23,2 +23,7 @@ "homepage": "http://milliearth.org/", | ||
}, | ||
"bin": { | ||
"loadtest": "lib/cli-wrapper.js", | ||
"testserver": "lib/cli-wrapper.js" | ||
}, | ||
"preferGlobal": true, | ||
"scripts": { | ||
@@ -25,0 +30,0 @@ "test": "node test.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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
27697
12
1002
1