@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "3.2.22-beta.0",
3
+ "version": "3.2.22-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
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?: any) {
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];