From 055d194690f1fb8378825f7b57fd9ada36600e3c Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 02:19:59 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 34 ++++++++++++++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ed388ef --- /dev/null +++ b/.snyk @@ -0,0 +1,34 @@ +# 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: + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-utils > graphql-language-service-types > graphql-config > lodash: + patched: '2019-07-04T02:19:57.622Z' + - lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-config > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-config > graphql-import > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-types > graphql-config > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-parser > graphql-config > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-utils > graphql-config > lodash: + patched: '2019-07-04T02:19:57.622Z' + - request-promise > request-promise-core > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-types > graphql-config > graphql-import > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-utils > graphql-config > graphql-import > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-parser > graphql-language-service-types > graphql-config > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-parser > graphql-config > graphql-import > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-parser > graphql-language-service-types > graphql-config > graphql-import > lodash: + patched: '2019-07-04T02:19:57.622Z' + - graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-utils > graphql-language-service-types > graphql-config > graphql-import > lodash: + patched: '2019-07-04T02:19:57.622Z' diff --git a/package.json b/package.json index eceb23b..de6fd4d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "start": "nodemon app.js" + "start": "nodemon app.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [], "author": "", @@ -18,9 +20,11 @@ "lodash": "^4.17.4", "node-fetch": "^1.7.3", "request": "^2.82.0", - "request-promise": "^4.2.2" + "request-promise": "^4.2.2", + "snyk": "^1.189.0" }, "devDependencies": { "nodemon": "^1.12.1" - } + }, + "snyk": true }