@onlineapps/conn-orch-registry 1.1.54 → 1.1.55
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/registryClient.js +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-registry",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.55",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Connector-registry-client provides the core communication mechanism for microservices in this environment. It enables them to interact with a services_registry to receive and fulfill tasks by submitting heartbeats or their API descriptions.",
|
|
6
6
|
"keywords": [
|
package/src/registryClient.js
CHANGED
|
@@ -185,10 +185,18 @@ class ServiceRegistryClient extends EventEmitter {
|
|
|
185
185
|
if (payload.type === 'apiDescriptionRequest' &&
|
|
186
186
|
payload.serviceName === this.serviceName &&
|
|
187
187
|
payload.version === this.version) {
|
|
188
|
-
// Emit API description request event
|
|
189
188
|
this.emit('apiDescriptionRequest', payload);
|
|
190
189
|
}
|
|
191
190
|
|
|
191
|
+
// Handle revalidation request from registry (infra version change)
|
|
192
|
+
if (payload.type === 'revalidate') {
|
|
193
|
+
console.log(`[RegistryClient] ${this.serviceName}: Received revalidation request`, {
|
|
194
|
+
reason: payload.reason,
|
|
195
|
+
infraFingerprint: payload.infraFingerprint?.substring(0, 16)
|
|
196
|
+
});
|
|
197
|
+
this.emit('revalidate', payload);
|
|
198
|
+
}
|
|
199
|
+
|
|
192
200
|
// Handle registration response from registry
|
|
193
201
|
// Registry sends 'register.confirmed' after validation
|
|
194
202
|
if ((payload.type === 'registerResponse' || payload.type === 'register.confirmed') && payload.requestId) {
|