Comparing version 17.6.0 to 17.6.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
523718
9686
6