From cb28cffbf1bd9e5076b22923da3bb4387b36d20b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 21 Mar 2022 14:07:50 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..633e061cb6 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.22.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - antd > @ant-design/react-slick > lodash: + patched: '2022-03-21T14:07:46.376Z' diff --git a/package.json b/package.json index b90699101b..c30ee13b12 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,9 @@ "test:watch": "jest --watch", "cypress": "node client/cypress/cypress.js", "preinstall": "cd viz-lib && yarn link --link-folder ../.yarn", - "postinstall": "(cd viz-lib && yarn --frozen-lockfile && yarn build:babel) && yarn link --link-folder ./.yarn @redash/viz" + "postinstall": "(cd viz-lib && yarn --frozen-lockfile && yarn build:babel) && yarn link --link-folder ./.yarn @redash/viz", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -77,7 +79,8 @@ "sql-formatter": "git+https://github.com/getredash/sql-formatter.git", "universal-router": "^8.3.0", "use-debounce": "^3.1.0", - "use-media": "^1.4.0" + "use-media": "^1.4.0", + "@snyk/protect": "latest" }, "devDependencies": { "@babel/cli": "^7.10.4", @@ -194,5 +197,6 @@ "and_ff >= 64", "and_uc >= 11.8", "samsung >= 6.2" - ] + ], + "snyk": true }