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 }