diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..3bb329b --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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: + - json-server > lodash: + patched: '2020-05-01T03:25:29.738Z' + - json-server > lowdb > lodash: + patched: '2020-05-01T03:25:29.738Z' + - json-server-extension > json-server > lodash: + patched: '2020-05-01T03:25:29.738Z' + - json-server-extension > json-server > lowdb > lodash: + patched: '2020-05-01T03:25:29.738Z' diff --git a/package.json b/package.json index e9fd736..8331dab 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "json-server is great for stub server usage\r but in my opinion there where some caveat that i tried to solve in this package", "main": "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": [], "author": "maty zisserman", @@ -16,7 +18,8 @@ "json-concat": "0.0.1", "json-server": "^0.9.0", "json-server-extension": "^1.0.0", - "require-dir": "^0.3.1" + "require-dir": "^0.3.1", + "snyk": "^1.316.1" }, "devDependencies": {}, "repository": { @@ -26,5 +29,6 @@ "bugs": { "url": "https://github.com/maty21/json-server-extension-example/issues" }, - "homepage": "https://github.com/maty21/json-server-extension-example#readme" + "homepage": "https://github.com/maty21/json-server-extension-example#readme", + "snyk": true }