diff --git a/audit-ci.jsonc b/audit-ci.jsonc index 863ccfe6..b5174013 100644 --- a/audit-ci.jsonc +++ b/audit-ci.jsonc @@ -12,6 +12,8 @@ "GHSA-8qr4-xgw6-wmr3", // json web token, no fix available "GHSA-8cf7-32gw-wr33", - "GHSA-8cf7-32gw-wr33" + "GHSA-8cf7-32gw-wr33", + "GHSA-27h2-hvpr-p74q", + "GHSA-qwph-4952-7xr6" ] -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index a4f02c7b..f019eb48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ml-testing-toolkit", - "version": "15.6.2", + "version": "15.6.3-snapshot.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ml-testing-toolkit", - "version": "15.6.2", + "version": "15.6.3-snapshot.1", "license": "Apache-2.0", "dependencies": { "@elastic/elasticsearch": "^8.5.0", @@ -41,7 +41,7 @@ "json-refs": "^3.0.15", "json-rules-engine": "6.1.2", "lodash": "^4.17.21", - "mongoose": "^6.8.2", + "mongoose": "^6.8.3", "multer": "^1.4.3", "mustache": "4.2.0", "mv": "^2.1.1", @@ -71,7 +71,7 @@ }, "devDependencies": { "@types/jest": "^29.2.5", - "audit-ci": "^6.5.0", + "audit-ci": "^6.6.0", "get-port": "6.1.2", "jest": "^28.1.3", "jest-junit": "^15.0.0", @@ -4653,9 +4653,9 @@ } }, "node_modules/audit-ci": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/audit-ci/-/audit-ci-6.5.0.tgz", - "integrity": "sha512-mULJtyRrKjgaU9SDZJlClYJ85+0QacvLKljq2MX9Jc4fxsKFlJtSGGYAAkBeVmu/uDlg8YL/nQccX+loNm4OZw==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/audit-ci/-/audit-ci-6.6.0.tgz", + "integrity": "sha512-WzYlA3yxnisKcFGGlsbsUX5+6MvYdLxgjzoarWhCeJzKN5KDBNGOaIriVYZJtMTIObkSNGYQw0HEIDMrgXQkBA==", "dev": true, "dependencies": { "cross-spawn": "^7.0.3", @@ -11888,9 +11888,9 @@ } }, "node_modules/kareem": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.0.tgz", - "integrity": "sha512-rVBUGGwvqg130iwYu8k7lutHuDBFj1yGRdnlE44wEhxAmFBad1zcL66PdWC1raw3tIObY6XWhtv3VL04xQb/cg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", "engines": { "node": ">=12.0.0" } @@ -13054,12 +13054,12 @@ } }, "node_modules/mongoose": { - "version": "6.8.2", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.8.2.tgz", - "integrity": "sha512-cIato5N2w/QuJkkh0w4nyf7ty7DqmmP/W8/6PFSM0DrzbxIMlr6VN15LBIceTSJIxbznNl2Mlbh9Rm4sokMw+A==", + "version": "6.8.3", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.8.3.tgz", + "integrity": "sha512-qrVWefJK+wFNBH0ALV+oiyJ+FN42O/BqvHFmlFJJ2LKuNmQEOE0JV8FCxnZqtanwbHs4i+k/SkjhtC+C01haaw==", "dependencies": { "bson": "^4.7.0", - "kareem": "2.5.0", + "kareem": "2.5.1", "mongodb": "4.12.1", "mpath": "0.9.0", "mquery": "4.0.3", @@ -22801,9 +22801,9 @@ "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" }, "audit-ci": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/audit-ci/-/audit-ci-6.5.0.tgz", - "integrity": "sha512-mULJtyRrKjgaU9SDZJlClYJ85+0QacvLKljq2MX9Jc4fxsKFlJtSGGYAAkBeVmu/uDlg8YL/nQccX+loNm4OZw==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/audit-ci/-/audit-ci-6.6.0.tgz", + "integrity": "sha512-WzYlA3yxnisKcFGGlsbsUX5+6MvYdLxgjzoarWhCeJzKN5KDBNGOaIriVYZJtMTIObkSNGYQw0HEIDMrgXQkBA==", "dev": true, "requires": { "cross-spawn": "^7.0.3", @@ -28336,9 +28336,9 @@ } }, "kareem": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.0.tgz", - "integrity": "sha512-rVBUGGwvqg130iwYu8k7lutHuDBFj1yGRdnlE44wEhxAmFBad1zcL66PdWC1raw3tIObY6XWhtv3VL04xQb/cg==" + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==" }, "keygrip": { "version": "1.1.0", @@ -29254,12 +29254,12 @@ } }, "mongoose": { - "version": "6.8.2", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.8.2.tgz", - "integrity": "sha512-cIato5N2w/QuJkkh0w4nyf7ty7DqmmP/W8/6PFSM0DrzbxIMlr6VN15LBIceTSJIxbznNl2Mlbh9Rm4sokMw+A==", + "version": "6.8.3", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.8.3.tgz", + "integrity": "sha512-qrVWefJK+wFNBH0ALV+oiyJ+FN42O/BqvHFmlFJJ2LKuNmQEOE0JV8FCxnZqtanwbHs4i+k/SkjhtC+C01haaw==", "requires": { "bson": "^4.7.0", - "kareem": "2.5.0", + "kareem": "2.5.1", "mongodb": "4.12.1", "mpath": "0.9.0", "mquery": "4.0.3", diff --git a/package.json b/package.json index f7cd23f7..4927febb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ml-testing-toolkit", "description": "Testing Toolkit for Mojaloop implementations", - "version": "15.6.2", + "version": "15.6.3-snapshot.1", "license": "Apache-2.0", "author": "Vijaya Kumar Guthi, ModusBox Inc. ", "contributors": [ @@ -89,7 +89,7 @@ "json-refs": "^3.0.15", "json-rules-engine": "6.1.2", "lodash": "^4.17.21", - "mongoose": "^6.8.2", + "mongoose": "^6.8.3", "multer": "^1.4.3", "mustache": "4.2.0", "mv": "^2.1.1", @@ -116,7 +116,7 @@ }, "devDependencies": { "@types/jest": "^29.2.5", - "audit-ci": "^6.5.0", + "audit-ci": "^6.6.0", "get-port": "6.1.2", "jest": "^28.1.3", "jest-junit": "^15.0.0", diff --git a/src/lib/api-routes/outbound.js b/src/lib/api-routes/outbound.js index a6cf546c..cd44a7d3 100644 --- a/src/lib/api-routes/outbound.js +++ b/src/lib/api-routes/outbound.js @@ -75,9 +75,8 @@ router.post('/template/:traceID', [ } const traceID = req.params.traceID const inputJson = JSON.parse(JSON.stringify(req.body)) - const userConfig = await Config.getUserConfig() - // TODO: Change the following value to the dfspId based ont he login incase HOSTING_ENABLED - const dfspId = req.user ? req.user.dfspId : userConfig.DEFAULT_USER_FSPID + // TODO: Change the following value to the dfspId based on the login incase HOSTING_ENABLED + const dfspId = req.user ? req.user.dfspId : null outbound.OutboundSend(inputJson, traceID, dfspId) return res.status(200).json({ status: 'OK' }) @@ -101,9 +100,8 @@ router.post('/template_iterations/:traceID', [ } const traceID = req.params.traceID const inputJson = JSON.parse(JSON.stringify(req.body)) - const userConfig = await Config.getUserConfig() - // TODO: Change the following value to the dfspId based ont he login incase HOSTING_ENABLED - const dfspId = req.user ? req.user.dfspId : userConfig.DEFAULT_USER_FSPID + // TODO: Change the following value to the dfspId based on the login incase HOSTING_ENABLED + const dfspId = req.user ? req.user.dfspId : null outbound.OutboundSendLoop(inputJson, traceID, dfspId, req.query.iterationCount) return res.status(200).json({ status: 'OK' })