From 5ba1e8bffd6fec294a74d37abb2a50e7c483ef19 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Tue, 9 Jul 2019 07:58:32 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 14 ++++++++++++++ package.json | 10 +++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..18df7ebc --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - openapi_optimise > lodash: + patched: '2019-07-09T07:58:30.947Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2019-07-09T07:58:30.947Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2019-07-09T07:58:30.947Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2019-07-09T07:58:30.947Z' diff --git a/package.json b/package.json index d5aa9918..9028d893 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "redis": "^2.6.2", "rotating-file-stream": "^1.0.5", "supervisor": ">= 0.5.x", - "yargs": "^4.8.1" + "yargs": "^4.8.1", + "snyk": "^1.192.4" }, "devDependencies": { "node-sass": "^3.10.0" @@ -57,6 +58,9 @@ }, "scripts": { "start": "node_modules/.bin/supervisor -e 'js|json' app", - "startwin": "supervisor -e 'js' app" - } + "startwin": "supervisor -e 'js' app", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }