diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..088a40b --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.22.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - loopback-connector > strong-globalize > lodash: + patched: '2022-03-26T16:27:39.082Z' diff --git a/package.json b/package.json index e931c9e..e418421 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "lint": "eslint .", "lint:fix": "eslint . --fix", - "test": "mocha --exit" + "test": "mocha --exit", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -27,7 +29,8 @@ "bugs": "https://github.com/henriquecarv/loopback-connector-realtime-database/issues", "dependencies": { "firebase-admin": "^9.0.0", - "loopback-connector": "^4.11.1" + "loopback-connector": "^4.11.1", + "@snyk/protect": "latest" }, "devDependencies": { "acorn": "^7.4.0", @@ -41,5 +44,6 @@ "mocha": "^8.1.1", "prettier": "^2.0.5", "should": "^13.2.3" - } + }, + "snyk": true }