diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1eb9735 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - standard > eslint > lodash: + patched: '2019-07-07T00:02:15.443Z' + - standard > eslint > inquirer > lodash: + patched: '2019-07-07T00:02:15.443Z' + - standard > eslint > table > lodash: + patched: '2019-07-07T00:02:15.443Z' diff --git a/package.json b/package.json index f4436da..143ff62 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "2.1.5", "description": "A simple command line prompt enhancer that shows the state of the current git repo (ps1)", "scripts": { - "test": "standard" + "test": "standard", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bin": { "git-ps1": "bin/git-ps1" @@ -13,7 +15,8 @@ "url": "https://github.com/watson/git-ps1.git" }, "dependencies": { - "git-state": "^3.0.0" + "git-state": "^3.0.0", + "snyk": "^1.192.3" }, "devDependencies": { "standard": "^8.1.0" @@ -46,5 +49,6 @@ "coordinates": [ 41.3264437, -72.9186525 - ] + ], + "snyk": true }