Comparing version 1.0.0 to 1.0.1
@@ -205,7 +205,7 @@ /** | ||
} | ||
if (coercedValue.length === 0) { | ||
return []; | ||
} | ||
var arrayItemTpl = expected[0]; | ||
return [_validateRecursive(arrayItemTpl, coercedValue[0], errors, ensureSerializable)]; | ||
return _.reduce(coercedValue, function (memo, coercedVal){ | ||
memo.push(_validateRecursive(arrayItemTpl, coercedVal, errors, ensureSerializable)); | ||
return memo; | ||
}, []); | ||
} | ||
@@ -212,0 +212,0 @@ if (isExpectingDictionary) { |
{ | ||
"name": "rttc", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Runtime type-checking for JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
22153