From 450d0a1e81556aa2fb9b8aa5b90f6d9124af1d9a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 23 Sep 2022 00:02:04 +0000 Subject: [PATCH 1/2] Bump joi from 17.6.0 to 17.6.1 Bumps [joi](https://github.com/hapijs/joi) from 17.6.0 to 17.6.1. - [Release notes](https://github.com/hapijs/joi/releases) - [Commits](https://github.com/hapijs/joi/compare/v17.6.0...v17.6.1) --- updated-dependencies: - dependency-name: joi dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 663a9e2b7..1953bd587 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "deepmerge": "4.2.2", "escape-string-regexp": "4.0.0", "ignore": "5.2.0", - "joi": "17.6.0", + "joi": "17.6.1", "lodash": "4.17.21", "probot": "12.2.5", "regex-parser": "2.2.11", diff --git a/yarn.lock b/yarn.lock index 418997bee..9a675d8dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3030,10 +3030,10 @@ jmespath@^0.15.0: resolved "https://registry.yarnpkg.com/jmespath/-/jmespath-0.15.0.tgz#a3f222a9aae9f966f5d27c796510e28091764217" integrity sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc= -joi@17.6.0, joi@^17.4.0: - version "17.6.0" - resolved "https://registry.yarnpkg.com/joi/-/joi-17.6.0.tgz#0bb54f2f006c09a96e75ce687957bd04290054b2" - integrity sha512-OX5dG6DTbcr/kbMFj0KGYxuew69HPcAE3K/sZpEV2nP6e/j/C0HV+HNiBPCASxdx5T7DMoa0s8UeHWMnb6n2zw== +joi@17.6.1, joi@^17.4.0: + version "17.6.1" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.6.1.tgz#e77422f277091711599634ac39a409e599d7bdaa" + integrity sha512-Hl7/iBklIX345OCM1TiFSCZRVaAOLDGlWCp0Df2vWYgBgjkezaR7Kvm3joBciBHQjZj5sxXs859r6eqsRSlG8w== dependencies: "@hapi/hoek" "^9.0.0" "@hapi/topo" "^5.0.0" From 25016e357270a2c0be6ae12782f43b4fdd1ee0d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 23 Sep 2022 00:02:43 +0000 Subject: [PATCH 2/2] Apply dist/index.js changes --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3a7a29a98..a0fd7af29 100644 --- a/dist/index.js +++ b/dist/index.js @@ -70678,7 +70678,7 @@ internals.methods = { internals.assert = function (value, schema, annotate, args /* [message], [options] */) { 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 || {})); let error = result.error; @@ -144275,7 +144275,7 @@ module.exports = JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15","> /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"joi","description":"Object schema validation","version":"17.6.0","repository":"git://github.com/sideway/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.0.0","@hapi/topo":"^5.0.0","@sideway/address":"^4.1.3","@sideway/formula":"^3.0.0","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"24.x.x","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause"}'); +module.exports = JSON.parse('{"name":"joi","description":"Object schema validation","version":"17.6.1","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.0.0","@hapi/topo":"^5.0.0","@sideway/address":"^4.1.3","@sideway/formula":"^3.0.0","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.0.1","@types/node":"^14.18.24","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause"}'); /***/ }),