Comparing version 1.0.3 to 1.0.4
@@ -19,2 +19,5 @@ var Parameter, REGEX_MULTIWORD, REGEX_OPTIONAL, REGEX_REQUIRED, REGEX_VARIADIC, parse, _; | ||
function Parameter(parameter) { | ||
if (_.isNumber(parameter)) { | ||
parameter = String(parameter); | ||
} | ||
if ((parameter == null) || !_.isString(parameter)) { | ||
@@ -21,0 +24,0 @@ throw new Error("Missing or invalid parameter: " + parameter); |
{ | ||
"name": "capitano", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Powerful, non opitionated command line parser for serious applications", | ||
@@ -5,0 +5,0 @@ "main": "build/capitano.js", |
@@ -326,2 +326,6 @@ Capitano | ||
### 1.0.4 | ||
- Fix issue when instantiating Parameter instances with a number directly. | ||
### 1.0.3 | ||
@@ -328,0 +332,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
95602
586
368