From 0bb4dc80ee9469eaa7e9d8a4edb5f94ee6eea59e Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 06:29:19 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .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..5c73b96 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - winston > async > lodash: + patched: '2019-07-04T06:29:17.817Z' diff --git a/package.json b/package.json index f4ea3e5..e25d83e 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "react-dom": "16.8.1", "react-helmet": "5.2.0", "react-router-dom": "4.3.1", - "winston": "3.2.1" + "winston": "3.2.1", + "snyk": "^1.189.0" }, "devDependencies": { "@babel/cli": "7.2.3", @@ -93,7 +94,9 @@ "start:prod": "node build/server/main.js", "test": "nps test", "postinstall": "nps postinstall", - "help": "nps help" + "help": "nps help", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "config": { "cz-emoji": { @@ -117,5 +120,6 @@ "bugs": { "url": "https://github.com/TGRstack/typescript-graphql-react-app-express/issues" }, - "homepage": "https://github.com/TGRstack/typescript-graphql-react-app-express#readme" + "homepage": "https://github.com/TGRstack/typescript-graphql-react-app-express#readme", + "snyk": true }