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' 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 }