From e2781b68143e1921a9ab249862f8218728081fd0 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 08:54:12 +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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7ded6cf93..217e5f9a1 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,9 @@ "scripts": { "preinstall": "node ./scripts/download-mapbox-gl-native-ios-if-on-mac.js 3.5.4", "test": "npm run lint", - "lint": "eslint --no-eslintrc -c .eslintrc index.js example.js" + "lint": "eslint --no-eslintrc -c .eslintrc index.js example.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "babel-eslint": "^6.1.2", @@ -35,11 +37,13 @@ }, "dependencies": { "babel-eslint": "^6.1.2", - "lodash": "^4.13.1" + "lodash": "^4.13.1", + "snyk": "^1.316.1" }, "peerDependencies": { "react": ">=15.4.0", "react-native": ">=0.44.3", "prop-types": ">=15.5.8" - } + }, + "snyk": true } From 43019e6da751e2d6bab12b264deb4b8b016deb45 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 08:54:13 +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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..0e4f0990d --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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-01T06:54:10.216Z' + - babel-eslint > babel-types > lodash: + patched: '2020-05-01T06:54:10.216Z' + - babel-eslint > babel-traverse > lodash: + patched: '2020-05-01T06:54:10.216Z' + - babel-eslint > babel-traverse > babel-types > lodash: + patched: '2020-05-01T06:54:10.216Z'