@autofleet/rabbit 3.2.22-beta.0 → 3.2.22-beta.1
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 +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -272,7 +272,7 @@ class RabbitMq {
|
|
|
272
272
|
}
|
|
273
273
|
return this.publishChannelSetupPromise;
|
|
274
274
|
}
|
|
275
|
-
async assertExchange(exchangeName, options) {
|
|
275
|
+
async assertExchange(exchangeName, options = { connectionPurpose: types_1.ConnectionPurpose.Consume }) {
|
|
276
276
|
const channel = await this.assertChannel({ connectionPurpose: options.connectionPurpose });
|
|
277
277
|
if (this.exchanges[exchangeName]) {
|
|
278
278
|
return this.exchanges[exchangeName];
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -417,7 +417,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
417
417
|
return this.publishChannelSetupPromise;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
async assertExchange(exchangeName: string, options
|
|
420
|
+
async assertExchange(exchangeName: string, options: any = { connectionPurpose: ConnectionPurpose.Consume }) {
|
|
421
421
|
const channel: ChannelWrapper = await this.assertChannel({ connectionPurpose: options.connectionPurpose });
|
|
422
422
|
if (this.exchanges[exchangeName]) {
|
|
423
423
|
return this.exchanges[exchangeName];
|