Comparing version 4.5.2 to 5.0.0
@@ -9,2 +9,3 @@ /** | ||
var coerce = require('./coerce'); | ||
var validate = require('./validate'); | ||
var parse = require('./parse'); | ||
@@ -62,4 +63,4 @@ var hydrate = require('./hydrate'); | ||
// Otherwise, we'll assume this was entered as JSON and parse it first... | ||
// ...and if we make it past that, then we'll coerce the final result. | ||
return coerce(expectedTypeSchema, parse(humanString, expectedTypeSchema, unsafeMode)); | ||
// ...and if we make it past that, then we'll validate (and potentially lightly coerce) the final result. | ||
return validate(expectedTypeSchema, parse(humanString, expectedTypeSchema, unsafeMode)); | ||
}; |
{ | ||
"name": "rttc", | ||
"version": "4.5.2", | ||
"version": "5.0.0", | ||
"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
160822
3230