Comparing version 8.1.5 to 8.1.6
@@ -68,6 +68,6 @@ /** | ||
var pattern = _.reduce(valuePart.slice(1), function (patternSoFar, item) { | ||
patternSoFar = union(patternSoFar, _recursivelyCoerceExemplar(item), true, false); // <= recursive step | ||
patternSoFar = union(patternSoFar, _recursivelyCoerceExemplar(item), true, true); // <= recursive step | ||
// meaning of `union` flags, in order: | ||
// • `true` (yes these are exemplars) | ||
// • `false` (no, don't use strict validation rules) | ||
// • `true` (yes, use strict validation rules to prevent confusion) | ||
return patternSoFar; | ||
@@ -74,0 +74,0 @@ }, _recursivelyCoerceExemplar(valuePart[0]) /* <= recursive step */); |
@@ -277,3 +277,3 @@ /** | ||
if (!isStrict){ | ||
if ( thisSchema(schema1).is('number, boolean') ) { | ||
if ( thisSchema(schema1).is('number', 'boolean') ) { | ||
return schema0; | ||
@@ -280,0 +280,0 @@ } |
{ | ||
"name": "rttc", | ||
"version": "8.1.5", | ||
"version": "8.1.6", | ||
"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
213929