diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c6ec2b2 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - rest-facade > superagent-proxy > proxy-agent > https-proxy-agent: + patched: '2019-10-08T04:11:04.158Z' + - rest-facade > superagent-proxy > proxy-agent > pac-proxy-agent > https-proxy-agent: + patched: '2019-10-08T04:11:04.158Z' diff --git a/package.json b/package.json index e0b85cd..a741392 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "start": "node app.js", - "test": "grunt" + "test": "grunt", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -28,13 +30,15 @@ "lodash": "^4.17.2", "path": "^0.12.7", "rest-facade": "^1.4.1", - "simple-data-vis": "^0.2.0" + "simple-data-vis": "^0.2.0", + "snyk": "^1.232.0" }, - "devDependencies": { + "devDependencies": { "grunt": "0.4.5", "grunt-cli": "0.1.13", "grunt-contrib-jshint": "0.12.0", "jshint": "2.8.0", "grunt-jscs": "2.8.0" - } + }, + "snyk": true }