From aedd5056b5f31c289004351a9248dda5b63b89d4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 20 Jun 2018 02:06:52 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 --- .snyk | 22 ++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..d35df2c2 --- /dev/null +++ b/.snyk @@ -0,0 +1,22 @@ +# 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:hoek:20180212': + - nodegit > node-pre-gyp > hawk > hoek: + patched: '2018-06-20T02:06:50.549Z' + - nodegit > node-pre-gyp > hawk > boom > hoek: + patched: '2018-06-20T02:06:50.549Z' + - nodegit > node-pre-gyp > hawk > sntp > hoek: + patched: '2018-06-20T02:06:50.549Z' + - nodegit > node-pre-gyp > hawk > cryptiles > boom > hoek: + patched: '2018-06-20T02:06:50.549Z' + - nodegit > node-pre-gyp > request > hawk > hoek: + patched: '2018-06-20T02:06:50.549Z' + - nodegit > node-pre-gyp > request > hawk > boom > hoek: + patched: '2018-06-20T02:06:50.549Z' + - nodegit > node-pre-gyp > request > hawk > sntp > hoek: + patched: '2018-06-20T02:06:50.549Z' + - nodegit > node-pre-gyp > request > hawk > cryptiles > boom > hoek: + patched: '2018-06-20T02:06:50.549Z' diff --git a/package.json b/package.json index 406bc2a4..c7bc089a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "A command line, and implementable git client primarily designed for NodeOS", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -18,6 +20,8 @@ "author": "lite20", "license": "ISC", "dependencies": { - "nodegit": "^0.6.0" - } + "nodegit": "^0.6.0", + "snyk": "^1.83.0" + }, + "snyk": true }