From 96cfe9481ee822e72808d60c3ea711099433a808 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 5 Jul 2018 23:23:12 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8ca5b9c --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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': + - '@dadi/logger > aws-kinesis-writable > lodash': + patched: '2018-07-05T23:23:10.204Z' diff --git a/package.json b/package.json index 45cb11f..b93f7ac 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "test": "snazzy 'lib/*.js' && env NODE_ENV=test ./node_modules/.bin/istanbul cover --report cobertura --report text --report html --report lcov ./node_modules/mocha/bin/_mocha", "posttest": "./scripts/coverage.js", "start": "node ./index.js --node-env=development", - "semantic-release": "semantic-release pre && npm publish && semantic-release post" + "semantic-release": "semantic-release pre && npm publish && semantic-release post", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { "@dadi/logger": "^1.0.0", @@ -16,7 +18,8 @@ "console-stamp": "^0.2.5", "convict": "^4.0.0", "mkdirp": "^0.5.1", - "rsmq-worker": "^0.4.3" + "rsmq-worker": "^0.4.3", + "snyk": "^1.88.1" }, "devDependencies": { "env-test": "^1.0.0", @@ -38,5 +41,6 @@ "type": "git", "url": "https://github.com/dadi/queue.git" }, - "author": "Robert Stanford " + "author": "Robert Stanford ", + "snyk": true }