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 }