Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

optparse

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optparse - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

lib/optparse.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc