From 89c349312ca376be0e3d49b8f08060b632e5930b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 07:45:50 +0530 Subject: [PATCH 1/2] fix: tutorial/10-immutable-redux-improvements/.snyk & tutorial/10-immutable-redux-improvements/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- tutorial/10-immutable-redux-improvements/.snyk | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tutorial/10-immutable-redux-improvements/.snyk diff --git a/tutorial/10-immutable-redux-improvements/.snyk b/tutorial/10-immutable-redux-improvements/.snyk new file mode 100644 index 00000000..cddc0092 --- /dev/null +++ b/tutorial/10-immutable-redux-improvements/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - react-redux > lodash: + patched: '2020-05-01T02:15:48.270Z' + - redux > lodash: + patched: '2020-05-01T02:15:48.270Z' + - redux-actions > lodash: + patched: '2020-05-01T02:15:48.270Z' From 0bb2525d052da4caa053df3cb87135b68e69b531 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 07:45:51 +0530 Subject: [PATCH 2/2] fix: tutorial/10-immutable-redux-improvements/.snyk & tutorial/10-immutable-redux-improvements/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- tutorial/10-immutable-redux-improvements/package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tutorial/10-immutable-redux-improvements/package.json b/tutorial/10-immutable-redux-improvements/package.json index 07df6498..023887bd 100644 --- a/tutorial/10-immutable-redux-improvements/package.json +++ b/tutorial/10-immutable-redux-improvements/package.json @@ -5,7 +5,9 @@ "scripts": { "start": "gulp", "test": "echo \"Error: no test specified\" && exit 1", - "tutorial-test": "gulp main" + "tutorial-test": "gulp main", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "eslintConfig": { "extends": "airbnb", @@ -42,7 +44,8 @@ "react-redux": "^4.4.5", "redux": "^3.6.0", "redux-actions": "^0.12.0", - "redux-immutable": "^3.0.8" + "redux-immutable": "^3.0.8", + "snyk": "^1.316.1" }, "devDependencies": { "babel-loader": "^6.2.5", @@ -61,5 +64,6 @@ }, "repository": "verekia/js-stack-from-scratch", "author": "Jonathan Verrecchia - @verekia", - "license": "MIT" + "license": "MIT", + "snyk": true }