diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7afaa77 --- /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: + - codecov > teeny-request > https-proxy-agent: + patched: '2019-10-03T22:03:35.310Z' diff --git a/package.json b/package.json index c6d5424..53c6735 100644 --- a/package.json +++ b/package.json @@ -9,15 +9,19 @@ "start": "node index.js", "lint": "eslint */**.js", "test": "nyc mocha", - "report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov" + "report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "codecov": "^3.1.0", "mocha": "^5.2.0", "nyc": "^13.1.0", - "request": "^2.46.0" + "request": "^2.46.0", + "snyk": "^1.230.5" }, "devDependencies": { "eslint": "5.5.0" - } + }, + "snyk": true }