@jsnw/nestjs-rabbitmq 1.2.0 → 1.2.2
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.
|
@@ -28,19 +28,29 @@ export type RabbitmqMessageValidation = {
|
|
|
28
28
|
onFail?: RabbitmqResponse;
|
|
29
29
|
};
|
|
30
30
|
export type RabbitmqSubscribeParams = {
|
|
31
|
+
id?: string;
|
|
31
32
|
queue: RabbitmqQueue;
|
|
32
33
|
requeue?: boolean;
|
|
33
34
|
concurrency?: number;
|
|
35
|
+
/** The client can request that messages be sent in advance so that when
|
|
36
|
+
* the client finishes processing a message, the following message is
|
|
37
|
+
* already held locally, rather than needing to be sent down the channel.
|
|
38
|
+
* Prefetching gives a performance improvement. This field specifies the
|
|
39
|
+
* prefetch window size in octets. The server will send a message in
|
|
40
|
+
* advance if it is equal to or smaller in size than the available prefetch
|
|
41
|
+
* size (and also falls into other prefetch limits). May be set to zero,
|
|
42
|
+
* meaning "no specific limit", although other prefetch limits may still
|
|
43
|
+
* apply. The prefetch-size is ignored if the no-ack option is set. */
|
|
34
44
|
prefetchSize?: number;
|
|
45
|
+
/** Specifies a prefetch window in terms of whole messages. This field may
|
|
46
|
+
* be used in combination with the prefetch-size field; a message will only
|
|
47
|
+
* be sent in advance if both prefetch windows (and those at the channel
|
|
48
|
+
* and connection level) allow it. The prefetch-count is ignored if the
|
|
49
|
+
* no-ack option is set. */
|
|
35
50
|
prefetchCount?: number;
|
|
36
51
|
validation?: RabbitmqMessageValidation;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
autoStart: boolean;
|
|
40
|
-
} | {
|
|
41
|
-
id?: never;
|
|
42
|
-
autoStart?: never;
|
|
43
|
-
});
|
|
52
|
+
autoStart?: boolean;
|
|
53
|
+
};
|
|
44
54
|
export type RabbitmqSubscriberFunction = {
|
|
45
55
|
instance: any;
|
|
46
56
|
methodName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsnw/nestjs-rabbitmq",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "NestJS module for RabbitMQ integration with decorator-based consumers, message validation, and dead-letter exchange support",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|