@ecom-micro/common 2.0.27 → 2.0.29

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,5 +1,5 @@
1
1
  import { Channel } from "amqplib";
2
- declare class QueueConnection {
2
+ export declare class QueueConnection {
3
3
  private readonly endPoint;
4
4
  private connection;
5
5
  private channel;
@@ -7,4 +7,3 @@ declare class QueueConnection {
7
7
  createConnection(): Promise<Channel | undefined>;
8
8
  private closeConnection;
9
9
  }
10
- export { QueueConnection };
@@ -26,11 +26,12 @@ class QueueConnection {
26
26
  this.connection = yield amqplib_1.default.connect(this.endPoint);
27
27
  this.channel = yield this.connection.createChannel();
28
28
  this.closeConnection();
29
- console.log('Notification server connected to queue successfully...');
29
+ console.log('RabbitMQ server connected to queue successfully...');
30
30
  return this.channel;
31
31
  }
32
32
  catch (error) {
33
- console.log('error', 'NotificationService error createConnection() method:', error);
33
+ console.log('RabbitMQ server error createConnection() method:', error);
34
+ process.exit(1);
34
35
  return undefined;
35
36
  }
36
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecom-micro/common",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",