@mega-yfue/eufy-sdk 0.5.0-beta.10 → 0.5.0-beta.12
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/client/eufy-mega.d.ts +2 -0
- package/dist/client/types.d.ts +1 -1
- package/dist/core/contracts.d.ts +2 -2
- package/dist/index.js +5 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
|
@@ -268,6 +268,8 @@ export declare class EufyMega extends EventEmitter {
|
|
|
268
268
|
* only "differs from what was read before", which state already on hand can satisfy spuriously — and the
|
|
269
269
|
* caller that has no expectation is the push path, where the signal itself is the news that a re-read is owed.
|
|
270
270
|
*
|
|
271
|
+
* Only a write's observation throws at the deadline; a push with nothing moved answers `false`.
|
|
272
|
+
*
|
|
271
273
|
* The cloud half is asked for through {@link DeviceRegistry.refreshedList}, never by fetching the account
|
|
272
274
|
* list outright. The fetch is account-wide — one house list plus one device list per house — so a param that
|
|
273
275
|
* never converges would otherwise spend a whole burst of those every iteration of this loop, and concurrent
|
package/dist/client/types.d.ts
CHANGED
package/dist/core/contracts.d.ts
CHANGED
|
@@ -230,7 +230,7 @@ export interface StateConvergenceFailure {
|
|
|
230
230
|
property: string;
|
|
231
231
|
param: number;
|
|
232
232
|
/** The RAW param value the write asked the device to report. */
|
|
233
|
-
expected
|
|
233
|
+
expected: boolean | number | string;
|
|
234
234
|
/** What the param actually read when the deadline passed, absent where the device reported none at all. */
|
|
235
235
|
observed?: boolean | number | string;
|
|
236
236
|
timeoutMs: number;
|
|
@@ -248,7 +248,7 @@ export declare class StateConvergenceError extends Error {
|
|
|
248
248
|
readonly sn: string;
|
|
249
249
|
readonly property: string;
|
|
250
250
|
readonly param: number;
|
|
251
|
-
readonly expected
|
|
251
|
+
readonly expected: boolean | number | string;
|
|
252
252
|
readonly observed?: boolean | number | string;
|
|
253
253
|
readonly timeoutMs: number;
|
|
254
254
|
constructor(failure: StateConvergenceFailure);
|
package/dist/index.js
CHANGED
|
@@ -16510,7 +16510,7 @@ var P2PSession = class _P2PSession extends EventEmitter2 {
|
|
|
16510
16510
|
camera_type: 0,
|
|
16511
16511
|
entrytype: 0,
|
|
16512
16512
|
key: this.rsaModulus(),
|
|
16513
|
-
streamtype:
|
|
16513
|
+
streamtype: 2,
|
|
16514
16514
|
...payload
|
|
16515
16515
|
} : payload;
|
|
16516
16516
|
const value = JSON.stringify({
|
|
@@ -27345,6 +27345,8 @@ var EufyMega = class extends EventEmitter12 {
|
|
|
27345
27345
|
* only "differs from what was read before", which state already on hand can satisfy spuriously — and the
|
|
27346
27346
|
* caller that has no expectation is the push path, where the signal itself is the news that a re-read is owed.
|
|
27347
27347
|
*
|
|
27348
|
+
* Only a write's observation throws at the deadline; a push with nothing moved answers `false`.
|
|
27349
|
+
*
|
|
27348
27350
|
* The cloud half is asked for through {@link DeviceRegistry.refreshedList}, never by fetching the account
|
|
27349
27351
|
* list outright. The fetch is account-wide — one house list plus one device list per house — so a param that
|
|
27350
27352
|
* never converges would otherwise spend a whole burst of those every iteration of this loop, and concurrent
|
|
@@ -27395,6 +27397,8 @@ var EufyMega = class extends EventEmitter12 {
|
|
|
27395
27397
|
if (refresh.expected !== void 0 && settled())
|
|
27396
27398
|
return true;
|
|
27397
27399
|
}
|
|
27400
|
+
if (refresh.expected === void 0)
|
|
27401
|
+
return false;
|
|
27398
27402
|
throw new StateConvergenceError({
|
|
27399
27403
|
sn,
|
|
27400
27404
|
property: refresh.property,
|