@mega-yfue/eufy-sdk 0.4.0-beta.22 → 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 +4 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27382,7 +27382,10 @@ var EufyMega = class extends EventEmitter9 {
|
|
|
27382
27382
|
thumbnailUrl: ev.thumbnailUrl,
|
|
27383
27383
|
payload: ev.payload
|
|
27384
27384
|
};
|
|
27385
|
-
|
|
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) {
|
|
27386
27389
|
this.emitSemantic(out.event, out.payload, { edge: true, refresh: out.refresh });
|
|
27387
27390
|
const dsn = out.payload.deviceSn ?? ev.deviceSn;
|
|
27388
27391
|
if (dsn)
|