From da29d8b1fd4629ff0352201a7844bf7d598c6b1c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 17 May 2022 20:38:52 +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 | 20 ++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f4c0eb6 --- /dev/null +++ b/.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: + - contentstack-express > lodash: + patched: '2022-05-17T20:38:50.364Z' diff --git a/package.json b/package.json index 069cc56..31ef305 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,14 @@ { - "name": "corporate-theme", - "version": "0.0.1", - "dependencies": { - "contentstack-express": "^3.0.0" - }, - "scripts": { - "start": "node app.js" - } + "name": "corporate-theme", + "version": "0.0.1", + "dependencies": { + "contentstack-express": "^3.0.0", + "@snyk/protect": "latest" + }, + "scripts": { + "start": "node app.js", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }