From 7b0f6fd8362cf5cd6bbd4eb288ded390af64aa2b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 2 Oct 2018 02:55:11 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:ms:20170412 --- .snyk | 15 +++++++++++++++ package.json | 10 +++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..8f0828ed --- /dev/null +++ b/.snyk @@ -0,0 +1,15 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - component-cookie > debug: + patched: '2018-10-02T02:55:09.821Z' + - '@segment/top-domain > component-cookie > debug': + patched: '2018-10-02T02:55:09.821Z' + 'npm:ms:20170412': + - component-cookie > debug > ms: + patched: '2018-10-02T02:55:09.821Z' + - '@segment/top-domain > component-cookie > debug > ms': + patched: '2018-10-02T02:55:09.821Z' diff --git a/package.json b/package.json index 53358322..6e72cf64 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ ], "main": "lib/index.js", "scripts": { - "test": "make test" + "test": "make test", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -57,7 +59,8 @@ "next-tick": "^0.2.2", "segmentio-facade": "^3.0.2", "uuid": "^2.0.2", - "@segment/send-json": "^3.0.0" + "@segment/send-json": "^3.0.0", + "snyk": "^1.99.1" }, "devDependencies": { "@segment/analytics.js-integration": "^3.2.1", @@ -83,5 +86,6 @@ "proclaim": "^3.4.1", "sinon": "^1.7.3", "watchify": "^3.7.0" - } + }, + "snyk": true }