diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d6f3f04 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:mime:20170907': + - react-native > connect > serve-static > send > mime: + patched: '2018-06-26T07:27:00.677Z' diff --git a/package.json b/package.json index 71a28ee..f7dc684 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,9 @@ "eject": "react-native-scripts eject", "android": "react-native-scripts android", "ios": "react-native-scripts ios", - "prepare": "node_modules_patches/apply.sh", - "test": "node_modules/.bin/jest" + "prepare": "npm run snyk-protect; node_modules_patches/apply.sh", + "test": "node_modules/.bin/jest", + "snyk-protect": "snyk protect" }, "jest": { "preset": "jest-expo" @@ -70,6 +71,8 @@ "sha.js": "2.4.10", "stream-browserify": "2.0.1", "timeago.js": "3.0.2", - "wif": "2.0.6" - } + "wif": "2.0.6", + "snyk": "^1.85.0" + }, + "snyk": true }