@autofleet/rabbit 2.1.12-beta1 → 2.1.12-beta2
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dump.rdb +0 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ declare class RabbitMq implements IAfRabbitMq {
|
|
|
52
52
|
assertExchange(exchangeName: string, options?: any): Promise<any>;
|
|
53
53
|
getQueueLength(queue: string): Promise<import("amqplib").Replies.AssertQueue>;
|
|
54
54
|
bindQueue(queue: string, exchange: string): Promise<void>;
|
|
55
|
-
assertQueue(queue: string, options?: Options.AssertQueue): Promise<
|
|
55
|
+
assertQueue(queue: string, options?: Options.AssertQueue): Promise<import("amqplib").Replies.AssertQueue>;
|
|
56
56
|
consume(queue: string, callback: (msg: any, ack: Function, nack: Function) => any, options?: any): Promise<void>;
|
|
57
57
|
consumeFromExchange(queue: string, exchange: string, callback: (msg: any, ack: Function, nack: Function) => any, options?: any): Promise<void>;
|
|
58
58
|
publish(exchange: string, content: any, customHeaders?: any): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -186,7 +186,7 @@ class RabbitMq {
|
|
|
186
186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
187
|
RabbitMq.validateName('queue', queue);
|
|
188
188
|
const channel = yield this.assertChannel();
|
|
189
|
-
return channel.
|
|
189
|
+
return channel.assertQueue(queue, options);
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
consume(queue, callback, options) {
|
package/dump.rdb
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -237,7 +237,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
237
237
|
async assertQueue(queue: string, options?: Options.AssertQueue) {
|
|
238
238
|
RabbitMq.validateName('queue', queue);
|
|
239
239
|
const channel: ChannelWrapper = await this.assertChannel();
|
|
240
|
-
return channel.
|
|
240
|
+
return channel.assertQueue(queue, options);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
async consume(queue: string, callback: (msg: any, ack: Function, nack: Function) => any, options?: any) {
|