From 1b2767cd75971d0d1760779fea3f482259bbfcb0 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 24 Oct 2018 05:18:57 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:minimatch:20160620 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:minimatch:20160620 --- .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 0000000..d90e84d --- /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:minimatch:20160620': + - sequelize-cli > gulp > vinyl-fs > glob-stream > minimatch: + patched: '2018-10-24T05:18:55.519Z' + - sequelize-cli > gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2018-10-24T05:18:55.519Z' + - sequelize-cli > gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2018-10-24T05:18:55.519Z' diff --git a/package.json b/package.json index a03dfcc..4cf8660 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,9 @@ "request": "^2.81.0", "sanitize-html": "^1.14.1", "sequelize": "^3.30.4", - "sequelize-cli": "^2.8.0", - "ws": "^3.1.0" + "sequelize-cli": "^3.0.0", + "ws": "^3.1.0", + "snyk": "^1.104.2" }, "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 }