@camstack/addon-provider-reolink 1.2.7 → 1.2.9

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/addon.js CHANGED
@@ -225404,7 +225404,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
225404
225404
  if (this.batteryUpdateInFlight) return this.batteryUpdateInFlight;
225405
225405
  const cycle = (async () => {
225406
225406
  try {
225407
- if (!this.allowProactiveCameraAccess("battery-update")) {
225407
+ if (this.isBattery && this.sleeping) {
225408
225408
  this.ctx.logger.debug("battery-update: cam sleeping — skipping cycle without connecting", { tags: { deviceId: this.id } });
225409
225409
  return;
225410
225410
  }
@@ -227262,11 +227262,8 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
227262
227262
  if (this.api) return this.api;
227263
227263
  if (this.loginPromise) return this.loginPromise;
227264
227264
  if (this.isBattery && this.sleeping) {
227265
- const frames = (/* @__PURE__ */ new Error("wake-attribution")).stack?.split("\n").slice(2, 7).join(" | ");
227266
- this.ctx.logger.info("battery cam login while sleeping — this wakes the camera", {
227267
- tags: { deviceId: this.id },
227268
- meta: { caller: frames ?? "unavailable" }
227269
- });
227265
+ const frames = (/* @__PURE__ */ new Error("wake-attribution")).stack?.split("\n").slice(2, 7).map((l) => l.trim()).join(" <- ") ?? "stack unavailable";
227266
+ this.ctx.logger.info(`battery cam login while sleeping — this wakes the camera. caller: ${frames}`, { tags: { deviceId: this.id } });
227270
227267
  }
227271
227268
  const host = this.config.get("host");
227272
227269
  const port = this.config.get("port");
package/dist/addon.mjs CHANGED
@@ -225384,7 +225384,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
225384
225384
  if (this.batteryUpdateInFlight) return this.batteryUpdateInFlight;
225385
225385
  const cycle = (async () => {
225386
225386
  try {
225387
- if (!this.allowProactiveCameraAccess("battery-update")) {
225387
+ if (this.isBattery && this.sleeping) {
225388
225388
  this.ctx.logger.debug("battery-update: cam sleeping — skipping cycle without connecting", { tags: { deviceId: this.id } });
225389
225389
  return;
225390
225390
  }
@@ -227242,11 +227242,8 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
227242
227242
  if (this.api) return this.api;
227243
227243
  if (this.loginPromise) return this.loginPromise;
227244
227244
  if (this.isBattery && this.sleeping) {
227245
- const frames = (/* @__PURE__ */ new Error("wake-attribution")).stack?.split("\n").slice(2, 7).join(" | ");
227246
- this.ctx.logger.info("battery cam login while sleeping — this wakes the camera", {
227247
- tags: { deviceId: this.id },
227248
- meta: { caller: frames ?? "unavailable" }
227249
- });
227245
+ const frames = (/* @__PURE__ */ new Error("wake-attribution")).stack?.split("\n").slice(2, 7).map((l) => l.trim()).join(" <- ") ?? "stack unavailable";
227246
+ this.ctx.logger.info(`battery cam login while sleeping — this wakes the camera. caller: ${frames}`, { tags: { deviceId: this.id } });
227250
227247
  }
227251
227248
  const host = this.config.get("host");
227252
227249
  const port = this.config.get("port");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",