Comparing version 1.0.3 to 1.0.4
@@ -226,3 +226,4 @@ // Optparse.js 1.0.3 - Option Parser for Javascript | ||
var tokens = args.concat([]); | ||
while((token = tokens.shift()) && this._halt == false) { | ||
var token; | ||
while(this._halt == false && (token = tokens.shift())) { | ||
if(LONG_SWITCH_RE.test(token) || SHORT_SWITCH_RE.test(token)) { | ||
@@ -265,3 +266,3 @@ var arg = undefined; | ||
} | ||
return this._halt ? this.on_halt.apply(this, []) : result; | ||
return this._halt ? this.on_halt.apply(this, [tokens]) : result; | ||
}, | ||
@@ -294,7 +295,6 @@ | ||
for(var i = 0; i < rules.length; i++) { | ||
var text; | ||
var text = spaces(6); | ||
rule = rules[i]; | ||
if(shorts) { | ||
if(rule.short) text = spaces(2) + rule.short + ', '; | ||
else text = spaces(6); | ||
} | ||
@@ -301,0 +301,0 @@ text += spaces(rule.decl, longest) + spaces(3); |
@@ -6,4 +6,8 @@ { | ||
"keywords": ["option", "parser", "command-line", "cli", "terminal"], | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jfd/optparse-js.git" | ||
}, | ||
"main": "./lib/optparse" | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
22563
0
0