@onlineapps/service-wrapper 2.0.15 → 2.0.16
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 +2 -2
- package/src/ServiceWrapper.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/service-wrapper",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@onlineapps/conn-orch-api-mapper": "^1.0.0",
|
|
32
32
|
"@onlineapps/conn-orch-cookbook": "^2.0.0",
|
|
33
33
|
"@onlineapps/conn-orch-orchestrator": "^1.0.1",
|
|
34
|
-
"@onlineapps/conn-orch-registry": "^1.1.
|
|
34
|
+
"@onlineapps/conn-orch-registry": "^1.1.13",
|
|
35
35
|
"@onlineapps/monitoring-core": "^1.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/src/ServiceWrapper.js
CHANGED
|
@@ -34,6 +34,7 @@ class ServiceWrapper {
|
|
|
34
34
|
* @param {Object} options.server - HTTP server instance
|
|
35
35
|
* @param {Object} options.config - Service and wrapper configuration
|
|
36
36
|
* @param {Object} options.operations - Operations schema
|
|
37
|
+
* @param {Object} [options.validationProof=null] - Optional validation proof {hash, data}
|
|
37
38
|
*/
|
|
38
39
|
constructor(options = {}) {
|
|
39
40
|
this._validateOptions(options);
|
|
@@ -43,6 +44,7 @@ class ServiceWrapper {
|
|
|
43
44
|
this.server = options.server;
|
|
44
45
|
this.config = this._processConfig(options.config);
|
|
45
46
|
this.operations = options.operations;
|
|
47
|
+
this.validationProof = options.validationProof || null;
|
|
46
48
|
|
|
47
49
|
// Initialize connector placeholders
|
|
48
50
|
this.mqClient = null;
|
|
@@ -262,7 +264,8 @@ class ServiceWrapper {
|
|
|
262
264
|
version: this.config.service?.version || '1.0.0',
|
|
263
265
|
registryQueue: 'registry.register', // Use correct queue name
|
|
264
266
|
registryUrl: registryUrl,
|
|
265
|
-
logger: this.logger || console
|
|
267
|
+
logger: this.logger || console,
|
|
268
|
+
validationProof: this.validationProof // Inject validation proof
|
|
266
269
|
});
|
|
267
270
|
|
|
268
271
|
// Initialize registry client connection
|