From 0474c39deef68a163d8343d762c94b3f717c1449 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 26 Jun 2018 07:27:02 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:mime:20170907 --- .snyk | 8 ++++++++ package.json | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .snyk 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 }