@onlineapps/mq-client-core 1.0.17 → 1.0.18
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 +1 -1
- package/src/index.js +6 -5
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -21,7 +21,7 @@ const { initInfrastructureQueues } = require('./utils/initInfrastructureQueues')
|
|
|
21
21
|
// Export BaseClient as default, with additional exports
|
|
22
22
|
// NOTE: When destructuring, use: const { initInfrastructureQueues } = require('@onlineapps/mq-client-core');
|
|
23
23
|
// When using default, use: const BaseClient = require('@onlineapps/mq-client-core');
|
|
24
|
-
const
|
|
24
|
+
const mqExports = {
|
|
25
25
|
BaseClient,
|
|
26
26
|
RabbitMQClient,
|
|
27
27
|
initInfrastructureQueues,
|
|
@@ -34,10 +34,11 @@ const exports = {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
// Set default export
|
|
38
|
-
|
|
39
|
-
Object.
|
|
37
|
+
// Set BaseClient as default export (for backward compatibility)
|
|
38
|
+
// Also attach all properties to the exported object
|
|
39
|
+
Object.setPrototypeOf(mqExports, BaseClient);
|
|
40
|
+
Object.assign(mqExports, BaseClient);
|
|
40
41
|
|
|
41
42
|
// Export as both default and named exports
|
|
42
|
-
module.exports =
|
|
43
|
+
module.exports = mqExports;
|
|
43
44
|
|