quoting-service 17.14.2 → 17.14.3
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 +8 -0
- package/package.json +8 -6
- package/src/handlers/plugins/health.js +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
### [17.14.3](https://github.com/mojaloop/quoting-service/compare/v17.14.2...v17.14.3) (2026-02-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Chore
|
|
9
|
+
|
|
10
|
+
* **sbom:** update sbom [skip ci] ([525434a](https://github.com/mojaloop/quoting-service/commit/525434a14d228e927a69ea4c5678b4fabadce246))
|
|
11
|
+
* update dependencies and apply security patches ([#455](https://github.com/mojaloop/quoting-service/issues/455)) ([3c1b83b](https://github.com/mojaloop/quoting-service/commit/3c1b83b2ee8fdd3177ec1e6f44d929393c66174d)), closes [#1238](https://github.com/mojaloop/quoting-service/issues/1238)
|
|
12
|
+
|
|
5
13
|
### [17.14.2](https://github.com/mojaloop/quoting-service/compare/v17.14.1...v17.14.2) (2026-02-05)
|
|
6
14
|
|
|
7
15
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "quoting-service",
|
|
3
3
|
"description": "Quoting Service hosted by a scheme",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "17.14.
|
|
5
|
+
"version": "17.14.3",
|
|
6
6
|
"author": "ModusBox",
|
|
7
7
|
"contributors": [
|
|
8
8
|
"Georgi Georgiev <georgi.georgiev@modusbox.com>",
|
|
@@ -108,7 +108,9 @@
|
|
|
108
108
|
"validator": "13.15.22",
|
|
109
109
|
"undici": "7.18.2",
|
|
110
110
|
"lodash": "4.17.23",
|
|
111
|
-
"lodash-es": "4.17.23"
|
|
111
|
+
"lodash-es": "4.17.23",
|
|
112
|
+
"fast-xml-parser": "5.3.4",
|
|
113
|
+
"axios": "1.13.5"
|
|
112
114
|
},
|
|
113
115
|
"dependencies": {
|
|
114
116
|
"@hapi/good": "9.0.1",
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
"@mojaloop/central-services-health": "15.2.1",
|
|
120
122
|
"@mojaloop/central-services-logger": "11.10.3",
|
|
121
123
|
"@mojaloop/central-services-metrics": "12.8.3",
|
|
122
|
-
"@mojaloop/central-services-shared": "18.35.
|
|
124
|
+
"@mojaloop/central-services-shared": "18.35.3",
|
|
123
125
|
"@mojaloop/central-services-stream": "11.9.0",
|
|
124
126
|
"@mojaloop/event-sdk": "14.8.2",
|
|
125
127
|
"@mojaloop/inter-scheme-proxy-cache-lib": "2.9.0",
|
|
@@ -128,7 +130,7 @@
|
|
|
128
130
|
"@mojaloop/sdk-standard-components": "19.18.7",
|
|
129
131
|
"ajv": "8.17.1",
|
|
130
132
|
"ajv-keywords": "5.1.0",
|
|
131
|
-
"axios": "1.13.
|
|
133
|
+
"axios": "1.13.5",
|
|
132
134
|
"blipp": "4.0.2",
|
|
133
135
|
"commander": "14.0.3",
|
|
134
136
|
"event-stream": "4.0.1",
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
"knex": "3.1.0",
|
|
139
141
|
"memory-cache": "0.2.0",
|
|
140
142
|
"minimist": "1.2.8",
|
|
141
|
-
"mysql2": "^3.
|
|
143
|
+
"mysql2": "^3.17.0",
|
|
142
144
|
"node-fetch": "3.3.2",
|
|
143
145
|
"parse-strings-in-object": "2.0.0",
|
|
144
146
|
"rc": "1.2.8"
|
|
@@ -147,7 +149,7 @@
|
|
|
147
149
|
"audit-ci": "7.1.0",
|
|
148
150
|
"eslint": "8.57.1",
|
|
149
151
|
"eslint-config-standard": "17.1.0",
|
|
150
|
-
"eslint-plugin-jest": "29.
|
|
152
|
+
"eslint-plugin-jest": "29.13.0",
|
|
151
153
|
"ioredis-mock": "8.13.1",
|
|
152
154
|
"jest": "29.7.0",
|
|
153
155
|
"jest-junit": "16.0.0",
|
|
@@ -50,18 +50,24 @@ const createHealthCheck = (consumersMap, db) => {
|
|
|
50
50
|
const results = await Promise.all(
|
|
51
51
|
topics.map(async (topic) => {
|
|
52
52
|
try {
|
|
53
|
-
|
|
53
|
+
const consumer = Consumer.getConsumer(topic)
|
|
54
|
+
const isHealthy = await consumer.isHealthy()
|
|
55
|
+
if (!isHealthy) {
|
|
56
|
+
logger.isWarnEnabled && logger.warn(`Consumer is not healthy for topic ${topic}`)
|
|
57
|
+
}
|
|
58
|
+
return isHealthy
|
|
54
59
|
} catch (err) {
|
|
55
|
-
logger.isWarnEnabled && logger.warn(`
|
|
60
|
+
logger.isWarnEnabled && logger.warn(`isHealthy check failed for topic ${topic}: ${err.message}`)
|
|
56
61
|
return false
|
|
57
62
|
}
|
|
58
63
|
})
|
|
59
64
|
)
|
|
60
65
|
|
|
61
|
-
if (results.some(
|
|
66
|
+
if (results.some(healthy => !healthy)) {
|
|
62
67
|
status = statusEnum.DOWN
|
|
63
68
|
}
|
|
64
69
|
} catch (err) {
|
|
70
|
+
logger.isWarnEnabled && logger.warn(`checkKafkaBroker failed with error ${err.message}.`)
|
|
65
71
|
status = statusEnum.DOWN
|
|
66
72
|
}
|
|
67
73
|
|