joi 14.3.0 → 14.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Imagine you run facebook and you want visitors to sign up on the website with re
|
|
|
16
16
|
This is joi, joi allows you to create *blueprints* or *schemas* for JavaScript objects (an object that stores information) to ensure *validation* of key information.
|
|
17
17
|
|
|
18
18
|
# API
|
|
19
|
-
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v14.3.
|
|
19
|
+
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v14.3.1/API.md).
|
|
20
20
|
|
|
21
21
|
# Example
|
|
22
22
|
|
package/lib/index.js
CHANGED
|
@@ -46,7 +46,7 @@ internals.root = function () {
|
|
|
46
46
|
const root = any.clone();
|
|
47
47
|
Any.prototype._currentJoi = root;
|
|
48
48
|
root._currentJoi = root;
|
|
49
|
-
root._binds = new Set(['any', 'alternatives', 'alt', 'array', 'boolean', 'binary', 'date', 'func', 'number', 'object', 'string', 'symbol', 'validate', 'describe', 'compile', 'assert', 'attempt', 'lazy', 'defaults', 'extend']);
|
|
49
|
+
root._binds = new Set(['any', 'alternatives', 'alt', 'array', 'boolean', 'binary', 'date', 'func', 'number', 'object', 'string', 'symbol', 'validate', 'describe', 'compile', 'assert', 'attempt', 'lazy', 'defaults', 'extend', 'allow', 'valid', 'only', 'equal', 'invalid', 'disallow', 'not', 'required', 'exist', 'optional', 'forbidden', 'strip', 'when', 'empty', 'default']);
|
|
50
50
|
|
|
51
51
|
root.any = function (...args) {
|
|
52
52
|
|