From aa89a0458e1475e462ccc82921a901b4bb9ed8e7 Mon Sep 17 00:00:00 2001 From: TobenderZephyr Date: Thu, 23 Dec 2021 10:06:36 +0100 Subject: [PATCH] security audit (#123) Co-authored-by: Marcus Netz --- package-lock.json | 26 ++++++++------------------ package.json | 5 +++++ 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7104cc6..3f0f82b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,6 +6,7 @@ "packages": { "": { "version": "1.6.5", + "hasInstallScript": true, "license": "ISC", "dependencies": { "discord.js": "^12.5.3", @@ -4791,9 +4792,7 @@ } }, "node_modules/normalize-url": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", - "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", + "version": ">=4.5.1", "engines": { "node": ">=8" } @@ -5056,9 +5055,7 @@ } }, "node_modules/path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "version": ">=1.0.7", "dev": true }, "node_modules/picomatch": { @@ -6647,8 +6644,7 @@ }, "dependencies": { "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "version": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, @@ -9903,9 +9899,7 @@ "dev": true }, "normalize-url": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", - "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==" + "version": ">=4.5.1" }, "npm-run-path": { "version": "4.0.1", @@ -10093,9 +10087,7 @@ "dev": true }, "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "version": ">=1.0.7", "dev": true }, "picomatch": { @@ -10141,8 +10133,7 @@ } }, "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "version": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { @@ -10160,8 +10151,7 @@ } }, "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "version": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true } diff --git a/package.json b/package.json index 690921d..e9aeb4c 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "lint": "eslint commands/", + "preinstall": "npx npm-force-resolutions", "start": "node index.js", "test": "jest --collectCoverage" }, @@ -52,5 +53,9 @@ "/__mocks__/" ], "coverageDirectory": "coverage" + }, + "resolutions": { + "normalize-url": ">=4.5.1", + "path-parse": ">=1.0.7" } }