From 6ba62bcdccfab7a5906f5bebb46ad93a815fa3d4 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 05:47:15 +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 | 10 ++++++++++ package.json | 10 ++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..77153a171 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - react-native-easy-grid > lodash: + patched: '2019-07-04T05:47:13.589Z' + - react-native-vector-icons > lodash: + patched: '2019-07-04T05:47:13.589Z' diff --git a/package.json b/package.json index b0e6933ed..68c84533d 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "react-native-checkbox": "~1.0.8", "react-native-easy-grid": "0.1.5", "react-native-keyboard-aware-scroll-view": "0.2.0", - "react-native-vector-icons": "2.x.x" + "react-native-vector-icons": "2.x.x", + "snyk": "^1.189.0" }, "peerDependencies": { "react-native": ">=0.26.0", @@ -50,5 +51,10 @@ "bugs": { "url": "https://github.com/GeekyAnts/NativeBase/issues" }, - "homepage": "https://github.com/GeekyAnts/NativeBase#readme" + "homepage": "https://github.com/GeekyAnts/NativeBase#readme", + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }