@avtechno/sfr 1.0.2 → 1.0.3

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.
@@ -1,4 +1,4 @@
1
- import { Connection, Options, Channel, ConsumeMessage } from "amqplib";
1
+ import { ChannelModel, Options, Channel, ConsumeMessage } from "amqplib";
2
2
  /**
3
3
  * MQLib class for establishing a connection to the message queue and creating channels.
4
4
  */
@@ -19,7 +19,7 @@ export declare class MQLib {
19
19
  *
20
20
  * @returns The connection object to the message queue.
21
21
  */
22
- get_connection(): Connection;
22
+ get_connection(): ChannelModel;
23
23
  /**
24
24
  * Returns the channel object.
25
25
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avtechno/sfr",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "An opinionated way of writing services using ExpressJS.",
5
5
  "type": "module",
6
6
  "files": [
package/src/mq.mts CHANGED
@@ -1,10 +1,10 @@
1
- import { Connection, Options, connect, Channel, ConsumeMessage } from "amqplib";
1
+ import { ChannelModel, Options, connect, Channel, ConsumeMessage } from "amqplib";
2
2
 
3
3
  /**
4
4
  * MQLib class for establishing a connection to the message queue and creating channels.
5
5
  */
6
6
  export class MQLib {
7
- private connection?: Connection;
7
+ private connection?: ChannelModel;
8
8
  private channel?: Channel;
9
9
 
10
10
  /**