diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..fd2b678 --- /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: + - speedtest-net > https-proxy-agent: + patched: '2019-10-04T04:10:57.387Z' diff --git a/package.json b/package.json index 66a9eb8..0e0726d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "speedo": "./cli.js" }, "scripts": { - "test": "xo && ava" + "test": "xo && ava", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "speedo-cli", @@ -34,11 +36,13 @@ "cli-table3": "^0.5.1", "meow": "^5.0.0", "ora": "^3.2.0", - "speedtest-net": "^1.5.1" + "speedtest-net": "^1.5.1", + "snyk": "^1.230.5" }, "devDependencies": { "ava": "*", "execa": "*", "xo": "*" - } + }, + "snyk": true }