@apocaliss92/scrypted-reolink-native 0.2.8 → 0.2.10
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/main.nodejs.js +1 -1
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/baichuan-base.ts +3 -3
- package/src/camera.ts +105 -186
- package/src/debug-options.ts +4 -12
- package/src/intercom.ts +1 -1
- package/src/main.ts +2 -2
- package/src/multiFocal.ts +19 -3
- package/src/stream-utils.ts +129 -98
- package/src/utils.ts +2 -2
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/baichuan-base.ts
CHANGED
|
@@ -366,7 +366,7 @@ export abstract class BaseBaichuanClass extends ScryptedDeviceBase {
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
catch (e) {
|
|
369
|
-
logger.debug(`Could not get connection state: ${e}`);
|
|
369
|
+
logger.debug(`Could not get connection state: ${e?.message || String(e)}`);
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
const now = Date.now();
|
|
@@ -500,7 +500,7 @@ export abstract class BaseBaichuanClass extends ScryptedDeviceBase {
|
|
|
500
500
|
logger.log('Subscribed to Baichuan events');
|
|
501
501
|
}
|
|
502
502
|
catch (e) {
|
|
503
|
-
logger.warn('Failed to subscribe to events', e);
|
|
503
|
+
logger.warn('Failed to subscribe to events', e?.message || String(e));
|
|
504
504
|
this.eventSubscriptionActive = false;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
@@ -519,7 +519,7 @@ export abstract class BaseBaichuanClass extends ScryptedDeviceBase {
|
|
|
519
519
|
logger.debug('Unsubscribed from Baichuan events');
|
|
520
520
|
}
|
|
521
521
|
catch (e) {
|
|
522
|
-
logger.warn('Error unsubscribing from events', e);
|
|
522
|
+
logger.warn('Error unsubscribing from events', e?.message || String(e));
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
|