Comparing version 0.0.2 to 0.0.3
@@ -16,3 +16,3 @@ /** | ||
{ | ||
if (format[x] && (format[x].optional || format[x].mutex || format[x].requires || format[x].requiredBy)) | ||
if (format[x] && (format[x].optional || format[x].mutex || format[x].requires || format[x].requiredBy || ('default' in format[x]))) | ||
{ | ||
@@ -19,0 +19,0 @@ format[x].optional = true; |
@@ -0,0 +0,0 @@ var arguer = require('./arguer.js'); |
{ | ||
"name": "arguer", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": "Bret Copeland <bret@atlantisflight.org>", | ||
@@ -5,0 +5,0 @@ "description": "Normalizes arguments for JavaScript functions with optional arguments and provides optional typing.", |
@@ -91,7 +91,7 @@ # Arguer | ||
Specifies a default value for an argument. | ||
Specifies a default value for an argument. If a default value is provided, `optional:true` is implied, and can be omitted. | ||
### Back-Reference Properties | ||
Each of the following properties accept a string which represents the name of a previous argument. ___Only previous___ arguments can referenced. In other words, arg with index 4 can reference any arg 0 through 3, but cannot reference arg 5. If any one or more of the following properties are used, optional:true is implied, and can be omitted. | ||
Each of the following properties accept a string which represents the name of a previous argument. ___Only previous___ arguments can referenced. In other words, arg with index 4 can reference any arg 0 through 3, but cannot reference arg 5. If any one or more of the following properties are used, `optional:true` is implied, and can be omitted. | ||
@@ -98,0 +98,0 @@ #### requires : _string_ |
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
10200