From 2faf1ca78290bca1b2d45982ed1c5e7ca0a5783b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 17 May 2022 20:17:03 +0000 Subject: [PATCH] fix: index/package.json, index/package-lock.json & index/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- index/.snyk | 8 ++++++++ index/package-lock.json | 5 +++++ index/package.json | 10 +++++++--- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 index/.snyk diff --git a/index/.snyk b/index/.snyk new file mode 100644 index 0000000..7e19c4a --- /dev/null +++ b/index/.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: + - request-promise > request-promise-core > lodash: + patched: '2022-05-17T20:16:59.704Z' diff --git a/index/package-lock.json b/index/package-lock.json index bc72898..c5004cf 100644 --- a/index/package-lock.json +++ b/index/package-lock.json @@ -4,6 +4,11 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@snyk/protect": { + "version": "1.931.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.931.0.tgz", + "integrity": "sha512-FNgtMWsAbQGpmAw8UX+HOfLcGupXEGDDKWYMQRlgZYy+DIPHb4WUYw6unt1bJCupMC/FS2rXVqqRgCMhoVgcfA==" + }, "ajv": { "version": "6.12.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz", diff --git a/index/package.json b/index/package.json index 2e8712e..1a9df4b 100644 --- a/index/package.json +++ b/index/package.json @@ -4,12 +4,16 @@ "description": "this is for demo of webhook listener", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "author": "", "license": "MIT", "dependencies": { "request": "^2.88.2", - "request-promise": "^4.2.5" - } + "request-promise": "^4.2.5", + "@snyk/protect": "latest" + }, + "snyk": true }