diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..9f22d69 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - request-promise > request-promise-core > lodash: + patched: '2020-05-06T00:31:43.560Z' diff --git a/package.json b/package.json index 150e9c8..9be4bd4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "example": "micro example.js", - "test": "xo" + "test": "xo", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "repository": { "type": "git", @@ -27,10 +29,12 @@ "micro-redirect": "^1.0.0", "request": "^2.83.0", "request-promise": "^4.2.2", - "uuid": "^3.2.1" + "uuid": "^3.2.1", + "snyk": "^1.319.0" }, "xo": { "spaces": 2, "extends": "prettier" - } + }, + "snyk": true }