From b6bac523483bbbc33a3b275ffe23cd3c039715d4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 20:53:04 -0700 Subject: [PATCH 1/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..dd3caef --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-05-01T03:53:02.691Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-05-01T03:53:02.691Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-05-01T03:53:02.691Z' From 60c7bca49bfd0397a91b43822f1e4b803d8d23f3 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 20:53:05 -0700 Subject: [PATCH 2/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 465736a..da6880a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "private": true, "scripts": { "start": "node ./bin/www", - "test": "echo ok" + "test": "echo ok", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { "body-parser": "~1.18.3", @@ -15,10 +17,12 @@ "pug": "^2.0.0-rc.2", "serve-favicon": "~2.5.0", "shortid": "^2.2.8", - "socket.io": "^2.0.3" + "socket.io": "^2.0.3", + "snyk": "^1.316.1" }, "description": "Collaborative online notepad", "main": "app.js", "author": "Peter Cunha", - "license": "MIT" + "license": "MIT", + "snyk": true }