diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..5517ca2c --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - '@rxdi/graphql-pubsub > @rxdi/graphql-rabbitmq-subscriptions > async > lodash': + patched: '2019-07-04T04:16:49.978Z' diff --git a/package.json b/package.json index 866b67f8..e764477a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "lint": "echo", "pretest": "npm run lint", "test": "echo", - "ammend": "git add . && git commit --amend && git push -f && git push -f git@github.com:Stradivario/gapi-core.git" + "ammend": "git add . && git commit --amend && git push -f && git push -f git@github.com:Stradivario/gapi-core.git", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "graphql", @@ -30,7 +32,8 @@ "@rxdi/graphql-pubsub": "0.2.23", "@rxdi/hapi": "0.6.5", "graphql-geojson": "^1.0.0", - "graphql-tools": "^3.0.2" + "graphql-tools": "^3.0.2", + "snyk": "^1.189.0" }, "jest": { "testEnvironment": "node", @@ -61,5 +64,6 @@ "devDependencies": { "@types/hapi": "^18.0.2", "typescript": "^3.0.1" - } + }, + "snyk": true }