@autofleet/rabbit 2.1.14 → 2.1.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 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -118,6 +118,8 @@ class RabbitMq {
|
|
|
118
118
|
this.connection = connection;
|
|
119
119
|
this.connection.on('disconnect', ({ err }) => {
|
|
120
120
|
var _a;
|
|
121
|
+
this.exchanges = {};
|
|
122
|
+
this.queues = {};
|
|
121
123
|
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.reconnect) {
|
|
122
124
|
console.error(`${this.RESCONNECT_MSG}${err && ` - ${err}`}`);
|
|
123
125
|
this.connection = null;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -178,6 +178,8 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
178
178
|
this.connection = connection;
|
|
179
179
|
this.connection.on('disconnect',
|
|
180
180
|
({ err }) => {
|
|
181
|
+
this.exchanges = {};
|
|
182
|
+
this.queues = {};
|
|
181
183
|
if (this.options?.reconnect) {
|
|
182
184
|
console.error(`${this.RESCONNECT_MSG}${err && ` - ${err}`}`);
|
|
183
185
|
this.connection = null;
|