@camstack/addon-waste-collections 0.1.19 → 0.1.20
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.
|
@@ -5554,7 +5554,7 @@ var ZodIssueCode = {
|
|
|
5554
5554
|
var ZodFirstPartyTypeKind;
|
|
5555
5555
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5556
5556
|
//#endregion
|
|
5557
|
-
//#region ../types/dist/sleep-
|
|
5557
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5558
5558
|
/**
|
|
5559
5559
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5560
5560
|
* window to float samples (D455).
|
|
@@ -5681,7 +5681,7 @@ function isKeychainStoredField(field) {
|
|
|
5681
5681
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5682
5682
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5683
5683
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5684
|
-
function isRecord$
|
|
5684
|
+
function isRecord$6(value) {
|
|
5685
5685
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5686
5686
|
}
|
|
5687
5687
|
function makeSecretMarker(ref) {
|
|
@@ -5692,12 +5692,12 @@ function makeSecretMarker(ref) {
|
|
|
5692
5692
|
}
|
|
5693
5693
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5694
5694
|
function isSecretMarker(value) {
|
|
5695
|
-
if (!isRecord$
|
|
5695
|
+
if (!isRecord$6(value)) return false;
|
|
5696
5696
|
const ref = value["$secret"];
|
|
5697
5697
|
return typeof ref === "string" && ref.length > 0;
|
|
5698
5698
|
}
|
|
5699
5699
|
function isSecretClear(value) {
|
|
5700
|
-
return isRecord$
|
|
5700
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5701
5701
|
}
|
|
5702
5702
|
/**
|
|
5703
5703
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6307,7 +6307,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6307
6307
|
}
|
|
6308
6308
|
};
|
|
6309
6309
|
var KEEP = { kind: "keep" };
|
|
6310
|
-
function isRecord$
|
|
6310
|
+
function isRecord$5(value) {
|
|
6311
6311
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6312
6312
|
}
|
|
6313
6313
|
function defaultMintId() {
|
|
@@ -6320,7 +6320,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6320
6320
|
return out;
|
|
6321
6321
|
}
|
|
6322
6322
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6323
|
-
else if (isRecord$
|
|
6323
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6324
6324
|
return out;
|
|
6325
6325
|
}
|
|
6326
6326
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6375,7 +6375,7 @@ function rowId(row, idKey) {
|
|
|
6375
6375
|
return null;
|
|
6376
6376
|
}
|
|
6377
6377
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6378
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6378
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6379
6379
|
if (!Array.isArray(incoming)) {
|
|
6380
6380
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6381
6381
|
return {
|
|
@@ -6391,7 +6391,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6391
6391
|
const kept = /* @__PURE__ */ new Set();
|
|
6392
6392
|
const rows = [];
|
|
6393
6393
|
for (const row of incoming) {
|
|
6394
|
-
if (!isRecord$
|
|
6394
|
+
if (!isRecord$5(row)) {
|
|
6395
6395
|
rows.push(row);
|
|
6396
6396
|
continue;
|
|
6397
6397
|
}
|
|
@@ -6416,7 +6416,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6416
6416
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6417
6417
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6418
6418
|
case "object": {
|
|
6419
|
-
if (!isRecord$
|
|
6419
|
+
if (!isRecord$5(incoming)) {
|
|
6420
6420
|
if (incoming === void 0) return KEEP;
|
|
6421
6421
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6422
6422
|
return {
|
|
@@ -6424,7 +6424,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6424
6424
|
value: incoming
|
|
6425
6425
|
};
|
|
6426
6426
|
}
|
|
6427
|
-
const storedObj = isRecord$
|
|
6427
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6428
6428
|
return {
|
|
6429
6429
|
kind: "value",
|
|
6430
6430
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6547,7 +6547,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6547
6547
|
value: items
|
|
6548
6548
|
};
|
|
6549
6549
|
}
|
|
6550
|
-
if (isRecord$
|
|
6550
|
+
if (isRecord$5(v)) {
|
|
6551
6551
|
const out = {};
|
|
6552
6552
|
for (const [k, child] of Object.entries(v)) {
|
|
6553
6553
|
const s = substitute(child);
|
|
@@ -6579,7 +6579,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6579
6579
|
this.name = "SecretOverwriteRefusedError";
|
|
6580
6580
|
}
|
|
6581
6581
|
};
|
|
6582
|
-
function isRecord$
|
|
6582
|
+
function isRecord$4(value) {
|
|
6583
6583
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6584
6584
|
}
|
|
6585
6585
|
function resolvedValue(pass, marker) {
|
|
@@ -6608,7 +6608,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6608
6608
|
return incoming.map((item, index) => {
|
|
6609
6609
|
const twin = stored[index];
|
|
6610
6610
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6611
|
-
if (isRecord$
|
|
6611
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6612
6612
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6613
6613
|
return item;
|
|
6614
6614
|
});
|
|
@@ -6619,7 +6619,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6619
6619
|
const twin = stored[key];
|
|
6620
6620
|
if (isSecretMarker(twin)) {
|
|
6621
6621
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6622
|
-
} else if (isRecord$
|
|
6622
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6623
6623
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6624
6624
|
}
|
|
6625
6625
|
return out;
|
|
@@ -6627,7 +6627,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6627
6627
|
async function walk(pass, incoming, stored) {
|
|
6628
6628
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6629
6629
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6630
|
-
if (!isRecord$
|
|
6630
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6631
6631
|
const out = { ...incoming };
|
|
6632
6632
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6633
6633
|
return out;
|
|
@@ -6658,7 +6658,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6658
6658
|
function isJsonEqual(a, b) {
|
|
6659
6659
|
if (Object.is(a, b)) return true;
|
|
6660
6660
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6661
|
-
if (isRecord$
|
|
6661
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6662
6662
|
const keys = Object.keys(a);
|
|
6663
6663
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6664
6664
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6682,7 +6682,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6682
6682
|
}
|
|
6683
6683
|
function nodeFromStored(value, owner) {
|
|
6684
6684
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6685
|
-
if (!isRecord$
|
|
6685
|
+
if (!isRecord$4(value)) return null;
|
|
6686
6686
|
const children = /* @__PURE__ */ new Map();
|
|
6687
6687
|
for (const [key, child] of Object.entries(value)) {
|
|
6688
6688
|
const node = nodeFromStored(child, owner);
|
|
@@ -5550,7 +5550,7 @@ var ZodIssueCode = {
|
|
|
5550
5550
|
var ZodFirstPartyTypeKind;
|
|
5551
5551
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5552
5552
|
//#endregion
|
|
5553
|
-
//#region ../types/dist/sleep-
|
|
5553
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5554
5554
|
/**
|
|
5555
5555
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5556
5556
|
* window to float samples (D455).
|
|
@@ -5677,7 +5677,7 @@ function isKeychainStoredField(field) {
|
|
|
5677
5677
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5678
5678
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5679
5679
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5680
|
-
function isRecord$
|
|
5680
|
+
function isRecord$6(value) {
|
|
5681
5681
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5682
5682
|
}
|
|
5683
5683
|
function makeSecretMarker(ref) {
|
|
@@ -5688,12 +5688,12 @@ function makeSecretMarker(ref) {
|
|
|
5688
5688
|
}
|
|
5689
5689
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5690
5690
|
function isSecretMarker(value) {
|
|
5691
|
-
if (!isRecord$
|
|
5691
|
+
if (!isRecord$6(value)) return false;
|
|
5692
5692
|
const ref = value["$secret"];
|
|
5693
5693
|
return typeof ref === "string" && ref.length > 0;
|
|
5694
5694
|
}
|
|
5695
5695
|
function isSecretClear(value) {
|
|
5696
|
-
return isRecord$
|
|
5696
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5697
5697
|
}
|
|
5698
5698
|
/**
|
|
5699
5699
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6303,7 +6303,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6303
6303
|
}
|
|
6304
6304
|
};
|
|
6305
6305
|
var KEEP = { kind: "keep" };
|
|
6306
|
-
function isRecord$
|
|
6306
|
+
function isRecord$5(value) {
|
|
6307
6307
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6308
6308
|
}
|
|
6309
6309
|
function defaultMintId() {
|
|
@@ -6316,7 +6316,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6316
6316
|
return out;
|
|
6317
6317
|
}
|
|
6318
6318
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6319
|
-
else if (isRecord$
|
|
6319
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6320
6320
|
return out;
|
|
6321
6321
|
}
|
|
6322
6322
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6371,7 +6371,7 @@ function rowId(row, idKey) {
|
|
|
6371
6371
|
return null;
|
|
6372
6372
|
}
|
|
6373
6373
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6374
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6374
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6375
6375
|
if (!Array.isArray(incoming)) {
|
|
6376
6376
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6377
6377
|
return {
|
|
@@ -6387,7 +6387,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6387
6387
|
const kept = /* @__PURE__ */ new Set();
|
|
6388
6388
|
const rows = [];
|
|
6389
6389
|
for (const row of incoming) {
|
|
6390
|
-
if (!isRecord$
|
|
6390
|
+
if (!isRecord$5(row)) {
|
|
6391
6391
|
rows.push(row);
|
|
6392
6392
|
continue;
|
|
6393
6393
|
}
|
|
@@ -6412,7 +6412,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6412
6412
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6413
6413
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6414
6414
|
case "object": {
|
|
6415
|
-
if (!isRecord$
|
|
6415
|
+
if (!isRecord$5(incoming)) {
|
|
6416
6416
|
if (incoming === void 0) return KEEP;
|
|
6417
6417
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6418
6418
|
return {
|
|
@@ -6420,7 +6420,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6420
6420
|
value: incoming
|
|
6421
6421
|
};
|
|
6422
6422
|
}
|
|
6423
|
-
const storedObj = isRecord$
|
|
6423
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6424
6424
|
return {
|
|
6425
6425
|
kind: "value",
|
|
6426
6426
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6543,7 +6543,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6543
6543
|
value: items
|
|
6544
6544
|
};
|
|
6545
6545
|
}
|
|
6546
|
-
if (isRecord$
|
|
6546
|
+
if (isRecord$5(v)) {
|
|
6547
6547
|
const out = {};
|
|
6548
6548
|
for (const [k, child] of Object.entries(v)) {
|
|
6549
6549
|
const s = substitute(child);
|
|
@@ -6575,7 +6575,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6575
6575
|
this.name = "SecretOverwriteRefusedError";
|
|
6576
6576
|
}
|
|
6577
6577
|
};
|
|
6578
|
-
function isRecord$
|
|
6578
|
+
function isRecord$4(value) {
|
|
6579
6579
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6580
6580
|
}
|
|
6581
6581
|
function resolvedValue(pass, marker) {
|
|
@@ -6604,7 +6604,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6604
6604
|
return incoming.map((item, index) => {
|
|
6605
6605
|
const twin = stored[index];
|
|
6606
6606
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6607
|
-
if (isRecord$
|
|
6607
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6608
6608
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6609
6609
|
return item;
|
|
6610
6610
|
});
|
|
@@ -6615,7 +6615,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6615
6615
|
const twin = stored[key];
|
|
6616
6616
|
if (isSecretMarker(twin)) {
|
|
6617
6617
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6618
|
-
} else if (isRecord$
|
|
6618
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6619
6619
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6620
6620
|
}
|
|
6621
6621
|
return out;
|
|
@@ -6623,7 +6623,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6623
6623
|
async function walk(pass, incoming, stored) {
|
|
6624
6624
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6625
6625
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6626
|
-
if (!isRecord$
|
|
6626
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6627
6627
|
const out = { ...incoming };
|
|
6628
6628
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6629
6629
|
return out;
|
|
@@ -6654,7 +6654,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6654
6654
|
function isJsonEqual(a, b) {
|
|
6655
6655
|
if (Object.is(a, b)) return true;
|
|
6656
6656
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6657
|
-
if (isRecord$
|
|
6657
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6658
6658
|
const keys = Object.keys(a);
|
|
6659
6659
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6660
6660
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6678,7 +6678,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6678
6678
|
}
|
|
6679
6679
|
function nodeFromStored(value, owner) {
|
|
6680
6680
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6681
|
-
if (!isRecord$
|
|
6681
|
+
if (!isRecord$4(value)) return null;
|
|
6682
6682
|
const children = /* @__PURE__ */ new Map();
|
|
6683
6683
|
for (const [key, child] of Object.entries(value)) {
|
|
6684
6684
|
const node = nodeFromStored(child, owner);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-waste-collections",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Waste collection schedules via the vendored HACS waste_collection_schedule Python core — full source catalog as calendar-source.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|