From 290409245b6f6eec770fc1b1b6f35eb46c8f6c59 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 2 Dec 2017 05:51:05 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:moment:20170905 Latest report for rnkit/rnkit-code-push-web: https://snyk.io/test/github/rnkit/rnkit-code-push-web --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk 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 }