diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..63670e4 --- /dev/null +++ b/.snyk @@ -0,0 +1,18 @@ +# 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: + - tc-core-library-js > lodash: + patched: '2022-03-26T02:37:38.980Z' + - no-kafka > bin-protocol > lodash: + patched: '2022-03-26T02:37:38.980Z' + - no-kafka > nice-simple-logger > lodash: + patched: '2022-03-26T02:37:38.980Z' + - no-kafka > wrr-pool > lodash: + patched: '2022-03-26T02:37:38.980Z' + - winston > async > lodash: + patched: '2022-03-26T02:37:38.980Z' + - winston-timestamp-colorize > winston > async > lodash: + patched: '2022-03-26T02:37:38.980Z' diff --git a/package-lock.json b/package-lock.json index e1af6e6..1afa2e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,6 +59,11 @@ "any-observable": "^0.3.0" } }, + "@snyk/protect": { + "version": "1.883.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.883.0.tgz", + "integrity": "sha512-N/EqG6P/qNYWOfuZAfGS1d7yGwGY4zV7AvKtgTzdhazDt7G/mRLG6czLSWNWGEFYBiMsYRVPHdc5It3bjhmIGw==" + }, "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -2718,9 +2723,9 @@ } }, "lodash": { - "version": "4.17.19", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", - "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" }, "lodash.clonedeep": { "version": "4.5.0", diff --git a/package.json b/package.json index 8f19952..e2d8091 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "setupData": "node scripts/setupData.js", "cleanData": "node scripts/cleanData.js", "lint": "standard \"src/**/*.js\" \"scripts/**/*.js\"", - "lint:fix": "standard --fix \"src/**/*.js\" \"scripts/**/*.js\"" + "lint:fix": "standard --fix \"src/**/*.js\" \"scripts/**/*.js\"", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -26,7 +28,7 @@ "dependencies": { "config": "^3.2.4", "dotenv": "^8.2.0", - "lodash": "^4.17.19", + "lodash": "^4.17.20", "moment": "^2.24.0", "no-kafka": "^3.4.3", "rocketchat-api": "github:dhruvit-r/rocketchat-api-node", @@ -34,11 +36,13 @@ "superagent": "^5.1.1", "tc-core-library-js": "github:appirio-tech/tc-core-library-js", "winston": "^3.2.1", - "winston-timestamp-colorize": "^1.0.4" + "winston-timestamp-colorize": "^1.0.4", + "@snyk/protect": "latest" }, "devDependencies": { "nodemon": "^2.0.1", "prettier-standard": "^15.0.1", "standard": "^14.3.1" - } + }, + "snyk": true }