@jsnw/nestjs-rabbitmq 2.0.4 → 2.0.5
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.
|
@@ -97,7 +97,11 @@ class Rabbitmq {
|
|
|
97
97
|
queue: typeof queue === 'string' ? queue : queue.name,
|
|
98
98
|
passive: true
|
|
99
99
|
});
|
|
100
|
-
return {
|
|
100
|
+
return {
|
|
101
|
+
name: typeof queue === 'string' ? queue : queue.name,
|
|
102
|
+
messages: messageCount,
|
|
103
|
+
consumers: consumerCount
|
|
104
|
+
};
|
|
101
105
|
}
|
|
102
106
|
catch (e) {
|
|
103
107
|
return null;
|
|
@@ -8,6 +8,7 @@ import { RabbitmqSubscriber } from './rabbitmq-subscriber';
|
|
|
8
8
|
export type RabbitmqConstructorParams = ConnectionOptions & {};
|
|
9
9
|
export type RabbitmqResponse = 'ack' | 'drop' | 'requeue';
|
|
10
10
|
export type RabbitmqQueueStats = {
|
|
11
|
+
name: string;
|
|
11
12
|
messages: number;
|
|
12
13
|
consumers: number;
|
|
13
14
|
};
|