From 652842326dc28ed5fc81365a33f13c88b9f13522 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 2 Nov 2017 05:53:04 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:marked:20170907 Latest report for admindevelopment/graphql.github.io: https://snyk.io/test/github/admindevelopment/graphql.github.io --- .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 0000000000..de44e97d4f --- /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:marked:20170907': + - marked: + patched: '2017-11-02T05:53:03.846Z' diff --git a/package.json b/package.json index 1d1ab5ebd6..009d067aa4 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "start": "rm -rf build && babel-node resources/server.js", "build": "rm -rf build && babel-node resources/build.js", "watch": "rm -rf build && babel-node resources/watch.js", - "test": "npm run build" + "test": "npm run build", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "babel": { "optional": [ @@ -36,6 +38,8 @@ "codemirror-graphql": "^0.5.7", "graphql": "^0.7.0", "graphql-tools": "^0.6.6", - "marked": "^0.3.5" - } + "marked": "^0.3.5", + "snyk": "^1.47.0" + }, + "snyk": true }