From 2bc0cb451355744a99c6b121a72e9ace7d452870 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 26 Oct 2017 22:52:09 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:marked:20170907 Latest report for messagebot/messagebot-core: https://snyk.io/test/github/messagebot/messagebot-core --- .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..21f30d3 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.8.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:marked:20170907': + - actionhero > jsdoc > marked: + patched: '2017-10-26T22:52:09.076Z' diff --git a/package.json b/package.json index a03dfcc..71dcbcd 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "sanitize-html": "^1.14.1", "sequelize": "^3.30.4", "sequelize-cli": "^2.8.0", - "ws": "^3.1.0" + "ws": "^3.1.0", + "snyk": "^1.46.0" }, "devDependencies": { "mocha": "^3.5.0", @@ -66,6 +67,9 @@ "postinstall": "./bin/postinstall", "migrate": "sequelize db:migrate", "faker:run": "node db/faker/run.js", - "faker:seed": "node db/faker/seed.js" - } + "faker:seed": "node db/faker/seed.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }