Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

joi-plus

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-plus - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

5

CHANGELOG.md
## 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 @@

3

index.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc