From 351e6a9c725c4264ec1c520294fa4231e1ecea77 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 21:35:52 +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 | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1d57d39 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - graphile-build-pg > lodash: + patched: '2019-07-03T21:35:50.262Z' + - graphile-build-pg > graphile-build > lodash: + patched: '2019-07-03T21:35:50.262Z' diff --git a/package.json b/package.json index 242652a..9fd8fd7 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,15 @@ }, "scripts": { "test": "scripts/test jest -i", - "lint": "eslint index.js src/**/*.js" + "lint": "eslint index.js src/**/*.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "graphile-build-pg": "^4.2.0", "pg-tsquery": "^6.4.2", - "postgraphile-plugin-connection-filter": "^1.0.0-beta.28" + "postgraphile-plugin-connection-filter": "^1.0.0-beta.28", + "snyk": "^1.189.0" }, "peerDependencies": { "postgraphile-core": "^4.2.0", @@ -100,5 +103,6 @@ } ] } - } + }, + "snyk": true }