@onlineapps/service-wrapper 2.0.4 → 2.0.5

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/service-wrapper",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -254,8 +254,11 @@ class ServiceWrapper {
254
254
  });
255
255
  await this.mqClient.connect();
256
256
 
257
- // Initialize registry client
257
+ // Initialize registry client with required parameters
258
258
  this.registryClient = new RegistryConnector.ServiceRegistryClient({
259
+ amqpUrl: rabbitUrl,
260
+ serviceName: this.serviceName,
261
+ version: this.openApiSpec?.info?.version || '1.0.0',
259
262
  registryUrl: this.config.registry || process.env.REGISTRY_URL || 'http://localhost:4000',
260
263
  logger: this.logger
261
264
  });