@mojaloop/central-ledger 19.5.1 → 19.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [19.5.2](https://github.com/mojaloop/central-ledger/compare/v19.5.1...v19.5.2) (2025-06-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Chore
|
|
9
|
+
|
|
10
|
+
* update check to account for false instead of just errors ([#1171](https://github.com/mojaloop/central-ledger/issues/1171)) ([ae18fcd](https://github.com/mojaloop/central-ledger/commit/ae18fcd6cf7865088a3a5388295a5dfb089d2ad2))
|
|
11
|
+
|
|
5
12
|
### [19.5.1](https://github.com/mojaloop/central-ledger/compare/v19.5.0...v19.5.1) (2025-05-28)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/central-ledger",
|
|
3
|
-
"version": "19.5.
|
|
3
|
+
"version": "19.5.2",
|
|
4
4
|
"description": "Central ledger hosted by a scheme to record and settle transfers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "ModusBox",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@mojaloop/central-services-health": "15.1.0",
|
|
92
92
|
"@mojaloop/central-services-logger": "11.9.0",
|
|
93
93
|
"@mojaloop/central-services-metrics": "12.6.0",
|
|
94
|
-
"@mojaloop/central-services-shared": "18.
|
|
94
|
+
"@mojaloop/central-services-shared": "18.27.0",
|
|
95
95
|
"@mojaloop/central-services-stream": "11.6.0",
|
|
96
96
|
"@mojaloop/database-lib": "11.2.0",
|
|
97
97
|
"@mojaloop/event-sdk": "14.5.1",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"base64url": "3.0.1",
|
|
105
105
|
"blipp": "4.0.2",
|
|
106
106
|
"commander": "14.0.0",
|
|
107
|
-
"cron": "4.3.
|
|
107
|
+
"cron": "4.3.1",
|
|
108
108
|
"decimal.js": "10.5.0",
|
|
109
109
|
"docdash": "2.0.2",
|
|
110
110
|
"event-stream": "4.0.1",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
129
|
"@opentelemetry/api": "^1.9.0",
|
|
130
|
-
"@opentelemetry/auto-instrumentations-node": "^0.
|
|
130
|
+
"@opentelemetry/auto-instrumentations-node": "^0.60.0",
|
|
131
131
|
"@types/mock-knex": "0.4.8",
|
|
132
132
|
"async-retry": "1.3.3",
|
|
133
133
|
"audit-ci": "^7.1.0",
|
|
@@ -42,12 +42,26 @@ const MigrationLockModel = require('../../models/misc/migrationLock')
|
|
|
42
42
|
* @returns Promise<SubServiceHealth> The SubService health object for the broker
|
|
43
43
|
*/
|
|
44
44
|
const getSubServiceHealthBroker = async () => {
|
|
45
|
-
const consumerTopics = Consumer.getListOfTopics()
|
|
46
45
|
let status = statusEnum.OK
|
|
46
|
+
|
|
47
47
|
try {
|
|
48
|
-
|
|
48
|
+
const consumerTopics = Consumer.getListOfTopics()
|
|
49
|
+
const results = await Promise.all(
|
|
50
|
+
consumerTopics.map(async (t) => {
|
|
51
|
+
try {
|
|
52
|
+
return await Consumer.isConnected(t)
|
|
53
|
+
} catch (err) {
|
|
54
|
+
Logger.isWarnEnabled && Logger.warn(`isConnected threw for topic ${t}: ${err.message}`)
|
|
55
|
+
return false
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
if (results.some(connected => !connected)) {
|
|
61
|
+
status = statusEnum.DOWN
|
|
62
|
+
}
|
|
49
63
|
} catch (err) {
|
|
50
|
-
Logger.
|
|
64
|
+
Logger.isWarnEnabled && Logger.warn(`getSubServiceHealthBroker failed with error ${err.message}.`)
|
|
51
65
|
status = statusEnum.DOWN
|
|
52
66
|
}
|
|
53
67
|
|