diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8837797 --- /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-LODASH-450202: + - trailpack-hapi > lodash: + patched: '2019-07-04T06:59:13.059Z' diff --git a/package.json b/package.json index a5adcf6..b74036a 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "trailpack-router": "v2-latest", "trails": "v2-latest", "trails-service": "^2.0.0", - "winston": "^2.3" + "winston": "^2.3", + "snyk": "^1.189.0" }, "devDependencies": { "eslint": "^2.11", @@ -29,7 +30,9 @@ "supertest": "^1.2" }, "scripts": { - "test": "eslint . && mocha" + "test": "eslint . && mocha", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": ">= 4.0.0" @@ -38,5 +41,6 @@ "extends": "trails" }, "repository": "git@github.com:Code4HR/hrt-bus-finder-ssr.git", - "license": "MIT" + "license": "MIT", + "snyk": true }