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

joi

Package Overview
Dependencies
Maintainers
6
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 17.6.0 to 17.6.1

2

lib/index.js

@@ -224,3 +224,3 @@ 'use strict';

const message = args[0] instanceof Error || typeof args[0] === 'string' ? args[0] : null;
const options = message ? args[1] : args[0];
const options = message !== null ? args[1] : args[0];
const result = schema.validate(value, Common.preferences({ errors: { stack: true } }, options || {}));

@@ -227,0 +227,0 @@

@@ -1,3 +0,4 @@

Copyright (c) 2012-2020, Sideway. Inc, and project contributors.<br>
Copyright (c) 2012-2014, Walmart.<br>
Copyright (c) 2012-2022, Project contributors.
Copyright (c) 2012-2022, Sideway. Inc.
Copyright (c) 2012-2014, Walmart.
All rights reserved.

@@ -4,0 +5,0 @@

{
"name": "joi",
"description": "Object schema validation",
"version": "17.6.0",
"repository": "git://github.com/sideway/joi",
"version": "17.6.1",
"repository": "git://github.com/hapijs/joi",
"main": "lib/index.js",

@@ -28,3 +28,4 @@ "types": "lib/index.d.ts",

"@hapi/joi-legacy-test": "npm:@hapi/joi@15.x.x",
"@hapi/lab": "24.x.x",
"@hapi/lab": "^25.0.1",
"@types/node": "^14.18.24",
"typescript": "4.3.x"

@@ -31,0 +32,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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