From a69764f10cad697e38e72ad7c866e93e9109ab0d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 16:28:18 +0800 Subject: [PATCH 1/2] fix: package.json & .snyk 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 9d2aaab..b2a98b9 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,9 @@ ], "scripts": { "test": "jest", - "lint": "./node_modules/.bin/eslint ./" + "lint": "./node_modules/.bin/eslint ./", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bin": { "softest": "./index.js" @@ -35,10 +37,12 @@ "pug": "^2.0.4", "puppeteer": "^1.19.0", "typescript": "^3.5.3", - "ws": "^7.1.1" + "ws": "^7.1.1", + "snyk": "^1.316.1" }, "devDependencies": { "eslint": "^6.1.0", "jest": "^24.8.0" - } + }, + "snyk": true } \ No newline at end of file From bc7e7d6e6088b84e65e212f10f238cdc3cb7e580 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 16:28:19 +0800 Subject: [PATCH 2/2] 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..726c922 --- /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-01T08:28:16.562Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-05-01T08:28:16.562Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-05-01T08:28:16.562Z'