From 72426c83c2e1ab0615951643d3f2eac05ed2dcca Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 25 May 2017 04:15:04 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for openhoat/hid-handler: https://snyk.io/test/github/openhoat/hid-handler --- .snyk | 8 ++++++++ package.json | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..dc64a93 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - node-hid > node-pre-gyp > tar-pack > debug > ms: + patched: '2017-05-25T04:15:04.191Z' diff --git a/package.json b/package.json index 3d63972..7e6b423 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "properties": "^1.2.1", "require-directory": "^2.1.1", "usb": "^1.1.1", - "yamljs": "^0.2.4" + "yamljs": "^0.2.4", + "snyk": "^1.30.1" }, "devDependencies": { "chai": "^3.4.1", @@ -47,5 +48,10 @@ "mkdirp": "^0.5.1", "mocha": "^2.3.4", "spec-xunit-file": "0.0.1-3" - } + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }