From d9a2b65151cb47ba7ddbf35ed7cfa33b8d76246c Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 5 Jun 2019 02:29:39 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:deep-extend:20180409 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ws:20160920 --- .snyk | 8 ++++++++ package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4f55e15 --- /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: + 'npm:ws:20160920': + - satori-sdk-js > ws: + patched: '2019-06-05T02:29:37.688Z' diff --git a/package.json b/package.json index 723ba6b..215757c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "GitHub search plugin for node-keyboard", "main": "index.js", "scripts": { - "test": "eslint ." + "test": "eslint .", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "node-keyboard-github" @@ -19,10 +21,12 @@ "chalk": "^1.1.3", "node-examples": "^1.0.0", "node-keyboard-rx": "^1.0.1", - "octonode": "^0.7.12", - "satori-sdk-js": "^1.0.1" + "octonode": "^0.9.3", + "satori-sdk-js": "^1.0.1", + "snyk": "^1.171.1" }, "devDependencies": { "eslint": "^3.9.1" - } + }, + "snyk": true }