Comparing version 14.0.4 to 14.0.5
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -93,3 +93,3 @@ 'use strict'; | ||
if (!this._flags.unsafe && | ||
(value >= Number.MAX_SAFE_INTEGER || value <= Number.MIN_SAFE_INTEGER)) { | ||
(value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER)) { | ||
result.errors = this.createError('number.unsafe', { value }, state, options); | ||
@@ -96,0 +96,0 @@ } |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "joi", | ||
"description": "Object schema validation", | ||
"version": "14.0.4", | ||
"version": "14.0.5", | ||
"homepage": "https://github.com/hapijs/joi", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hapijs/joi", |
@@ -19,3 +19,3 @@ ![joi Logo](https://raw.github.com/hapijs/joi/master/images/joi.png) | ||
# API | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v14.0.4/API.md). | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v14.0.5/API.md). | ||
@@ -75,3 +75,3 @@ # Example | ||
Then the value is validated against the schema: | ||
Second, the value is validated against the defined schema: | ||
@@ -83,6 +83,6 @@ ```javascript | ||
Joi.validate({ a: 'a string' }, schema, function (err, value) { }); | ||
Joi.validate({ a: 'a string' }, schema, function (error, value) { }); | ||
``` | ||
If the input is valid, then the error will be `null`, otherwise it will be an Error object. | ||
If the input is valid, then the `error` will be `null`, otherwise it will be an `Error` object providing more information. | ||
@@ -89,0 +89,0 @@ The schema can be a plain JavaScript object where every key is assigned a **joi** type, or it can be a **joi** type directly: |
Sorry, the diff of this file is not supported yet
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
189324