From 46fe97fb257fb12903fd3adf54f37196710a0ad7 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 19 Oct 2018 12:33:26 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:cryptiles:20180710 - https://snyk.io/vuln/npm:extend:20180424 - https://snyk.io/vuln/npm:hoek:20180212 - https://snyk.io/vuln/npm:sshpk:20180409 - https://snyk.io/vuln/npm:stringstream:20180511 - https://snyk.io/vuln/npm:underscore.string:20170908 - https://snyk.io/vuln/npm:validator:20180218 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 12 ++++++++++++ package.json | 12 ++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..c0fb5181 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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:lodash:20180130': + - parse-comments > lodash: + patched: '2018-10-19T12:33:25.180Z' + - '@dadi/boot > cli-table2 > lodash': + patched: '2018-10-19T12:33:25.180Z' + - '@dadi/logger > aws-kinesis-writable > lodash': + patched: '2018-10-19T12:33:25.180Z' diff --git a/package.json b/package.json index 7141307b..40bc70ea 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "test:cleanup": "rm -rf test/acceptance/temp-workspace", "precommit": "node scripts/precommit.js", "posttest": "./scripts/coverage.js", - "start": "node start.js --node_env=development" + "start": "node start.js --node_env=development", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "commitlint": { "extends": [ @@ -35,7 +37,7 @@ "colors": "1.1.2", "concat-stream": "^1.6.2", "console-stamp": "^0.2.0", - "convict": "4.0.2", + "convict": "4.3.2", "debug": "3.1.0", "deep-clone": "^3.0.2", "deepmerge": "^2.1.0", @@ -62,7 +64,8 @@ "underscore": "1.8.3", "underscore-contrib": "^0.3.0", "validator": "9.4.1", - "vary": "^1.1.2" + "vary": "^1.1.2", + "snyk": "^1.104.1" }, "devDependencies": { "@commitlint/cli": "~4.1.1", @@ -112,5 +115,6 @@ "description": "A high performance RESTful API layer designed in support of API-first development and the principle of COPE.", "directories": { "test": "test" - } + }, + "snyk": true }