@camstack/addon-mqtt-broker 1.2.137 → 1.2.138
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/mqtt-broker.addon.js +17 -17
- package/dist/mqtt-broker.addon.mjs +17 -17
- package/package.json +1 -1
|
@@ -5594,7 +5594,7 @@ var ZodIssueCode = {
|
|
|
5594
5594
|
var ZodFirstPartyTypeKind;
|
|
5595
5595
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5596
5596
|
//#endregion
|
|
5597
|
-
//#region ../types/dist/sleep-
|
|
5597
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5598
5598
|
/**
|
|
5599
5599
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5600
5600
|
* window to float samples (D455).
|
|
@@ -5711,7 +5711,7 @@ function isKeychainStoredField(field) {
|
|
|
5711
5711
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5712
5712
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5713
5713
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5714
|
-
function isRecord$
|
|
5714
|
+
function isRecord$6(value) {
|
|
5715
5715
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5716
5716
|
}
|
|
5717
5717
|
function makeSecretMarker(ref) {
|
|
@@ -5722,12 +5722,12 @@ function makeSecretMarker(ref) {
|
|
|
5722
5722
|
}
|
|
5723
5723
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5724
5724
|
function isSecretMarker(value) {
|
|
5725
|
-
if (!isRecord$
|
|
5725
|
+
if (!isRecord$6(value)) return false;
|
|
5726
5726
|
const ref = value["$secret"];
|
|
5727
5727
|
return typeof ref === "string" && ref.length > 0;
|
|
5728
5728
|
}
|
|
5729
5729
|
function isSecretClear(value) {
|
|
5730
|
-
return isRecord$
|
|
5730
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5731
5731
|
}
|
|
5732
5732
|
/**
|
|
5733
5733
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6337,7 +6337,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
};
|
|
6339
6339
|
var KEEP = { kind: "keep" };
|
|
6340
|
-
function isRecord$
|
|
6340
|
+
function isRecord$5(value) {
|
|
6341
6341
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6342
6342
|
}
|
|
6343
6343
|
function defaultMintId() {
|
|
@@ -6350,7 +6350,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6350
6350
|
return out;
|
|
6351
6351
|
}
|
|
6352
6352
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6353
|
-
else if (isRecord$
|
|
6353
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6354
6354
|
return out;
|
|
6355
6355
|
}
|
|
6356
6356
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6405,7 +6405,7 @@ function rowId(row, idKey) {
|
|
|
6405
6405
|
return null;
|
|
6406
6406
|
}
|
|
6407
6407
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6408
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6408
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6409
6409
|
if (!Array.isArray(incoming)) {
|
|
6410
6410
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6411
6411
|
return {
|
|
@@ -6421,7 +6421,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6421
6421
|
const kept = /* @__PURE__ */ new Set();
|
|
6422
6422
|
const rows = [];
|
|
6423
6423
|
for (const row of incoming) {
|
|
6424
|
-
if (!isRecord$
|
|
6424
|
+
if (!isRecord$5(row)) {
|
|
6425
6425
|
rows.push(row);
|
|
6426
6426
|
continue;
|
|
6427
6427
|
}
|
|
@@ -6446,7 +6446,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6446
6446
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6447
6447
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6448
6448
|
case "object": {
|
|
6449
|
-
if (!isRecord$
|
|
6449
|
+
if (!isRecord$5(incoming)) {
|
|
6450
6450
|
if (incoming === void 0) return KEEP;
|
|
6451
6451
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6452
6452
|
return {
|
|
@@ -6454,7 +6454,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6454
6454
|
value: incoming
|
|
6455
6455
|
};
|
|
6456
6456
|
}
|
|
6457
|
-
const storedObj = isRecord$
|
|
6457
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6458
6458
|
return {
|
|
6459
6459
|
kind: "value",
|
|
6460
6460
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6577,7 +6577,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6577
6577
|
value: items
|
|
6578
6578
|
};
|
|
6579
6579
|
}
|
|
6580
|
-
if (isRecord$
|
|
6580
|
+
if (isRecord$5(v)) {
|
|
6581
6581
|
const out = {};
|
|
6582
6582
|
for (const [k, child] of Object.entries(v)) {
|
|
6583
6583
|
const s = substitute(child);
|
|
@@ -6609,7 +6609,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6609
6609
|
this.name = "SecretOverwriteRefusedError";
|
|
6610
6610
|
}
|
|
6611
6611
|
};
|
|
6612
|
-
function isRecord$
|
|
6612
|
+
function isRecord$4(value) {
|
|
6613
6613
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6614
6614
|
}
|
|
6615
6615
|
function resolvedValue(pass, marker) {
|
|
@@ -6638,7 +6638,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6638
6638
|
return incoming.map((item, index) => {
|
|
6639
6639
|
const twin = stored[index];
|
|
6640
6640
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6641
|
-
if (isRecord$
|
|
6641
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6642
6642
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6643
6643
|
return item;
|
|
6644
6644
|
});
|
|
@@ -6649,7 +6649,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6649
6649
|
const twin = stored[key];
|
|
6650
6650
|
if (isSecretMarker(twin)) {
|
|
6651
6651
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6652
|
-
} else if (isRecord$
|
|
6652
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6653
6653
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6654
6654
|
}
|
|
6655
6655
|
return out;
|
|
@@ -6657,7 +6657,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6657
6657
|
async function walk(pass, incoming, stored) {
|
|
6658
6658
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6659
6659
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6660
|
-
if (!isRecord$
|
|
6660
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6661
6661
|
const out = { ...incoming };
|
|
6662
6662
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6663
6663
|
return out;
|
|
@@ -6688,7 +6688,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6688
6688
|
function isJsonEqual(a, b) {
|
|
6689
6689
|
if (Object.is(a, b)) return true;
|
|
6690
6690
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6691
|
-
if (isRecord$
|
|
6691
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6692
6692
|
const keys = Object.keys(a);
|
|
6693
6693
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6694
6694
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6712,7 +6712,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6712
6712
|
}
|
|
6713
6713
|
function nodeFromStored(value, owner) {
|
|
6714
6714
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6715
|
-
if (!isRecord$
|
|
6715
|
+
if (!isRecord$4(value)) return null;
|
|
6716
6716
|
const children = /* @__PURE__ */ new Map();
|
|
6717
6717
|
for (const [key, child] of Object.entries(value)) {
|
|
6718
6718
|
const node = nodeFromStored(child, owner);
|
|
@@ -5587,7 +5587,7 @@ var ZodIssueCode = {
|
|
|
5587
5587
|
var ZodFirstPartyTypeKind;
|
|
5588
5588
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5589
5589
|
//#endregion
|
|
5590
|
-
//#region ../types/dist/sleep-
|
|
5590
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5591
5591
|
/**
|
|
5592
5592
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5593
5593
|
* window to float samples (D455).
|
|
@@ -5704,7 +5704,7 @@ function isKeychainStoredField(field) {
|
|
|
5704
5704
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5705
5705
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5706
5706
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5707
|
-
function isRecord$
|
|
5707
|
+
function isRecord$6(value) {
|
|
5708
5708
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5709
5709
|
}
|
|
5710
5710
|
function makeSecretMarker(ref) {
|
|
@@ -5715,12 +5715,12 @@ function makeSecretMarker(ref) {
|
|
|
5715
5715
|
}
|
|
5716
5716
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5717
5717
|
function isSecretMarker(value) {
|
|
5718
|
-
if (!isRecord$
|
|
5718
|
+
if (!isRecord$6(value)) return false;
|
|
5719
5719
|
const ref = value["$secret"];
|
|
5720
5720
|
return typeof ref === "string" && ref.length > 0;
|
|
5721
5721
|
}
|
|
5722
5722
|
function isSecretClear(value) {
|
|
5723
|
-
return isRecord$
|
|
5723
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5724
5724
|
}
|
|
5725
5725
|
/**
|
|
5726
5726
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6330,7 +6330,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6330
6330
|
}
|
|
6331
6331
|
};
|
|
6332
6332
|
var KEEP = { kind: "keep" };
|
|
6333
|
-
function isRecord$
|
|
6333
|
+
function isRecord$5(value) {
|
|
6334
6334
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6335
6335
|
}
|
|
6336
6336
|
function defaultMintId() {
|
|
@@ -6343,7 +6343,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6343
6343
|
return out;
|
|
6344
6344
|
}
|
|
6345
6345
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6346
|
-
else if (isRecord$
|
|
6346
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6347
6347
|
return out;
|
|
6348
6348
|
}
|
|
6349
6349
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6398,7 +6398,7 @@ function rowId(row, idKey) {
|
|
|
6398
6398
|
return null;
|
|
6399
6399
|
}
|
|
6400
6400
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6401
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6401
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6402
6402
|
if (!Array.isArray(incoming)) {
|
|
6403
6403
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6404
6404
|
return {
|
|
@@ -6414,7 +6414,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6414
6414
|
const kept = /* @__PURE__ */ new Set();
|
|
6415
6415
|
const rows = [];
|
|
6416
6416
|
for (const row of incoming) {
|
|
6417
|
-
if (!isRecord$
|
|
6417
|
+
if (!isRecord$5(row)) {
|
|
6418
6418
|
rows.push(row);
|
|
6419
6419
|
continue;
|
|
6420
6420
|
}
|
|
@@ -6439,7 +6439,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6439
6439
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6440
6440
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6441
6441
|
case "object": {
|
|
6442
|
-
if (!isRecord$
|
|
6442
|
+
if (!isRecord$5(incoming)) {
|
|
6443
6443
|
if (incoming === void 0) return KEEP;
|
|
6444
6444
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6445
6445
|
return {
|
|
@@ -6447,7 +6447,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6447
6447
|
value: incoming
|
|
6448
6448
|
};
|
|
6449
6449
|
}
|
|
6450
|
-
const storedObj = isRecord$
|
|
6450
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6451
6451
|
return {
|
|
6452
6452
|
kind: "value",
|
|
6453
6453
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6570,7 +6570,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6570
6570
|
value: items
|
|
6571
6571
|
};
|
|
6572
6572
|
}
|
|
6573
|
-
if (isRecord$
|
|
6573
|
+
if (isRecord$5(v)) {
|
|
6574
6574
|
const out = {};
|
|
6575
6575
|
for (const [k, child] of Object.entries(v)) {
|
|
6576
6576
|
const s = substitute(child);
|
|
@@ -6602,7 +6602,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6602
6602
|
this.name = "SecretOverwriteRefusedError";
|
|
6603
6603
|
}
|
|
6604
6604
|
};
|
|
6605
|
-
function isRecord$
|
|
6605
|
+
function isRecord$4(value) {
|
|
6606
6606
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6607
6607
|
}
|
|
6608
6608
|
function resolvedValue(pass, marker) {
|
|
@@ -6631,7 +6631,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6631
6631
|
return incoming.map((item, index) => {
|
|
6632
6632
|
const twin = stored[index];
|
|
6633
6633
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6634
|
-
if (isRecord$
|
|
6634
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6635
6635
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6636
6636
|
return item;
|
|
6637
6637
|
});
|
|
@@ -6642,7 +6642,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6642
6642
|
const twin = stored[key];
|
|
6643
6643
|
if (isSecretMarker(twin)) {
|
|
6644
6644
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6645
|
-
} else if (isRecord$
|
|
6645
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6646
6646
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6647
6647
|
}
|
|
6648
6648
|
return out;
|
|
@@ -6650,7 +6650,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6650
6650
|
async function walk(pass, incoming, stored) {
|
|
6651
6651
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6652
6652
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6653
|
-
if (!isRecord$
|
|
6653
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6654
6654
|
const out = { ...incoming };
|
|
6655
6655
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6656
6656
|
return out;
|
|
@@ -6681,7 +6681,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6681
6681
|
function isJsonEqual(a, b) {
|
|
6682
6682
|
if (Object.is(a, b)) return true;
|
|
6683
6683
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6684
|
-
if (isRecord$
|
|
6684
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6685
6685
|
const keys = Object.keys(a);
|
|
6686
6686
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6687
6687
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6705,7 +6705,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6705
6705
|
}
|
|
6706
6706
|
function nodeFromStored(value, owner) {
|
|
6707
6707
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6708
|
-
if (!isRecord$
|
|
6708
|
+
if (!isRecord$4(value)) return null;
|
|
6709
6709
|
const children = /* @__PURE__ */ new Map();
|
|
6710
6710
|
for (const [key, child] of Object.entries(value)) {
|
|
6711
6711
|
const node = nodeFromStored(child, owner);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-mqtt-broker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.138",
|
|
4
4
|
"description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|