From 533456ef973a553a6adb618e79beecafb8542a13 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 25 May 2024 00:51:33 +0000 Subject: [PATCH] fix: upgrade canvas from 2.9.1 to 2.11.2 Snyk has created this PR to upgrade canvas from 2.9.1 to 2.11.2. See this package in npm: canvas See this project in Snyk: https://app.snyk.io/org/josiyahthomas11/project/ba4408d8-2855-492b-aefb-165c060b4e44?utm_source=github&utm_medium=referral&page=upgrade-pr --- package-lock.json | 67 ++++++++++++----------------------------------- package.json | 2 +- 2 files changed, 18 insertions(+), 51 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3be7cb2..bf4e158 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "booru": "^2.6.3", "bufferutil": "^4.0.6", "canvacord": "^5.4.8", - "canvas": "^2.9.0", + "canvas": "^2.11.2", "captcha-canvas": "^3.1.0", "cheerio": "^1.0.0-rc.10", "colors": "^1.4.0", @@ -428,19 +428,6 @@ "npm": ">=7.0.0" } }, - "node_modules/@sapphire/shapeshift": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.7.1.tgz", - "integrity": "sha512-JmYN/0GW49Vl8Hi4PwrsDBNjcuCylH78vWYolVys74LRIzilAAMINxx4RHQOdvYoz+ceJKVp4+zBbQ5kuIFOLw==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "lodash.uniqwith": "^4.5.0" - }, - "engines": { - "node": ">=v14.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@sindresorhus/is": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", @@ -1043,13 +1030,14 @@ } }, "node_modules/canvas": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.9.1.tgz", - "integrity": "sha512-vSQti1uG/2gjv3x6QLOZw7TctfufaerTWbVe+NSduHxxLGB+qf3kFgQ6n66DSnuoINtVUjrLLIK2R+lxrBG07A==", + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.2.tgz", + "integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==", "hasInstallScript": true, + "license": "MIT", "dependencies": { "@mapbox/node-pre-gyp": "^1.0.0", - "nan": "^2.15.0", + "nan": "^2.17.0", "simple-get": "^3.0.3" }, "engines": { @@ -3392,9 +3380,10 @@ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" }, "node_modules/nan": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", - "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==" + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", + "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==", + "license": "MIT" }, "node_modules/napi-build-utils": { "version": "1.0.2", @@ -5583,14 +5572,6 @@ "engines": { "node": ">= 6" } - }, - "node_modules/zod": { - "version": "3.15.1", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.15.1.tgz", - "integrity": "sha512-WAdjcoOxa4S9oc/u7fTbC3CC7uVqptLLU0LKqS8RDBOrCXp2t5avM8BUfgNVZJymGWAx6SEUYxWPPoYuQ5rgwQ==", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } } }, "dependencies": { @@ -5818,15 +5799,6 @@ "lodash.uniqwith": "^4.5.0" } }, - "@sapphire/shapeshift": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.7.1.tgz", - "integrity": "sha512-JmYN/0GW49Vl8Hi4PwrsDBNjcuCylH78vWYolVys74LRIzilAAMINxx4RHQOdvYoz+ceJKVp4+zBbQ5kuIFOLw==", - "requires": { - "fast-deep-equal": "^3.1.3", - "lodash.uniqwith": "^4.5.0" - } - }, "@sindresorhus/is": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", @@ -6300,12 +6272,12 @@ } }, "canvas": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.9.1.tgz", - "integrity": "sha512-vSQti1uG/2gjv3x6QLOZw7TctfufaerTWbVe+NSduHxxLGB+qf3kFgQ6n66DSnuoINtVUjrLLIK2R+lxrBG07A==", + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.2.tgz", + "integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==", "requires": { "@mapbox/node-pre-gyp": "^1.0.0", - "nan": "^2.15.0", + "nan": "^2.17.0", "simple-get": "^3.0.3" } }, @@ -8083,9 +8055,9 @@ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" }, "nan": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", - "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==" + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", + "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==" }, "napi-build-utils": { "version": "1.0.2", @@ -9760,11 +9732,6 @@ "compress-commons": "^2.1.1", "readable-stream": "^3.4.0" } - }, - "zod": { - "version": "3.15.1", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.15.1.tgz", - "integrity": "sha512-WAdjcoOxa4S9oc/u7fTbC3CC7uVqptLLU0LKqS8RDBOrCXp2t5avM8BUfgNVZJymGWAx6SEUYxWPPoYuQ5rgwQ==" } } } diff --git a/package.json b/package.json index 65f51c7..cf2ce0b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "booru": "^2.6.3", "bufferutil": "^4.0.6", "canvacord": "^5.4.8", - "canvas": "^2.9.0", + "canvas": "^2.11.2", "captcha-canvas": "^3.1.0", "cheerio": "^1.0.0-rc.10", "colors": "^1.4.0",