Comparing version 1.2.0 to 1.2.1
## Changelog | ||
### 1.2.1 | ||
Update [@hapi/joi](https://www.npmjs.com/package/@hapi/joi) from version 17.1.0 to 17.1.1 | ||
Removed array.inList | ||
### 1.2.0 | ||
@@ -4,0 +9,0 @@ |
'use strict'; | ||
const Joi = require('@hapi/joi').extend( | ||
require('./libraries/string'), | ||
require('./libraries/array') | ||
require('./libraries/string') | ||
); | ||
module.exports = Joi; |
@@ -0,0 +0,0 @@ [ |
@@ -0,0 +0,0 @@ [ |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ Copyright 2019-2019, Project contributor(s) |
{ | ||
"name": "joi-plus", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Joi with extra rules for string and array.", | ||
@@ -10,3 +10,3 @@ "repository": "git://github.com/flamehamster/joi-plus", | ||
"dependencies": { | ||
"@hapi/joi": "^17.1.0" | ||
"@hapi/joi": "^17.1.1" | ||
}, | ||
@@ -24,5 +24,4 @@ "keywords": [ | ||
"country", | ||
"iso 3166", | ||
"array" | ||
"iso 3166" | ||
] | ||
} |
@@ -5,3 +5,3 @@ # Joi-Plus | ||
[@hapi/joi - v17.1.0](https://www.npmjs.com/package/@hapi/joi) | ||
[@hapi/joi - v17.1.1](https://www.npmjs.com/package/@hapi/joi) | ||
Making the most powerful schema description language and data validator for JavaScript slightly more powerful. | ||
@@ -54,6 +54,2 @@ | ||
* Joi.array().inList(list, [label]) | ||
* Requires the value in array to match the list. | ||
* Overrides the key name for value in error messages. | ||
## Quick Start | ||
@@ -113,6 +109,2 @@ | ||
.numeric() | ||
.required(), | ||
fav_animals: Joi.array() | ||
.inList(['dog', 'cat', 'lion', 'tiger', 'elephant', 'hippo'], 'animals') | ||
.required() | ||
@@ -153,5 +145,2 @@ }); | ||
* must contain only numeric characters | ||
* `fav_animals` | ||
* a required array | ||
* must be one of [dog, cat, lion, tiger, elephant, hippo] | ||
@@ -158,0 +147,0 @@ #### Sanitize |
18651
8
315
174
Updated@hapi/joi@^17.1.1