From fb24c5f2f41a54c3f878676b8a2d862565bfa15d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 18 May 2022 07:03:54 +0000 Subject: [PATCH] fix: package.json, package-lock.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-lock.json | 5 +++++ package.json | 10 +++++++--- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ee5ac12 --- /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: + - request-promise > request-promise-core > lodash: + patched: '2022-05-18T07:03:50.459Z' diff --git a/package-lock.json b/package-lock.json index 21d03c4..1c5eae7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,11 @@ "js-tokens": "^4.0.0" } }, + "@snyk/protect": { + "version": "1.931.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.931.0.tgz", + "integrity": "sha512-FNgtMWsAbQGpmAw8UX+HOfLcGupXEGDDKWYMQRlgZYy+DIPHb4WUYw6unt1bJCupMC/FS2rXVqqRgCMhoVgcfA==" + }, "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", diff --git a/package.json b/package.json index d69a52e..22d7467 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,14 @@ "license": "ISC", "dependencies": { "request": "2.88.0", - "request-promise": "4.2.4" + "request-promise": "4.2.4", + "@snyk/protect": "latest" }, "scripts": { "lint": "./node_modules/.bin/eslint index.js *.js --fix", - "build": "rm -rf node_modules index.zip && npm install --production && zip -r index.zip *" + "build": "rm -rf node_modules index.zip && npm install --production && zip -r index.zip *", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "devDependencies": { "dotenv": "8.1.0", @@ -24,5 +27,6 @@ "eslint-plugin-standard": "4.0.1", "serverless-add-api-key": "4.0.2", "serverless-plugin-scripts": "1.0.2" - } + }, + "snyk": true }