From fbf1ce07c91b00894d35fd717c9ae2127bc96b3c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 18 May 2022 00:31:44 +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..5911c95 --- /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/datasync-manager > lodash': + patched: '2022-05-18T00:31:43.230Z' diff --git a/package.json b/package.json index 0583805..2716161 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,17 @@ "scripts": { "continue": "node index.js", "start": "npm run clean && node index.js", - "clean": "rimraf .ledger .token .checkpoint unprocessible/" + "clean": "rimraf .ledger .token .checkpoint unprocessible/", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "dependencies": { "@contentstack/datasync-asset-store-filesystem": "1.0.0", "@contentstack/datasync-content-store-filesystem": "1.0.1", "@contentstack/datasync-content-store-mongodb": "1.0.1", "@contentstack/webhook-listener": "1.0.0", - "@contentstack/datasync-manager": "1.2.0" + "@contentstack/datasync-manager": "1.2.0", + "@snyk/protect": "latest" }, "devDependencies": { "eslint": "^6.1.0", @@ -24,5 +27,6 @@ "url": "https://github.com/contentstack/datasync-boilerplate" }, "author": "Contentstack LLC ", - "license": "MIT" + "license": "MIT", + "snyk": true }