From 3b586da0ade697b31b18b3fb64cf4f66ea67a6b2 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 4 Sep 2021 20:41:30 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-NODEFETCH-674311 - https://snyk.io/vuln/SNYK-JS-TRIMNEWLINES-1298042 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..13efcfe --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - react-native > yeoman-generator > html-wiring > cheerio > lodash: + patched: '2021-09-04T20:41:28.105Z' diff --git a/package.json b/package.json index b605ad8..6d68008 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,14 @@ "name": "DongerBoard", "version": "0.3.0", "scripts": { - "start": "node node_modules/react-native/local-cli/cli.js start" + "start": "node node_modules/react-native/local-cli/cli.js start", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "dependencies": { - "react": "15.0.2", - "react-native": "0.26.1" - } + "react": "16.5.0", + "react-native": "0.64.0", + "@snyk/protect": "latest" + }, + "snyk": true }