diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..2f7a278 --- /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: + - lodash: + patched: '2020-05-02T00:34:38.766Z' diff --git a/package.json b/package.json index a64ac2d..1b791a1 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,9 @@ ], "preferGlobal": true, "scripts": { - "prepublish": "coffee -o lib -c src/index.coffee", - "test": "echo \"no test specified\" && exit 0" + "prepublish": "npm run snyk-protect && coffee -o lib -c src/index.coffee", + "test": "echo \"no test specified\" && exit 0", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -43,6 +44,8 @@ "bower": "1.8.8", "lodash": "^4.17.4", "semver": "^5.3.0", - "text-table": "^0.2.0" - } + "text-table": "^0.2.0", + "snyk": "^1.316.2" + }, + "snyk": true }