@codefresh-io/eventbus 3.0.0-alpha.4 → 4.0.0
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/lib/Bus.js +4 -1
- package/package.json +5 -5
package/lib/Bus.js
CHANGED
|
@@ -97,7 +97,7 @@ class Bus extends EventEmitter {
|
|
|
97
97
|
async waitForConsumersToFinish() {
|
|
98
98
|
while (this._consumersInProgressCount > 0) {
|
|
99
99
|
this._logger.info(`Waiting for ${this._consumersInProgressCount} consumers in progress to finish...`);
|
|
100
|
-
await timers.setTimeout(
|
|
100
|
+
await timers.setTimeout(1000);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -299,6 +299,9 @@ class Bus extends EventEmitter {
|
|
|
299
299
|
})
|
|
300
300
|
.then(async (ch) => {
|
|
301
301
|
const { consumerTag } = await ch.consume(queueName, async (msg) => {
|
|
302
|
+
//! This domain is used in target service by http-infra lib
|
|
303
|
+
//! for correlationId enrichment and/or authEntity extration.
|
|
304
|
+
//! Do not remove it until use of domains is removed from target service.
|
|
302
305
|
const dom = domain.create();
|
|
303
306
|
dom.on('error', (err) => {
|
|
304
307
|
subscriberEmitter.emit('error', err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefresh-io/eventbus",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"amqplib": "^0.10.9",
|
|
30
30
|
"cf-errors": "^0.1.17",
|
|
31
|
-
"pg": "^8.
|
|
32
|
-
"pg-cursor": "^
|
|
31
|
+
"pg": "^8.21.0",
|
|
32
|
+
"pg-cursor": "^2.20.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@codefresh-io/cf-telemetry": "^
|
|
35
|
+
"@codefresh-io/cf-telemetry": "^4.2.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@codefresh-io/cf-telemetry": "^
|
|
38
|
+
"@codefresh-io/cf-telemetry": "^4.0.0"
|
|
39
39
|
},
|
|
40
40
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
41
41
|
}
|