From d7867eafdfe13c8b15ff84683c548687c831bfd6 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 6 Oct 2022 16:26:02 +0000 Subject: [PATCH] fix: package.json, package-lock.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 8 ++++++++ package-lock.json | 5 +++++ package.json | 10 +++++++--- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..859dcb3 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - surge > inquirer > lodash: + patched: '2022-10-06T16:25:52.799Z' diff --git a/package-lock.json b/package-lock.json index a03c1a0..c0e2fbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1760,6 +1760,11 @@ "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", "dev": true }, + "@snyk/protect": { + "version": "1.1024.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.1024.0.tgz", + "integrity": "sha512-x73h7YS8MWLTOyBPCOhnipqseS3CNavjGvpg3VRqpEGdbHh2bhW2X6K03ZXQobGWXo6jAuG7Aey+Ad6iuY9qKw==" + }, "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", diff --git a/package.json b/package.json index 537b8c2..5a2c04d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "lint": "eslint . --fix", "format": "prettier-standard '{src,test}/**/*.js'", "test": "nyc mocha test", - "semantic-release": "semantic-release" + "semantic-release": "semantic-release", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "engines": { "node": ">=10" @@ -34,7 +36,8 @@ "aggregate-error": "^3.0.0", "execa": "^4.0.0", "read-pkg": "^5.2.0", - "surge": "^0.23.0" + "surge": "^0.23.0", + "@snyk/protect": "latest" }, "devDependencies": { "@commitlint/cli": "9.1.2", @@ -110,5 +113,6 @@ }, "nyc": { "extends": "nyc-config-common" - } + }, + "snyk": true }