From 6e1ab751b298776d1e2746f1370d6ca8b8673377 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 10:44:08 +0530 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e9cd60e..5069c89 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "test": "nyc --reporter=html mocha", "report-coverage": "nyc report --reporter=text-lcov > coverage.lcov", "ts-lint": "dtslint types", - "lint": "eslint --no-ignore --fix --config .eslintrc.json api.js ./**/*.js" + "lint": "eslint --no-ignore --fix --config .eslintrc.json api.js ./**/*.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Roshan Gade ", "homepage": "https://github.com/roshangade/rest-api-framework", @@ -42,5 +44,8 @@ "nyc": "^15.x", "sinon": "^9.x" }, - "dependencies": {} + "dependencies": { + "snyk": "^1.316.1" + }, + "snyk": true } From 10ab51e8e9cfe4a29b3f806f56f5cf2e796d1984 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 10:44:09 +0530 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d47afad --- /dev/null +++ b/.snyk @@ -0,0 +1,28 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - eslint > lodash: + patched: '2020-05-01T05:14:06.070Z' + - eslint > inquirer > lodash: + patched: '2020-05-01T05:14:06.070Z' + - eslint > table > lodash: + patched: '2020-05-01T05:14:06.070Z' + - mocha > yargs-unparser > lodash: + patched: '2020-05-01T05:14:06.070Z' + - nyc > istanbul-lib-instrument > @babel/core > lodash: + patched: '2020-05-01T05:14:06.070Z' + - nyc > istanbul-lib-instrument > @babel/core > @babel/helper-module-transforms > lodash: + patched: '2020-05-01T05:14:06.070Z' + - nyc > istanbul-lib-instrument > @babel/core > @babel/helpers > @babel/traverse > lodash: + patched: '2020-05-01T05:14:06.070Z' + - nyc > istanbul-lib-instrument > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > lodash: + patched: '2020-05-01T05:14:06.070Z' + - nyc > istanbul-lib-instrument > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash: + patched: '2020-05-01T05:14:06.070Z' + - nyc > istanbul-lib-instrument > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash: + patched: '2020-05-01T05:14:06.070Z' + - nyc > istanbul-lib-instrument > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash: + patched: '2020-05-01T05:14:06.070Z'