@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/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apocaliss92/scrypted-reolink-native",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Use any reolink camera with Scrypted, even older/unsupported models without HTTP protocol support",
5
5
  "author": "@apocaliss92",
6
6
  "license": "Apache",
@@ -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