diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..fddd8c7 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-05-07T01:54:05.606Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-05-07T01:54:05.606Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-05-07T01:54:05.606Z' diff --git a/package.json b/package.json index 4ab0177..1ff94e9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "private": true, "scripts": { "start": "DEBUG=httpgen:* PORT=5000 nodemon ./bin/www", - "test": "mocha test" + "test": "mocha test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "body-parser": "^1.19.0", @@ -18,12 +20,14 @@ "pug": "^2.0.4", "qr-image": "^3.2.0", "random-hex-color": "^1.0.1", - "serve-favicon": "^2.5.0" + "serve-favicon": "^2.5.0", + "snyk": "^1.319.1" }, "devDependencies": { "chai": "^4.2.0", "chai-match": "^1.1.1", "mocha": "^6.2.0", "supertest": "^4.0.2" - } + }, + "snyk": true }