From 76e18702873bf3fc4c3a433422b7e04d91de350d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 4 Oct 2019 08:28:55 +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-HTTPSPROXYAGENT-469131 --- .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..398fe14 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-HTTPSPROXYAGENT-469131: + - puppeteer > https-proxy-agent: + patched: '2019-10-04T08:28:52.668Z' diff --git a/package.json b/package.json index 9d2aaab..1a75f12 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.230.5" }, "devDependencies": { "eslint": "^6.1.0", "jest": "^24.8.0" - } + }, + "snyk": true } \ No newline at end of file