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 }