diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..96fea57 --- /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:lodash:20180130': + - sails-mongo > waterline-cursor > lodash: + patched: '2018-07-06T08:19:28.717Z' diff --git a/package.json b/package.json index d621a02..2040499 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -30,7 +32,9 @@ "koa-morgan": "^1.0.1", "mysql": "^2.13.0", "sails-mongo": "^0.12.2", - "sails-mysql": "^0.11.5", - "waterline": "^0.11.11" - } + "sails-mysql": "^1.0.0", + "waterline": "^0.13.1", + "snyk": "^1.88.1" + }, + "snyk": true }