@hapi/validate
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -310,2 +310,12 @@ 'use strict'; | ||
validateAsync(value, options) { | ||
const result = this.validate(value, options); | ||
if (result.error) { | ||
throw result.error; | ||
} | ||
return result.value; | ||
} | ||
// Extensions | ||
@@ -312,0 +322,0 @@ |
{ | ||
"name": "@hapi/validate", | ||
"description": "Object schema validation", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"repository": "git://github.com/hapijs/validate", | ||
@@ -6,0 +6,0 @@ "main": "lib/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
217504
5636