Socket
Socket
Sign inDemoInstall

joi

Package Overview
Dependencies
Maintainers
4
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi - npm Package Compare versions

Comparing version 14.0.4 to 14.0.5

0

lib/types/alternatives/index.js

@@ -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';

2

lib/types/number/index.js

@@ -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

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