diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ec622cd --- /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 > lodash: + patched: '2020-05-02T03:45:18.721Z' diff --git a/package.json b/package.json index c760b9c..41be3db 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "q": "^1.4.1", "request": "^2.67.0", "request-promise": "^2.0.0", - "string-stream": "0.0.7" + "string-stream": "0.0.7", + "snyk": "^1.316.2" }, "homepage": "https://github.com/djadmin/medium-cli#readme", "bugs": { @@ -41,5 +42,10 @@ "license": "MIT", "bin": { "medium": "index.js" - } + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" + }, + "snyk": true }