From ade90744579072e7d9c66b5ce394b5300d80877f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 19 Jun 2018 07:15:20 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 Latest report for gazeti/aleph: https://snyk.io/test/github/gazeti/aleph --- .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..6f25f5a656 --- /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:hoek:20180212': + - node-sass > node-gyp > request > hawk > hoek: + patched: '2018-06-19T07:15:20.412Z' + - node-sass > node-gyp > request > hawk > boom > hoek: + patched: '2018-06-19T07:15:20.412Z' + - node-sass > node-gyp > request > hawk > sntp > hoek: + patched: '2018-06-19T07:15:20.412Z' + - node-sass > node-gyp > request > hawk > cryptiles > boom > hoek: + patched: '2018-06-19T07:15:20.412Z' diff --git a/package.json b/package.json index 82d7b92852..3627d962bc 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.83.0" + }, + "snyk": true }