docta-package 1.2.12 → 1.2.13

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/build/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from "./utils";
9
9
  export * from "./config";
10
10
  export * from "./interfaces";
11
11
  export * from "./enums";
12
+ export * from "./rabbitmq";
12
13
  declare global {
13
14
  namespace Express {
14
15
  interface Request {
package/build/index.js CHANGED
@@ -24,3 +24,4 @@ __exportStar(require("./utils"), exports);
24
24
  __exportStar(require("./config"), exports);
25
25
  __exportStar(require("./interfaces"), exports);
26
26
  __exportStar(require("./enums"), exports);
27
+ __exportStar(require("./rabbitmq"), exports);
@@ -19,7 +19,7 @@ function publishToTopicExchange(_a) {
19
19
  return __awaiter(this, arguments, void 0, function* ({ exchange, routingKey, message, }) {
20
20
  try {
21
21
  // Connect to RabbitMQ server
22
- const connection = yield amqplib_1.default.connect((0, config_1.getGeneralConfig)().rabbitmqHost); // Replace with your RabbitMQ URL
22
+ const connection = yield amqplib_1.default.connect((0, config_1.getGeneralConfig)().rabbitmqHost);
23
23
  const channel = yield connection.createChannel();
24
24
  // Assert the topic exchange exists
25
25
  yield channel.assertExchange(exchange, "topic", { durable: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docta-package",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "This package will contail all the required files to run the docta micro-service app",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",