From f81dd510b66fd51ee587f7c6c7e67c8f99811b85 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 26 Mar 2022 16:05:09 +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 0000000..d133578 --- /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: + - oc-template-react-compiler > lodash: + patched: '2022-03-26T16:05:07.182Z' diff --git a/package.json b/package.json index 68b84e0..89af30f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "updated": "lerna updated", "test": "jest", "publish": "lerna publish --exact", - "precommit": "lint-staged" + "precommit": "lint-staged", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "lint-staged": { "*.js": [ @@ -43,6 +45,8 @@ }, "dependencies": { "normalize.css": "8.0.1", - "oc-template-react-compiler": "^5.1.10" - } + "oc-template-react-compiler": "^5.1.10", + "@snyk/protect": "latest" + }, + "snyk": true }