diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..61b7976 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.8.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:moment:20170905': + - vue-chartjs > chart.js > moment: + patched: '2017-12-02T05:51:04.948Z' diff --git a/package.json b/package.json index 5e1e1e5..d48ac9d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "dev": "node build/dev-server.js", "build": "node build/build.js", - "lint": "eslint --ext .js,.vue src" + "lint": "eslint --ext .js,.vue src", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "axios": "^0.15.3", @@ -19,7 +21,8 @@ "vue-chartjs": "2.3.7", "vue-router": "^2.2.0", "vuedraggable": "2.8.6", - "vuex": "^2.1.2" + "vuex": "^2.1.2", + "snyk": "^1.53.0" }, "devDependencies": { "autoprefixer": "^6.7.2", @@ -68,5 +71,6 @@ "engines": { "node": ">= 4.0.0", "npm": ">= 3.0.0" - } + }, + "snyk": true }