diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4d38ea2 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.10.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:uglify-js:20151024': + - jade > transformers > uglify-js: + patched: '2018-01-18T00:31:13.271Z' diff --git a/package.json b/package.json index 6aad1e1..77828d3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "main": "app.js", "private": true, "scripts": { - "start": "node bin/www" + "start": "node bin/www", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "async": "^1.5.0", @@ -37,7 +39,8 @@ "morgan": "^1.6.1", "multer": "^1.1.0", "pug": "^2.0.0-beta5", - "serve-favicon": "~2.3.0" + "serve-favicon": "~2.3.0", + "snyk": "^1.68.1" }, "devDependencies": { "browser-sync": "^2.10.1", @@ -49,5 +52,6 @@ "gulp-load-plugins": "^1.1.0", "gulp-plumber": "^1.0.1", "gulp-rename": "^1.2.2" - } + }, + "snyk": true }