@onlineapps/mq-client-core 1.0.15 → 1.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/mq-client-core",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Core MQ client library for RabbitMQ - shared by infrastructure services and connectors",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -21,15 +21,11 @@
21
21
  async function initInfrastructureQueues(channel, options = {}) {
22
22
  const logger = options.logger || console;
23
23
 
24
- // Load queueConfig - either from options or try to load from @onlineapps/conn-infra-mq
25
- let queueConfig = options.queueConfig;
26
- if (!queueConfig) {
27
- try {
28
- queueConfig = require('@onlineapps/conn-infra-mq/src/config/queueConfig');
29
- } catch (requireError) {
30
- throw new Error(`Cannot load queueConfig. Either provide queueConfig in options, or ensure @onlineapps/conn-infra-mq is installed: ${requireError.message}`);
31
- }
32
- }
24
+ // Load queueConfig from mq-client-core (spodní vrstva)
25
+ // NOTE: queueConfig is part of mq-client-core because it's used by both:
26
+ // - Infrastructure services (via mq-client-core)
27
+ // - Business services (via conn-infra-mq connector)
28
+ const queueConfig = options.queueConfig || require('../config/queueConfig');
33
29
 
34
30
  const queuesToCreate = options.queues || [
35
31
  // Workflow infrastructure queues