From d1594b8278dd190f3b33248731a2a9275b4938b5 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 28 Mar 2023 16:19:20 +0500 Subject: [PATCH] Node 18+ --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- scripts/verify-config.js | 6 +++--- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index bc8dbdfd..cadadbe4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@discordjs/voice": "^0.15.0", "btoa": "^1.2.1", "canvacord": "^5.1.0", - "canvas": "^2.9.0", + "canvas": "^2.10.2", "chalk": "^4.1.2", "cron": "^2.1.0", "discord-api-types": "^0.37.36", @@ -1087,13 +1087,13 @@ } }, "node_modules/canvas": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.9.3.tgz", - "integrity": "sha512-WOUM7ghii5TV2rbhaZkh1youv/vW1/Canev6Yx6BG2W+1S07w8jKZqKkPnbiPpQEDsnJdN8ouDd7OvQEGXDcUw==", + "version": "2.10.2", + "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.10.2.tgz", + "integrity": "sha512-FSmlsip0nZ0U4Zcfht0qBJqDhlfGuevTZKE8h+dBOYrJjGvY3iqMGSzzbvkaFhvMXiVxfcMaPHS/kge++T5SKg==", "hasInstallScript": true, "dependencies": { "@mapbox/node-pre-gyp": "^1.0.0", - "nan": "^2.15.0", + "nan": "^2.17.0", "simple-get": "^3.0.3" }, "engines": { @@ -3142,9 +3142,9 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, "node_modules/nan": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.16.0.tgz", - "integrity": "sha512-UdAqHyFngu7TfQKsCBgAA6pWDkT8MAO7d0jyOecVhN5354xbLqdn8mV9Tat9gepAupm0bt2DbeaSC8vS52MuFA==" + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", + "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==" }, "node_modules/natural-compare": { "version": "1.4.0", @@ -5256,12 +5256,12 @@ } }, "canvas": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.9.3.tgz", - "integrity": "sha512-WOUM7ghii5TV2rbhaZkh1youv/vW1/Canev6Yx6BG2W+1S07w8jKZqKkPnbiPpQEDsnJdN8ouDd7OvQEGXDcUw==", + "version": "2.10.2", + "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.10.2.tgz", + "integrity": "sha512-FSmlsip0nZ0U4Zcfht0qBJqDhlfGuevTZKE8h+dBOYrJjGvY3iqMGSzzbvkaFhvMXiVxfcMaPHS/kge++T5SKg==", "requires": { "@mapbox/node-pre-gyp": "^1.0.0", - "nan": "^2.15.0", + "nan": "^2.17.0", "simple-get": "^3.0.3" } }, @@ -6789,9 +6789,9 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, "nan": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.16.0.tgz", - "integrity": "sha512-UdAqHyFngu7TfQKsCBgAA6pWDkT8MAO7d0jyOecVhN5354xbLqdn8mV9Tat9gepAupm0bt2DbeaSC8vS52MuFA==" + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", + "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==" }, "natural-compare": { "version": "1.4.0", diff --git a/package.json b/package.json index 16fd2638..e16a9ec7 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@discordjs/voice": "^0.15.0", "btoa": "^1.2.1", "canvacord": "^5.1.0", - "canvas": "^2.9.0", + "canvas": "^2.10.2", "chalk": "^4.1.2", "cron": "^2.1.0", "discord-api-types": "^0.37.36", diff --git a/scripts/verify-config.js b/scripts/verify-config.js index 2e5f6212..2d531328 100644 --- a/scripts/verify-config.js +++ b/scripts/verify-config.js @@ -11,10 +11,10 @@ const checks = [ () => { console.log("\n\nEnvironnement"); return new Promise(res => { - if (parseInt(process.version.split(".")[0].split("v")[1]) >= 12) { - success("node.js version equal or higher than v12"); + if (parseInt(process.version.split(".")[0].split("v")[1]) >= 18) { + success("node.js version equal or higher than v18"); } else { - error("node.js version should be equal or higher than v12"); + error("node.js version should be equal or higher than v18"); } res(); });