From c19d4e8328f5e22151d1ef38618579fb05eecf61 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 6 May 2020 07:49:54 +0200 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a65f527..3315fc2 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ "scripts": { "lint": "eslint src/*.js", "test": "echo \"Error: no test specified\" && exit 1", - "prepare": "npm run build", - "build": "babel src --out-dir lib" + "prepare": "npm run snyk-protect && npm run build", + "build": "babel src --out-dir lib", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -20,7 +21,8 @@ }, "homepage": "https://github.com/LFBVR/camera.js#readme", "dependencies": { - "lodash": "^4.17.4" + "lodash": "^4.17.4", + "snyk": "^1.319.0" }, "devDependencies": { "babel-cli": "^6.24.1", @@ -33,5 +35,6 @@ "eslint-plugin-import": "^2.7.0", "eslint-plugin-jsx-a11y": "^5.1.1", "eslint-plugin-react": "^7.1.0" - } + }, + "snyk": true } From bf8d61de6da2033cd78d4658b2838a3b324c2c70 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 6 May 2020 07:49:55 +0200 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..30d9825 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - lodash: + patched: '2020-05-06T05:49:51.912Z'