@onlineapps/mq-client-core 1.0.28 → 1.0.30

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.28",
3
+ "version": "1.0.30",
4
4
  "description": "Core MQ client library for RabbitMQ - shared by infrastructure services and connectors",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -284,13 +284,12 @@ class RabbitMQClient extends EventEmitter {
284
284
  if (!queue.startsWith('rpc.reply.')) {
285
285
  // CRITICAL: Use queueConfig.js to get correct parameters (TTL, max-length, etc.)
286
286
  // This prevents 406 PRECONDITION-FAILED errors from TTL mismatches
287
- // Note: mq-client-core is for infrastructure services, but we need queueConfig from conn-infra-mq
288
- // Try to load it - if it fails, we'll use defaults
287
+ // Use local queueConfig from mq-client-core (it has infrastructure queue configs)
289
288
  let queueConfig = null;
290
289
  try {
291
- queueConfig = require('@onlineapps/conn-infra-mq/src/config/queueConfig');
290
+ queueConfig = require('../config/queueConfig');
292
291
  } catch (requireErr) {
293
- console.warn(`[RabbitMQClient] [mq-client-core] [CONSUMER] Cannot load queueConfig from @onlineapps/conn-infra-mq:`, requireErr.message);
292
+ console.warn(`[RabbitMQClient] [mq-client-core] [CONSUMER] Cannot load queueConfig:`, requireErr.message);
294
293
  console.warn(`[RabbitMQClient] [mq-client-core] [CONSUMER] Using default queue options (this may cause 406 errors if queue exists with different args)`);
295
294
  }
296
295