diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..6f342e7 --- /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: + - json-server > lodash: + patched: '2019-07-03T22:33:43.039Z' + - json-server > lowdb > lodash: + patched: '2019-07-03T22:33:43.039Z' diff --git a/package.json b/package.json index 5fa2a53..4809b52 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,17 @@ "description": "nice additions for json-server in order to support large scale applications", "main": "lib/jsonExtender.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, - "keywords": ["json","json-server","stub","combine","stub server"], + "keywords": [ + "json", + "json-server", + "stub", + "combine", + "stub server" + ], "author": "maty zisserman", "license": "MIT", "dependencies": { @@ -15,7 +23,8 @@ "fs-finder": "^1.8.1", "json-concat": "0.0.1", "json-server": "^0.9.0", - "require-dir": "^0.3.1" + "require-dir": "^0.3.1", + "snyk": "^1.189.0" }, "repository": { "type": "git", @@ -24,5 +33,6 @@ "bugs": { "url": "https://github.com/maty21/json-server-extension/issues" }, - "homepage": "https://github.com/maty21/json-server-extension#readme" + "homepage": "https://github.com/maty21/json-server-extension#readme", + "snyk": true }