From dab649be45de0e65f8562669308c70fbc1eb88c6 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 4 Sep 2021 06:02:52 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..313c15e --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - yeoman-generator > html-wiring > cheerio > lodash: + patched: '2021-09-04T06:02:50.990Z' diff --git a/package.json b/package.json index c7f0acc..d662d96 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "lodash": "^4.17.2", "react-router-redux": "^5.0.0-alpha.9", "yeoman-generator": "^0.23.4", - "yosay": "^1.0.0" + "yosay": "^1.0.0", + "@snyk/protect": "latest" }, "devDependencies": { "eslint": "^3.1.1", @@ -39,7 +40,10 @@ "scripts": { "publish-patch": "node ./bin/publish patch && npm publish", "publish-minor": "node ./bin/publish minor && npm publish", - "publish-major": "node ./bin/publish major && npm publish" + "publish-major": "node ./bin/publish major && npm publish", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, - "license": "ISC" + "license": "ISC", + "snyk": true } \ No newline at end of file