From 6424ee33cabc63a81fe2c076fed143cfb7907589 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 3 Jul 2018 05:52:36 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:lodash:20180130 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 14 ++++++++++++++ package.json | 14 ++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..41f61fa --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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': + - sails-mongo > waterline-cursor > lodash: + patched: '2018-07-03T05:52:34.824Z' + - sails-redis > waterline-cursor > lodash: + patched: '2018-07-03T05:52:34.824Z' + - waterline > switchback > lodash: + patched: '2018-07-03T05:52:34.824Z' + - waterline > waterline-criteria > lodash: + patched: '2018-07-03T05:52:34.824Z' diff --git a/package.json b/package.json index 83ef122..3d6aebb 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,16 @@ "gulp-sourcemaps": "^1.6.0", "gulp-uglify": "^2.0.0", "sails-mongo": "^0.12.1", - "sails-mysql": "^0.11.5", - "sails-postgresql": "^0.11.4", + "sails-mysql": "^1.0.0", + "sails-postgresql": "^1.0.0", "sails-redis": "^0.10.7", "through2": "^2.0.1", - "waterline": "^0.12.2" - } + "waterline": "^0.13.1", + "snyk": "^1.88.0" + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }