Comparing version 2.1.1 to 2.1.2
@@ -239,3 +239,3 @@ // info about each config option. | ||
var hadEq = false | ||
if (arg.charAt(0) === "-") { | ||
if (arg.charAt(0) === "-" && arg.length > 1) { | ||
if (arg.indexOf("=") !== -1) { | ||
@@ -584,2 +584,12 @@ hadEq = true | ||
,{c:"--con",l:"--len",e:"--exp",a:"--add",r:"--rep"}] | ||
,["--file -" | ||
,{"file":"-"} | ||
,[] | ||
,{file:String} | ||
,{}] | ||
,["--file -" | ||
,{"file":true} | ||
,["-"] | ||
,{file:Boolean} | ||
,{}] | ||
].forEach(function (test) { | ||
@@ -586,0 +596,0 @@ var argv = test[0].split(/\s+/) |
{ | ||
"name": "nopt", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", |
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
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
28763
626
3
1