diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..05880e0 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - '@rxdi/graphql-pubsub > @rxdi/graphql-rabbitmq-subscriptions > async > lodash': + patched: '2020-05-01T04:16:55.447Z' diff --git a/package.json b/package.json index ba01e2a..3af3f44 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", @@ -31,7 +33,8 @@ "@rxdi/graphql-pubsub": "0.7.38", "@rxdi/hapi": "0.7.38", "graphql-geojson": "^1.0.0", - "graphql-tools": "^3.0.2" + "graphql-tools": "^3.0.2", + "snyk": "^1.316.1" }, "jest": { "testEnvironment": "node", @@ -62,5 +65,6 @@ "devDependencies": { "@types/hapi": "^18.0.2", "typescript": "^3.0.1" - } + }, + "snyk": true }