From 7310072751607bae6bc14ec2eee7cde5b269f047 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 04:00:19 +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 0000000000..3f962d1a86 --- /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: + - node-sass > sass-graph > lodash: + patched: '2019-07-04T04:00:17.431Z' + - sass-loader > async > lodash: + patched: '2019-07-04T04:00:17.431Z' + - webpack > async > lodash: + patched: '2019-07-04T04:00:17.431Z' + - node-sass > gaze > globule > lodash: + patched: '2019-07-04T04:00:17.431Z' diff --git a/package.json b/package.json index 82d7b92852..2ec05a5cbe 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --env.dev", - "build:prod": "webpack --env.prod -p" + "build:prod": "webpack --env.prod -p", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "license": "MIT", "dependencies": { @@ -33,6 +35,8 @@ "angular-loading-bar": "^0.9.0", "ng-file-upload": "^12.2.12", "angular-pdf": "~1.3.0", - "angular-truncate": "sparkalow/angular-truncate" - } + "angular-truncate": "sparkalow/angular-truncate", + "snyk": "^1.189.0" + }, + "snyk": true }