@mega-yfue/eufy-sdk 0.4.0-beta.21 → 0.4.0-beta.23

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
@@ -15714,7 +15714,8 @@ var P2PSession = class _P2PSession extends EventEmitter2 {
15714
15714
  this.trace({
15715
15715
  phase: "lookup-channels",
15716
15716
  local: !this.cfg.noBroadcast || this.cfg.localAddress !== void 0,
15717
- cloud: this.cloudLookup !== void 0
15717
+ cloud: this.cloudLookup !== void 0,
15718
+ ...this.cloudLookup ? {} : { cloudMissing: dskKey ? "cloud-addresses" : "dsk-key" }
15718
15719
  });
15719
15720
  this.sendLookups();
15720
15721
  this.lookupTimer = setInterval(() => this.sendLookups(), LOOKUP_RETRY_MS);
@@ -27381,7 +27382,10 @@ var EufyMega = class extends EventEmitter9 {
27381
27382
  thumbnailUrl: ev.thumbnailUrl,
27382
27383
  payload: ev.payload
27383
27384
  };
27384
- for (const out of decodeEvent(signal2, this.capsForEvent(ev.deviceSn))) {
27385
+ const caps = this.capsForEvent(ev.deviceSn);
27386
+ const decoded = decodeEvent(signal2, caps);
27387
+ this.opts.logger?.debug(`[push] in: eventType=${ev.eventType} device=${caps ? "known" : ev.deviceSn ? "unknown" : "none"} events=${decoded.length}`);
27388
+ for (const out of decoded) {
27385
27389
  this.emitSemantic(out.event, out.payload, { edge: true, refresh: out.refresh });
27386
27390
  const dsn = out.payload.deviceSn ?? ev.deviceSn;
27387
27391
  if (dsn)