Comparing version 8.1.2 to 8.1.3
@@ -8,2 +8,3 @@ /** | ||
var TYPES = require('./helpers/types'); | ||
var coerceExemplar = require('./coerce-exemplar'); | ||
@@ -286,4 +287,11 @@ | ||
// Run the iterator to get the schema intersection. | ||
return twoHeadedCursor(schema0, schema1); | ||
var result = twoHeadedCursor(schema0, schema1); | ||
// This makes sure the resulting exemplar won't be `undefined`. | ||
if (isExemplar) { | ||
return coerceExemplar(result); | ||
} | ||
return result; | ||
}; | ||
@@ -290,0 +298,0 @@ |
{ | ||
"name": "rttc", | ||
"version": "8.1.2", | ||
"version": "8.1.3", | ||
"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
213102
4550