@autofleet/rabbit 3.4.0-beta.14 → 3.4.0-beta.15
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/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -319,7 +319,7 @@ class RabbitMq {
|
|
|
319
319
|
newConnection.once('connect', async () => {
|
|
320
320
|
debug('rabbit: connection established');
|
|
321
321
|
connection.creatingConnection = false;
|
|
322
|
-
this.em.emit(connectionCreatedEventName,
|
|
322
|
+
this.em.emit(connectionCreatedEventName, newConnection);
|
|
323
323
|
isResolved = true;
|
|
324
324
|
resolve(newConnection);
|
|
325
325
|
});
|
|
@@ -977,7 +977,7 @@ class RabbitMq {
|
|
|
977
977
|
newConnection.once('connect', async () => {
|
|
978
978
|
debug('rabbit: connection established');
|
|
979
979
|
connection.creatingConnection = false;
|
|
980
|
-
this.oldEm.emit(connectionCreatedEventName,
|
|
980
|
+
this.oldEm.emit(connectionCreatedEventName, newConnection);
|
|
981
981
|
isResolved = true;
|
|
982
982
|
resolve(newConnection);
|
|
983
983
|
});
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -507,7 +507,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
507
507
|
newConnection.once('connect', async () => {
|
|
508
508
|
debug('rabbit: connection established');
|
|
509
509
|
connection.creatingConnection = false;
|
|
510
|
-
this.em.emit(connectionCreatedEventName,
|
|
510
|
+
this.em.emit(connectionCreatedEventName, newConnection);
|
|
511
511
|
isResolved = true;
|
|
512
512
|
resolve(newConnection);
|
|
513
513
|
});
|
|
@@ -1253,7 +1253,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
1253
1253
|
newConnection.once('connect', async () => {
|
|
1254
1254
|
debug('rabbit: connection established');
|
|
1255
1255
|
connection.creatingConnection = false;
|
|
1256
|
-
this.oldEm.emit(connectionCreatedEventName,
|
|
1256
|
+
this.oldEm.emit(connectionCreatedEventName, newConnection);
|
|
1257
1257
|
isResolved = true;
|
|
1258
1258
|
resolve(newConnection);
|
|
1259
1259
|
});
|