@camstack/addon-provider-reolink 1.0.6 → 1.0.7

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
@@ -4655,7 +4655,7 @@ function _instanceof(cls, params = {}) {
4655
4655
  return inst;
4656
4656
  }
4657
4657
  //#endregion
4658
- //#region ../types/dist/sleep-D7JeS58T.mjs
4658
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4659
4659
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4660
4660
  EventCategory["SystemBoot"] = "system.boot";
4661
4661
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5629,7 +5629,7 @@ var BaseAddon = class {
5629
5629
  deviceSettingsSchema() {
5630
5630
  return null;
5631
5631
  }
5632
- async getGlobalSettings(overlay, cap) {
5632
+ async getGlobalSettings(overlay, cap, _nodeId) {
5633
5633
  const schema = this.globalSettingsSchema(cap);
5634
5634
  if (!schema) return { sections: [] };
5635
5635
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5638,7 +5638,7 @@ var BaseAddon = class {
5638
5638
  ...overlay
5639
5639
  } : raw);
5640
5640
  }
5641
- async updateGlobalSettings(patch) {
5641
+ async updateGlobalSettings(patch, _nodeId) {
5642
5642
  await this._ctx?.settings?.writeAddonStore(patch);
5643
5643
  await this.resolveConfig();
5644
5644
  await this.onConfigChanged();
@@ -218168,7 +218168,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
218168
218168
  try {
218169
218169
  api = await withTimeout(this.ensureApi(), 1e4, "ensureApi");
218170
218170
  } catch (err) {
218171
- throw new Error(`buildStreamCatalog: ensureApi failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, err instanceof Error ? { cause: err } : void 0);
218171
+ throw new Error(`buildStreamCatalog: ensureApi failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, { cause: err });
218172
218172
  }
218173
218173
  let streamOptions;
218174
218174
  const isChild = this.isHubChild();
@@ -218180,7 +218180,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
218180
218180
  try {
218181
218181
  streamOptions = await withTimeout(buildOptions ? api.buildVideoStreamOptions(buildOptions) : api.buildVideoStreamOptions(), 1e4, "buildVideoStreamOptions");
218182
218182
  } catch (err) {
218183
- throw new Error(`buildStreamCatalog: buildVideoStreamOptions failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, err instanceof Error ? { cause: err } : void 0);
218183
+ throw new Error(`buildStreamCatalog: buildVideoStreamOptions failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, { cause: err });
218184
218184
  }
218185
218185
  const channelCount = this.channelCount();
218186
218186
  const desired = /* @__PURE__ */ new Map();
package/dist/addon.mjs CHANGED
@@ -4650,7 +4650,7 @@ function _instanceof(cls, params = {}) {
4650
4650
  return inst;
4651
4651
  }
4652
4652
  //#endregion
4653
- //#region ../types/dist/sleep-D7JeS58T.mjs
4653
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4654
4654
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4655
4655
  EventCategory["SystemBoot"] = "system.boot";
4656
4656
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5624,7 +5624,7 @@ var BaseAddon = class {
5624
5624
  deviceSettingsSchema() {
5625
5625
  return null;
5626
5626
  }
5627
- async getGlobalSettings(overlay, cap) {
5627
+ async getGlobalSettings(overlay, cap, _nodeId) {
5628
5628
  const schema = this.globalSettingsSchema(cap);
5629
5629
  if (!schema) return { sections: [] };
5630
5630
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5633,7 +5633,7 @@ var BaseAddon = class {
5633
5633
  ...overlay
5634
5634
  } : raw);
5635
5635
  }
5636
- async updateGlobalSettings(patch) {
5636
+ async updateGlobalSettings(patch, _nodeId) {
5637
5637
  await this._ctx?.settings?.writeAddonStore(patch);
5638
5638
  await this.resolveConfig();
5639
5639
  await this.onConfigChanged();
@@ -218148,7 +218148,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
218148
218148
  try {
218149
218149
  api = await withTimeout(this.ensureApi(), 1e4, "ensureApi");
218150
218150
  } catch (err) {
218151
- throw new Error(`buildStreamCatalog: ensureApi failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, err instanceof Error ? { cause: err } : void 0);
218151
+ throw new Error(`buildStreamCatalog: ensureApi failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, { cause: err });
218152
218152
  }
218153
218153
  let streamOptions;
218154
218154
  const isChild = this.isHubChild();
@@ -218160,7 +218160,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
218160
218160
  try {
218161
218161
  streamOptions = await withTimeout(buildOptions ? api.buildVideoStreamOptions(buildOptions) : api.buildVideoStreamOptions(), 1e4, "buildVideoStreamOptions");
218162
218162
  } catch (err) {
218163
- throw new Error(`buildStreamCatalog: buildVideoStreamOptions failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, err instanceof Error ? { cause: err } : void 0);
218163
+ throw new Error(`buildStreamCatalog: buildVideoStreamOptions failed for device ${this.id}: ${err instanceof Error ? err.message : String(err)}`, { cause: err });
218164
218164
  }
218165
218165
  const channelCount = this.channelCount();
218166
218166
  const desired = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",