diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..66ad6c2 --- /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:16:13.624Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2019-07-03T22:16:13.624Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2019-07-03T22:16:13.624Z' diff --git a/package.json b/package.json index 00e1411..a01b876 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,9 @@ "nodemon": "nodemon --watch ./lib --watch app.js --watch ./lib/views --debug bin/www", "dev": "DEBUG=functions,routes npm-run-all --parallel watch-js watch-scss nodemon browser-sync", "build": "NODE_ENV=production npm-run-all --sequential build-js build-css", - "lint": "eslint --ext .js,.vue src test/unit" + "lint": "eslint --ext .js,.vue src test/unit", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "browserify": { "transform": [ @@ -67,7 +69,8 @@ "vue": "^1.0.24", "vue-router": "^0.7.13", "vuex": "^1.0.0-rc.2", - "yasgui-utils": "^1.6.0" + "yasgui-utils": "^1.6.0", + "snyk": "^1.189.0" }, "devDependencies": { "babel-core": "^6.8.0", @@ -94,5 +97,6 @@ "vueify": "^8.4.1", "vueify-insert-css": "^1.0.0", "watchify": "^3.4.0" - } + }, + "snyk": true }