From e1e2671e271b4527f7e702d3e089eeb5f67e8f79 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 23:16:04 +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 | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..5b957fdd --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - ms-rest-azure > async > lodash: + patched: '2019-07-03T23:16:01.891Z' + - azure-arm-compute > ms-rest-azure > async > lodash: + patched: '2019-07-03T23:16:01.891Z' diff --git a/package.json b/package.json index 6152e399..477d3d8f 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,9 @@ "stop": "if [ -e janitor.pid -a -n \"$(ps h $(cat janitor.pid))\" ] ; then kill $(cat janitor.pid) && printf \"[$(date -uIs)] Background process stopped (PID $(cat janitor.pid)).\\n\" ; fi ; rm -f janitor.pid", "test": "cd tests && node tests.js", "prewatch": "touch janitor.log && chmod 600 janitor.log", - "watch": "watch-run --initial --pattern 'app.js,package.json,api/**,lib/**,templates/**' --stop-on-error npm run app & tail -f janitor.log -n 0" + "watch": "watch-run --initial --pattern 'app.js,package.json,api/**,lib/**,templates/**' --stop-on-error npm run app & tail -f janitor.log -n 0", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "azure-arm-compute": "10.0.0", @@ -43,7 +45,8 @@ "oauth2provider": "0.0.2", "selfapi": "1.0.0", "tar-stream": "2.1.0", - "timeago.js": "3.0.2" + "timeago.js": "3.0.2", + "snyk": "^1.189.0" }, "devDependencies": { "eslint": "5.16.0", @@ -56,5 +59,6 @@ }, "engines": { "node": ">=10.0.0" - } + }, + "snyk": true }