From 58ab7bebe8f711d0e3f46ad8d45c96fec2ecf1e5 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 29 Sep 2017 04:29:15 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 Latest report for sethbergman/ngrx-books: https://snyk.io/test/github/sethbergman/ngrx-books --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7720ae0 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - '@angular/cli > webpack-dev-server > serve-index > debug': + patched: '2017-09-29T04:29:15.716Z' diff --git a/package.json b/package.json index 2b3be48..7816945 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "build": "ng build --prod", "prebuild": "npm install -g http-server", "postbuild": "ng build --prod", - "start": "http-server -p '5000' -a '0.0.0.0' dist/" + "start": "http-server -p '5000' -a '0.0.0.0' dist/", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -56,7 +58,8 @@ "rxjs": "^5.1.0", "ts-helpers": "^1.1.1", "typescript": "~2.0.0", - "zone.js": "^0.7.6" + "zone.js": "^0.7.6", + "snyk": "^1.41.1" }, "devDependencies": { "@angular/cli": "1.0.0-rc.0", @@ -77,5 +80,6 @@ "ts-node": "~2.0.0", "tslint": "~4.4.2", "typescript": "~2.0.0" - } + }, + "snyk": true }