diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..2611a97 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tunnel-agent:20170305': + - codeclimate-test-reporter > request > tunnel-agent: + patched: '2018-07-02T02:02:56.098Z' diff --git a/package.json b/package.json index 2d8e20b..bb2b063 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "migrate": "node scripts/migrate.js", "test": "npm run db:create && npm run migrate && node ./tests/runner.js && npm run db:drop", "cov": "npm run db:create && npm run migrate && node_modules/.bin/istanbul cover ./tests/runner.js && npm run db:drop", - "dev:test": "nodemon ./tests/index.js" + "dev:test": "nodemon ./tests/index.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -27,9 +29,11 @@ "pg": "^6.1.2", "shot": "^3.4.0", "tape": "^4.6.3", - "url-parse": "^1.1.8" + "url-parse": "^1.1.8", + "snyk": "^1.88.0" }, "devDependencies": { "istanbul": "^0.4.5" - } + }, + "snyk": true }