From 88136bc8c3be68f63166b33009984dfb3306e596 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 5 Nov 2022 05:54:39 +0000 Subject: [PATCH] fix: examples/with-react-relay-network-modern/package.json & examples/with-react-relay-network-modern/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- examples/with-react-relay-network-modern/.snyk | 8 ++++++++ examples/with-react-relay-network-modern/package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 examples/with-react-relay-network-modern/.snyk diff --git a/examples/with-react-relay-network-modern/.snyk b/examples/with-react-relay-network-modern/.snyk new file mode 100644 index 0000000000000..096832638396c --- /dev/null +++ b/examples/with-react-relay-network-modern/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - graphql-cli > graphql-cli-prepare > lodash: + patched: '2022-11-05T05:54:36.782Z' diff --git a/examples/with-react-relay-network-modern/package.json b/examples/with-react-relay-network-modern/package.json index 32695eafc3236..921f2e7de5f56 100644 --- a/examples/with-react-relay-network-modern/package.json +++ b/examples/with-react-relay-network-modern/package.json @@ -7,7 +7,9 @@ "build": "next build", "start": "next start", "relay": "relay-compiler --src ./ --exclude '**/.next/**' '**/node_modules/**' '**/test/**' '**/__generated__/**' --exclude '**/schema/**' --schema ./schema/schema.graphql --artifactDirectory __generated__", - "schema": "graphql get-schema -e dev" + "schema": "graphql get-schema -e dev", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "author": "", "license": "MIT", @@ -19,11 +21,13 @@ "react-relay": "^9.0.0", "react-relay-network-modern": "^4.5.0", "react-relay-network-modern-ssr": "^1.4.0", - "relay-hooks": "3.5.2" + "relay-hooks": "3.5.2", + "@snyk/protect": "latest" }, "devDependencies": { "babel-plugin-relay": "^9.0.0", "graphql-cli": "^3.0.11", "relay-compiler": "^9.0.0" - } + }, + "snyk": true }