@onlineapps/service-wrapper 2.3.6 → 2.3.8

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.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -29,9 +29,9 @@
29
29
  "@onlineapps/conn-base-monitoring": "1.0.10",
30
30
  "@onlineapps/conn-infra-error-handler": "1.0.9",
31
31
  "@onlineapps/conn-infra-mq": "1.1.69",
32
- "@onlineapps/conn-orch-api-mapper": "1.0.32",
32
+ "@onlineapps/conn-orch-api-mapper": "1.0.33",
33
33
  "@onlineapps/conn-orch-cookbook": "2.0.38",
34
- "@onlineapps/conn-orch-orchestrator": "1.0.108",
34
+ "@onlineapps/conn-orch-orchestrator": "1.0.109",
35
35
  "@onlineapps/conn-orch-registry": "1.1.55",
36
36
  "@onlineapps/conn-orch-validator": "2.0.33",
37
37
  "@onlineapps/monitoring-core": "1.0.21",
@@ -483,7 +483,7 @@ class ServiceWrapper {
483
483
 
484
484
  async initialize() {
485
485
  if (this.isInitialized) {
486
- // Logger might not be initialized yet, use console as fallback
486
+ // INTENTIONAL FALLBACK: bootstrap logger see docs/standards/FALLBACKS_INVENTORY.md §5.1
487
487
  (this.logger || console).warn('ServiceWrapper already initialized');
488
488
  return;
489
489
  }
@@ -822,6 +822,7 @@ class ServiceWrapper {
822
822
  prefetch: this.config.wrapper?.mq?.prefetch || 10,
823
823
  durable: true,
824
824
  noAck: false,
825
+ // INTENTIONAL FALLBACK: bootstrap logger — see docs/standards/FALLBACKS_INVENTORY.md §5.1
825
826
  logger: this.logger || console,
826
827
  ...healthCheckConfig
827
828
  });
@@ -921,8 +922,9 @@ class ServiceWrapper {
921
922
  specificationEndpoint: specificationEndpoint,
922
923
  registryQueue: 'registry.register', // Use correct queue name
923
924
  registryUrl: registryUrl,
924
- logger: this.logger || console, // Use console as fallback if logger not yet initialized
925
- validationProof: this.validationProof // Inject validation proof
925
+ // INTENTIONAL FALLBACK: bootstrap logger see docs/standards/FALLBACKS_INVENTORY.md §5.1
926
+ logger: this.logger || console,
927
+ validationProof: this.validationProof
926
928
  });
927
929
 
928
930
  // Initialize registry client connection
@@ -1978,12 +1980,14 @@ class ServiceWrapper {
1978
1980
  const serviceVersion = this.config.service?.version;
1979
1981
  const serviceUrl = this.config.service?.url;
1980
1982
 
1983
+ // INTENTIONAL FALLBACK: bootstrap logger — see docs/standards/FALLBACKS_INVENTORY.md §5.1
1984
+ const validationLogger = this.logger || console;
1981
1985
  const orchestrator = this._injectedValidationOrchestrator || new ValidationOrchestrator({
1982
1986
  serviceRoot: this.serviceRoot,
1983
1987
  serviceName,
1984
1988
  serviceVersion,
1985
1989
  serviceUrl,
1986
- logger: this.logger
1990
+ logger: validationLogger
1987
1991
  });
1988
1992
 
1989
1993
  const result = await orchestrator.validate();
@@ -2224,12 +2228,14 @@ class ServiceWrapper {
2224
2228
 
2225
2229
  this.logger?.info('[ServiceWrapper] Checking validation proof...');
2226
2230
 
2231
+ // INTENTIONAL FALLBACK: bootstrap logger — see docs/standards/FALLBACKS_INVENTORY.md §5.1
2232
+ const revalidationLogger = this.logger || console;
2227
2233
  const orchestrator = this._injectedValidationOrchestrator || new ValidationOrchestrator({
2228
2234
  serviceRoot: this.serviceRoot,
2229
2235
  serviceName,
2230
2236
  serviceVersion,
2231
2237
  serviceUrl,
2232
- logger: this.logger
2238
+ logger: revalidationLogger
2233
2239
  });
2234
2240
 
2235
2241
  // Startup retry loop with fast backoff