@onlineapps/service-wrapper 2.0.20 → 2.0.21

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.20",
3
+ "version": "2.0.21",
4
4
  "description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -684,7 +684,15 @@ class ServiceWrapper {
684
684
  throw new Error('Monitoring must be initialized before validation');
685
685
  }
686
686
 
687
- const { name: serviceName, version: serviceVersion } = this.config.service;
687
+ const { name: serviceName, version: serviceVersion, port: servicePort } = this.config.service;
688
+
689
+ // Validate service port is configured
690
+ if (!servicePort) {
691
+ throw new Error('Service port is required for validation (config.service.port)');
692
+ }
693
+
694
+ // Build service URL for validation (HTTP calls to running server)
695
+ const serviceUrl = `http://localhost:${servicePort}`;
688
696
 
689
697
  console.log('[ServiceWrapper] Checking validation proof...');
690
698
 
@@ -692,6 +700,7 @@ class ServiceWrapper {
692
700
  serviceRoot: this.serviceRoot,
693
701
  serviceName,
694
702
  serviceVersion,
703
+ serviceUrl,
695
704
  logger: this.logger
696
705
  });
697
706