@camstack/addon-provider-reolink 1.2.199 → 1.2.200

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
@@ -5451,7 +5451,7 @@ var ZodIssueCode = {
5451
5451
  var ZodFirstPartyTypeKind;
5452
5452
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5453
5453
  //#endregion
5454
- //#region ../types/dist/sleep-CSuN0thG.mjs
5454
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5455
5455
  /**
5456
5456
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5457
5457
  * window to float samples (D455).
@@ -5568,7 +5568,7 @@ function isKeychainStoredField(field) {
5568
5568
  var SECRET_CLEAR = { $secretClear: true };
5569
5569
  /** The `'***'` token D634 redaction writes for non-admins. */
5570
5570
  var LEGACY_DEVICE_REDACTION = "***";
5571
- function isRecord$5(value) {
5571
+ function isRecord$6(value) {
5572
5572
  return typeof value === "object" && value !== null && !Array.isArray(value);
5573
5573
  }
5574
5574
  function makeSecretMarker(ref) {
@@ -5579,16 +5579,16 @@ function makeSecretMarker(ref) {
5579
5579
  }
5580
5580
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5581
5581
  function isSecretMarker(value) {
5582
- if (!isRecord$5(value)) return false;
5582
+ if (!isRecord$6(value)) return false;
5583
5583
  const ref = value["$secret"];
5584
5584
  return typeof ref === "string" && ref.length > 0;
5585
5585
  }
5586
5586
  /** Anything carrying a `$secret` key — a stored marker or a UI view of one. */
5587
5587
  function isSecretMarkerLike(value) {
5588
- return isRecord$5(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
5588
+ return isRecord$6(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
5589
5589
  }
5590
5590
  function isSecretClear(value) {
5591
- return isRecord$5(value) && value["$secretClear"] === true;
5591
+ return isRecord$6(value) && value["$secretClear"] === true;
5592
5592
  }
5593
5593
  /**
5594
5594
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6198,7 +6198,7 @@ var KeychainWriteRefusedError = class extends Error {
6198
6198
  }
6199
6199
  };
6200
6200
  var KEEP = { kind: "keep" };
6201
- function isRecord$4(value) {
6201
+ function isRecord$5(value) {
6202
6202
  return typeof value === "object" && value !== null && !Array.isArray(value);
6203
6203
  }
6204
6204
  function defaultMintId() {
@@ -6211,7 +6211,7 @@ function collectSecretMarkerRefs(value, out = []) {
6211
6211
  return out;
6212
6212
  }
6213
6213
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6214
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6214
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6215
6215
  return out;
6216
6216
  }
6217
6217
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6266,7 +6266,7 @@ function rowId(row, idKey) {
6266
6266
  return null;
6267
6267
  }
6268
6268
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6269
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6269
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6270
6270
  if (!Array.isArray(incoming)) {
6271
6271
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6272
6272
  return {
@@ -6282,7 +6282,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6282
6282
  const kept = /* @__PURE__ */ new Set();
6283
6283
  const rows = [];
6284
6284
  for (const row of incoming) {
6285
- if (!isRecord$4(row)) {
6285
+ if (!isRecord$5(row)) {
6286
6286
  rows.push(row);
6287
6287
  continue;
6288
6288
  }
@@ -6307,7 +6307,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6307
6307
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6308
6308
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6309
6309
  case "object": {
6310
- if (!isRecord$4(incoming)) {
6310
+ if (!isRecord$5(incoming)) {
6311
6311
  if (incoming === void 0) return KEEP;
6312
6312
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6313
6313
  return {
@@ -6315,7 +6315,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6315
6315
  value: incoming
6316
6316
  };
6317
6317
  }
6318
- const storedObj = isRecord$4(stored) ? stored : {};
6318
+ const storedObj = isRecord$5(stored) ? stored : {};
6319
6319
  return {
6320
6320
  kind: "value",
6321
6321
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6438,7 +6438,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6438
6438
  value: items
6439
6439
  };
6440
6440
  }
6441
- if (isRecord$4(v)) {
6441
+ if (isRecord$5(v)) {
6442
6442
  const out = {};
6443
6443
  for (const [k, child] of Object.entries(v)) {
6444
6444
  const s = substitute(child);
@@ -6470,7 +6470,7 @@ var SecretOverwriteRefusedError = class extends Error {
6470
6470
  this.name = "SecretOverwriteRefusedError";
6471
6471
  }
6472
6472
  };
6473
- function isRecord$3(value) {
6473
+ function isRecord$4(value) {
6474
6474
  return typeof value === "object" && value !== null && !Array.isArray(value);
6475
6475
  }
6476
6476
  function resolvedValue(pass, marker) {
@@ -6499,7 +6499,7 @@ function inArray(pass, incoming, stored) {
6499
6499
  return incoming.map((item, index) => {
6500
6500
  const twin = stored[index];
6501
6501
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6502
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6502
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6503
6503
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6504
6504
  return item;
6505
6505
  });
@@ -6510,7 +6510,7 @@ function inArrayRow(pass, incoming, stored) {
6510
6510
  const twin = stored[key];
6511
6511
  if (isSecretMarker(twin)) {
6512
6512
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6513
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6513
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6514
6514
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6515
6515
  }
6516
6516
  return out;
@@ -6518,7 +6518,7 @@ function inArrayRow(pass, incoming, stored) {
6518
6518
  async function walk(pass, incoming, stored) {
6519
6519
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6520
6520
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6521
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6521
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6522
6522
  const out = { ...incoming };
6523
6523
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6524
6524
  return out;
@@ -6549,7 +6549,7 @@ async function restoreUnchangedSecrets(input) {
6549
6549
  function isJsonEqual(a, b) {
6550
6550
  if (Object.is(a, b)) return true;
6551
6551
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6552
- if (isRecord$3(a) && isRecord$3(b)) {
6552
+ if (isRecord$4(a) && isRecord$4(b)) {
6553
6553
  const keys = Object.keys(a);
6554
6554
  if (keys.length !== Object.keys(b).length) return false;
6555
6555
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6573,7 +6573,7 @@ function markerKeysOf(blob, owner) {
6573
6573
  }
6574
6574
  function nodeFromStored(value, owner) {
6575
6575
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6576
- if (!isRecord$3(value)) return null;
6576
+ if (!isRecord$4(value)) return null;
6577
6577
  const children = /* @__PURE__ */ new Map();
6578
6578
  for (const [key, child] of Object.entries(value)) {
6579
6579
  const node = nodeFromStored(child, owner);
package/dist/addon.mjs CHANGED
@@ -5443,7 +5443,7 @@ var ZodIssueCode = {
5443
5443
  var ZodFirstPartyTypeKind;
5444
5444
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5445
5445
  //#endregion
5446
- //#region ../types/dist/sleep-CSuN0thG.mjs
5446
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5447
5447
  /**
5448
5448
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5449
5449
  * window to float samples (D455).
@@ -5560,7 +5560,7 @@ function isKeychainStoredField(field) {
5560
5560
  var SECRET_CLEAR = { $secretClear: true };
5561
5561
  /** The `'***'` token D634 redaction writes for non-admins. */
5562
5562
  var LEGACY_DEVICE_REDACTION = "***";
5563
- function isRecord$5(value) {
5563
+ function isRecord$6(value) {
5564
5564
  return typeof value === "object" && value !== null && !Array.isArray(value);
5565
5565
  }
5566
5566
  function makeSecretMarker(ref) {
@@ -5571,16 +5571,16 @@ function makeSecretMarker(ref) {
5571
5571
  }
5572
5572
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5573
5573
  function isSecretMarker(value) {
5574
- if (!isRecord$5(value)) return false;
5574
+ if (!isRecord$6(value)) return false;
5575
5575
  const ref = value["$secret"];
5576
5576
  return typeof ref === "string" && ref.length > 0;
5577
5577
  }
5578
5578
  /** Anything carrying a `$secret` key — a stored marker or a UI view of one. */
5579
5579
  function isSecretMarkerLike(value) {
5580
- return isRecord$5(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
5580
+ return isRecord$6(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
5581
5581
  }
5582
5582
  function isSecretClear(value) {
5583
- return isRecord$5(value) && value["$secretClear"] === true;
5583
+ return isRecord$6(value) && value["$secretClear"] === true;
5584
5584
  }
5585
5585
  /**
5586
5586
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6190,7 +6190,7 @@ var KeychainWriteRefusedError = class extends Error {
6190
6190
  }
6191
6191
  };
6192
6192
  var KEEP = { kind: "keep" };
6193
- function isRecord$4(value) {
6193
+ function isRecord$5(value) {
6194
6194
  return typeof value === "object" && value !== null && !Array.isArray(value);
6195
6195
  }
6196
6196
  function defaultMintId() {
@@ -6203,7 +6203,7 @@ function collectSecretMarkerRefs(value, out = []) {
6203
6203
  return out;
6204
6204
  }
6205
6205
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6206
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6206
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6207
6207
  return out;
6208
6208
  }
6209
6209
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6258,7 +6258,7 @@ function rowId(row, idKey) {
6258
6258
  return null;
6259
6259
  }
6260
6260
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6261
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6261
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6262
6262
  if (!Array.isArray(incoming)) {
6263
6263
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6264
6264
  return {
@@ -6274,7 +6274,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6274
6274
  const kept = /* @__PURE__ */ new Set();
6275
6275
  const rows = [];
6276
6276
  for (const row of incoming) {
6277
- if (!isRecord$4(row)) {
6277
+ if (!isRecord$5(row)) {
6278
6278
  rows.push(row);
6279
6279
  continue;
6280
6280
  }
@@ -6299,7 +6299,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6299
6299
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6300
6300
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6301
6301
  case "object": {
6302
- if (!isRecord$4(incoming)) {
6302
+ if (!isRecord$5(incoming)) {
6303
6303
  if (incoming === void 0) return KEEP;
6304
6304
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6305
6305
  return {
@@ -6307,7 +6307,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6307
6307
  value: incoming
6308
6308
  };
6309
6309
  }
6310
- const storedObj = isRecord$4(stored) ? stored : {};
6310
+ const storedObj = isRecord$5(stored) ? stored : {};
6311
6311
  return {
6312
6312
  kind: "value",
6313
6313
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6430,7 +6430,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6430
6430
  value: items
6431
6431
  };
6432
6432
  }
6433
- if (isRecord$4(v)) {
6433
+ if (isRecord$5(v)) {
6434
6434
  const out = {};
6435
6435
  for (const [k, child] of Object.entries(v)) {
6436
6436
  const s = substitute(child);
@@ -6462,7 +6462,7 @@ var SecretOverwriteRefusedError = class extends Error {
6462
6462
  this.name = "SecretOverwriteRefusedError";
6463
6463
  }
6464
6464
  };
6465
- function isRecord$3(value) {
6465
+ function isRecord$4(value) {
6466
6466
  return typeof value === "object" && value !== null && !Array.isArray(value);
6467
6467
  }
6468
6468
  function resolvedValue(pass, marker) {
@@ -6491,7 +6491,7 @@ function inArray(pass, incoming, stored) {
6491
6491
  return incoming.map((item, index) => {
6492
6492
  const twin = stored[index];
6493
6493
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6494
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6494
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6495
6495
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6496
6496
  return item;
6497
6497
  });
@@ -6502,7 +6502,7 @@ function inArrayRow(pass, incoming, stored) {
6502
6502
  const twin = stored[key];
6503
6503
  if (isSecretMarker(twin)) {
6504
6504
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6505
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6505
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6506
6506
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6507
6507
  }
6508
6508
  return out;
@@ -6510,7 +6510,7 @@ function inArrayRow(pass, incoming, stored) {
6510
6510
  async function walk(pass, incoming, stored) {
6511
6511
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6512
6512
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6513
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6513
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6514
6514
  const out = { ...incoming };
6515
6515
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6516
6516
  return out;
@@ -6541,7 +6541,7 @@ async function restoreUnchangedSecrets(input) {
6541
6541
  function isJsonEqual(a, b) {
6542
6542
  if (Object.is(a, b)) return true;
6543
6543
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6544
- if (isRecord$3(a) && isRecord$3(b)) {
6544
+ if (isRecord$4(a) && isRecord$4(b)) {
6545
6545
  const keys = Object.keys(a);
6546
6546
  if (keys.length !== Object.keys(b).length) return false;
6547
6547
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6565,7 +6565,7 @@ function markerKeysOf(blob, owner) {
6565
6565
  }
6566
6566
  function nodeFromStored(value, owner) {
6567
6567
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6568
- if (!isRecord$3(value)) return null;
6568
+ if (!isRecord$4(value)) return null;
6569
6569
  const children = /* @__PURE__ */ new Map();
6570
6570
  for (const [key, child] of Object.entries(value)) {
6571
6571
  const node = nodeFromStored(child, owner);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.199",
3
+ "version": "1.2.200",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",