diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..80cac70 --- /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': + - winston-loggly > loggly > request > tunnel-agent: + patched: '2018-06-25T22:28:12.155Z' diff --git a/package.json b/package.json index 9f00481..02e1294 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "src", "scripts": { "start": "node src", - "start:dev": "nodemon -- --inspect src" + "start:dev": "nodemon -- --inspect src", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "engines": { "node": ">=6.3" @@ -32,7 +34,8 @@ "m2m-status": "^1.0.0", "raven": "^2.0.0", "winston": "^2.2.0", - "winston-loggly": "^1.3.1" + "winston-loggly": "^1.3.1", + "snyk": "^1.85.0" }, "devDependencies": { "eslint": "4.19.1", @@ -63,5 +66,6 @@ "always" ] } - } + }, + "snyk": true }