@camstack/addon-provider-reolink 1.2.8 → 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
@@ -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
@@ -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.8",
3
+ "version": "1.2.9",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",