@mega-yfue/eufy-sdk 0.4.0-beta.24 → 0.4.0-beta.26
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
|
@@ -21584,9 +21584,9 @@ var P2PCommandRouter = class _P2PCommandRouter {
|
|
|
21584
21584
|
*
|
|
21585
21585
|
* Reached two ways, both idempotent: the session's own `close` event, when it died while still the
|
|
21586
21586
|
* station's registered session, and {@link SessionManagerOpts.onAutoClose}, when the manager closed it
|
|
21587
|
-
* unasked. A close a CALLER made is deliberately not routed here — {@link closeAll}
|
|
21588
|
-
* sources first,
|
|
21589
|
-
* on the replacement session.
|
|
21587
|
+
* unasked. A close a CALLER made is deliberately not routed here — {@link closeAll} and
|
|
21588
|
+
* {@link resolveSession} dispose their own sources first, while {@link replaceUnreachableSession} keeps
|
|
21589
|
+
* its source alive on purpose to rewarm it on the replacement session.
|
|
21590
21590
|
*/
|
|
21591
21591
|
tearDownStation(stationSn) {
|
|
21592
21592
|
this.manager.remove(stationSn);
|
|
@@ -21905,9 +21905,10 @@ var P2PCommandRouter = class _P2PCommandRouter {
|
|
|
21905
21905
|
*
|
|
21906
21906
|
* A session whose {@link P2PSession.pathAnswering} is false is closed and re-resolved before it is handed
|
|
21907
21907
|
* over: the station answers every heartbeat, so a path silent past several of them is gone. A session
|
|
21908
|
-
* reporting nothing about its path is not reporting that evidence and is handed over as it is.
|
|
21909
|
-
*
|
|
21910
|
-
*
|
|
21908
|
+
* reporting nothing about its path is not reporting that evidence and is handed over as it is. Cached live
|
|
21909
|
+
* sources on the replaced session are discarded before closing it (see {@link tearDownStation}).
|
|
21910
|
+
* Replaced at most once per resolution, so a station whose replacement is silent too is returned rather
|
|
21911
|
+
* than closed again.
|
|
21911
21912
|
*/
|
|
21912
21913
|
async resolveSession(sn, opts = {}, rebuilt = false) {
|
|
21913
21914
|
const dev = await this.deviceFor(sn);
|
|
@@ -21921,6 +21922,10 @@ var P2PCommandRouter = class _P2PCommandRouter {
|
|
|
21921
21922
|
}
|
|
21922
21923
|
if (session.pathAnswering === false && !rebuilt) {
|
|
21923
21924
|
(this.deps.logger ?? noopLogger).debug(`[p2p] ${parentSn} path stopped answering \u2014 rebuilding before use`);
|
|
21925
|
+
for (const [key, sessionKey] of [...this.liveSessionKeys]) {
|
|
21926
|
+
if (sessionKey === parentSn)
|
|
21927
|
+
this.dropLiveSource(key);
|
|
21928
|
+
}
|
|
21924
21929
|
await this.manager.close(parentSn).catch((error) => this.reportError(error instanceof Error ? error : new Error(String(error))));
|
|
21925
21930
|
return await this.resolveSession(sn, opts, true);
|
|
21926
21931
|
}
|
|
@@ -28683,6 +28688,7 @@ export {
|
|
|
28683
28688
|
buildEventIndex,
|
|
28684
28689
|
buildModelIndex,
|
|
28685
28690
|
buildRealtimeInit,
|
|
28691
|
+
cameraPowerTier,
|
|
28686
28692
|
captureSnapshotFromShared,
|
|
28687
28693
|
cellAtPoint,
|
|
28688
28694
|
claimedParams,
|