diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..457bfa3 --- /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: + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2019-07-03T22:29:27.531Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2019-07-03T22:29:27.531Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2019-07-03T22:29:27.531Z' diff --git a/package.json b/package.json index e5a8418..2c8415c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "kill": "docker kill driver-twitter", "attach": "docker attach driver-twitter", "shell": "docker run -i -t databox/driver-twitter /bin/bash", - "local": "docker run -i -t databox/driver-twitter" + "local": "docker run -i -t databox/driver-twitter", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -41,11 +43,13 @@ "node-databox": "^0.9.0", "oauth": "^0.9.15", "pug": "^2.0.3", - "twit": "^2.2.10" + "twit": "^2.2.10", + "snyk": "^1.189.0" }, "devDependencies": { "assert": "^1.4.1", "mocha": "^5.2.0", "supertest": "^3.1.0" - } + }, + "snyk": true }