Comparing version 0.0.3 to 0.0.4
@@ -14,7 +14,9 @@ /** | ||
format._optional = 0; | ||
var f; | ||
for (var x in format) | ||
{ | ||
if (format[x] && (format[x].optional || format[x].mutex || format[x].requires || format[x].requiredBy || ('default' in format[x]))) | ||
var f = format[x]; | ||
if (f && typeof f === 'object' && (f.optional || f.mutex || f.requires || f.requiredBy || ('default' in f))) | ||
{ | ||
format[x].optional = true; | ||
f.optional = true; | ||
format._optional++; | ||
@@ -21,0 +23,0 @@ } |
{ | ||
"name": "arguer", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Bret Copeland <bret@atlantisflight.org>", | ||
@@ -5,0 +5,0 @@ "description": "Normalizes arguments for JavaScript functions with optional arguments and provides optional typing.", |
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
114