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 }