From 844004c02b432d47974f96d850d1454bbfa4ff01 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 23 May 2018 23:23:01 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:semver:20150403 Latest report for cfpb/cfpbot: https://snyk.io/test/github/cfpb/cfpbot --- .snyk | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..87175f0 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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:semver:20150403': + - npm-registry > semver: + patched: '2018-05-23T23:23:01.797Z' + - npm-registry > licenses > npm-registry > semver: + patched: '2018-05-23T23:23:01.797Z' diff --git a/package.json b/package.json index 1dcd60d..5a50f44 100644 --- a/package.json +++ b/package.json @@ -52,12 +52,16 @@ "request": "2.72.0", "semver": "5.1.0", "shuffle-array": "1.0.1", - "underscore": "1.8.3" + "underscore": "1.8.3", + "snyk": "^1.80.1" }, "engines": { "node": "0.12.x" }, "scripts": { - "start": "./start.sh" - } + "start": "./start.sh", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }