Comparing version 1.12.2 to 1.13.0
@@ -142,3 +142,3 @@ /** | ||
var num = Number(arg); | ||
if (!/^[0-9]+$/.test(arg) || isNaN(num)) { | ||
if (!/^[0-9]+$/.test(arg) || isNaN(num) || num === 0) { | ||
throw new Error(format('arg for "%s" is not a positive integer: "%s"', | ||
@@ -145,0 +145,0 @@ optstr, arg)); |
{ | ||
"name": "dashdash", | ||
"description": "A light, featureful and explicit option parsing library.", | ||
"version": "1.12.2", | ||
"version": "1.13.0", | ||
"author": "Trent Mick <trentm@gmail.com> (http://trentm.com)", | ||
@@ -14,3 +14,3 @@ "keywords": ["option", "parser", "parsing", "cli", "command", "args", | ||
"dependencies": { | ||
"assert-plus": "^0.2.0" | ||
"assert-plus": "^1.0.0" | ||
}, | ||
@@ -21,3 +21,3 @@ "devDependencies": { | ||
"engines": { | ||
"node": ">=0.8" | ||
"node": ">=0.10" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
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
67480
+ Addedassert-plus@1.0.0(transitive)
- Removedassert-plus@0.2.0(transitive)
Updatedassert-plus@^1.0.0