@autofleet/rabbit 3.3.2 → 3.3.22-connection-test-beta

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/.nvmrc CHANGED
@@ -1 +1 @@
1
- v22.9.0
1
+ v20
package/dist/index.d.ts CHANGED
@@ -73,27 +73,12 @@ declare class RabbitMq implements IAfRabbitMq {
73
73
  /** Array of consumers tags used for canceling consumption */
74
74
  consumersTags: Array<[ConfirmChannel, string]>;
75
75
  private consumers;
76
- private doesVHostExist;
77
- private vhost;
78
- oldChannel: ChannelWrapper | null;
79
- oldPublishChannelSetupPromise: Promise<ChannelWrapper> | null;
80
- oldBlockReconnect: boolean | null | undefined;
81
- oldConnection: AmqpConnectionManager | null | undefined;
82
- oldEm: EventEmitter;
83
- oldCreatingConnection: boolean;
84
- oldExchanges: ExchangesCache;
85
- oldQueues: QueuesCache;
86
- oldQueueSetupPromises: QueueSetupPromisesDictionary;
87
- oldAssertExchangePromises: AssertExchangePromisesDictionary;
88
- oldConsumersTags: Array<[ConfirmChannel, string]>;
89
- private oldConsumers;
90
76
  constructor(options?: AfRabbitOptions, redisConfig?: RedisConfig);
91
- private assertVHost;
92
77
  private shouldConsumeMessageByTimestamp;
93
78
  ack: (channel: ConfirmChannel, msg: ConsumeMessageOrNull, shouldUpdateRedisTimestamp?: boolean, releaseLock?: null) => (userMsg: ConsumeMessage) => Promise<any>;
94
79
  nack: (channel: ConfirmChannel, queue: string, options: any, deadQueueOptions: Options.AssertQueue, msg: ConsumeMessageOrNull, releaseLock: any) => (userMsg: ConsumeMessageOrNull, { skipRetry, }?: NackOptions) => Promise<any>;
95
80
  getConnection(): Promise<AmqpConnectionManager>;
96
- getNewChannel({ name, onClose, options }?: newChannelOpts): Promise<import("amqp-connection-manager/dist/types/ChannelWrapper").default>;
81
+ getNewChannel({ name, onClose, options }?: newChannelOpts): Promise<ChannelWrapper>;
97
82
  assertChannel({ force }?: assertChannelOpts): Promise<ChannelWrapper>;
98
83
  assertExchange(exchangeName: string, options?: any): Promise<any>;
99
84
  getQueueLength(queue: string): Promise<Replies.AssertQueue>;
@@ -104,8 +89,6 @@ declare class RabbitMq implements IAfRabbitMq {
104
89
  assertQueue(queueName: string, options?: Options.AssertQueue): Promise<any>;
105
90
  private saveConsumer;
106
91
  consume(queue: string, callback: CallbackFunction, options?: ConsumeOptions): Promise<any>;
107
- consumeNew(queue: string, callback: CallbackFunction, options?: ConsumeOptions): Promise<any>;
108
- consumeOld(queue: string, callback: CallbackFunction, options?: ConsumeOptions): Promise<any>;
109
92
  private lockRedisIfNeeded;
110
93
  private unlockRedisIfNeeded;
111
94
  private consumeFromRabbit;
@@ -114,16 +97,5 @@ declare class RabbitMq implements IAfRabbitMq {
114
97
  sendToQueue(queue: string, content: any, options?: any, customHeaders?: any): Promise<boolean | undefined>;
115
98
  isConnected(): Promise<boolean>;
116
99
  gracefulShutdown(signal: string): Promise<void>;
117
- private consumeFromRabbitOld;
118
- getNewChannelOld({ name, onClose, options }?: newChannelOpts): Promise<import("amqp-connection-manager/dist/types/ChannelWrapper").default>;
119
- getConnectionOld(): Promise<AmqpConnectionManager>;
120
- private saveConsumerOld;
121
- assertQueueOld(queueName: string, options?: Options.AssertQueue): Promise<any>;
122
- setupQueueOld(queueName: string, options?: Options.AssertQueue): Promise<Replies.AssertQueue>;
123
- assertChannelOld({ force }?: assertChannelOpts): Promise<ChannelWrapper>;
124
- private deleteQueueOld;
125
- assertExchangeOld(exchangeName: string, options?: any): Promise<any>;
126
- private maskURL;
127
100
  }
128
101
  export default RabbitMq;
129
- export { sendCeleryTaskViaHttp, } from './lib/celery';