@cadenza.io/service 1.12.5 → 1.12.6

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/dist/index.js CHANGED
@@ -337,7 +337,7 @@ var ServiceRegistry = class _ServiceRegistry {
337
337
  this.handleInstanceUpdateTask = CadenzaService.createMetaTask(
338
338
  "Handle Instance Update",
339
339
  (ctx, emit) => {
340
- var _a2;
340
+ var _a2, _b2;
341
341
  const { serviceInstance } = ctx;
342
342
  const { uuid: uuid4, serviceName, address, port, exposed } = serviceInstance;
343
343
  if (uuid4 === this.serviceInstanceId) return;
@@ -345,15 +345,6 @@ var ServiceRegistry = class _ServiceRegistry {
345
345
  this.instances.set(serviceName, []);
346
346
  const instances = this.instances.get(serviceName);
347
347
  const existing = instances.find((i) => i.uuid === uuid4);
348
- console.log(
349
- "Instance update",
350
- serviceName,
351
- existing,
352
- serviceInstance,
353
- instances,
354
- this.deputies,
355
- this.remoteSignals
356
- );
357
348
  if (existing) {
358
349
  Object.assign(existing, serviceInstance);
359
350
  } else {
@@ -361,12 +352,11 @@ var ServiceRegistry = class _ServiceRegistry {
361
352
  const clientCreated = instances == null ? void 0 : instances.some(
362
353
  (i) => i.address === address && i.port === port && i.clientCreated && i.isActive
363
354
  );
364
- console.log("Client created", clientCreated);
365
355
  if (!clientCreated) {
366
356
  try {
367
357
  const communicationTypes = Array.from(
368
358
  new Set(
369
- (_a2 = this.deputies.get(serviceName).map((d) => d.communicationType)) != null ? _a2 : []
359
+ (_b2 = (_a2 = this.deputies.get(serviceName)) == null ? void 0 : _a2.map((d) => d.communicationType)) != null ? _b2 : []
370
360
  )
371
361
  );
372
362
  if (!communicationTypes.includes("signal") && (this.remoteSignals.has(serviceName) || this.remoteSignals.has("*"))) {