@camstack/addon-google-services 0.2.21 → 0.2.23
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/google-services.addon.js +17 -17
- package/dist/google-services.addon.mjs +17 -17
- package/package.json +1 -1
|
@@ -5551,7 +5551,7 @@ var ZodIssueCode = {
|
|
|
5551
5551
|
var ZodFirstPartyTypeKind;
|
|
5552
5552
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5553
5553
|
//#endregion
|
|
5554
|
-
//#region ../types/dist/sleep-
|
|
5554
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5555
5555
|
/**
|
|
5556
5556
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5557
5557
|
* window to float samples (D455).
|
|
@@ -5668,7 +5668,7 @@ function isKeychainStoredField(field) {
|
|
|
5668
5668
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5669
5669
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5670
5670
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5671
|
-
function isRecord$
|
|
5671
|
+
function isRecord$6(value) {
|
|
5672
5672
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5673
5673
|
}
|
|
5674
5674
|
function makeSecretMarker(ref) {
|
|
@@ -5679,12 +5679,12 @@ function makeSecretMarker(ref) {
|
|
|
5679
5679
|
}
|
|
5680
5680
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5681
5681
|
function isSecretMarker(value) {
|
|
5682
|
-
if (!isRecord$
|
|
5682
|
+
if (!isRecord$6(value)) return false;
|
|
5683
5683
|
const ref = value["$secret"];
|
|
5684
5684
|
return typeof ref === "string" && ref.length > 0;
|
|
5685
5685
|
}
|
|
5686
5686
|
function isSecretClear(value) {
|
|
5687
|
-
return isRecord$
|
|
5687
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5688
5688
|
}
|
|
5689
5689
|
/**
|
|
5690
5690
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6294,7 +6294,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
};
|
|
6296
6296
|
var KEEP = { kind: "keep" };
|
|
6297
|
-
function isRecord$
|
|
6297
|
+
function isRecord$5(value) {
|
|
6298
6298
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6299
6299
|
}
|
|
6300
6300
|
function defaultMintId() {
|
|
@@ -6307,7 +6307,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6307
6307
|
return out;
|
|
6308
6308
|
}
|
|
6309
6309
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6310
|
-
else if (isRecord$
|
|
6310
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6311
6311
|
return out;
|
|
6312
6312
|
}
|
|
6313
6313
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6362,7 +6362,7 @@ function rowId(row, idKey) {
|
|
|
6362
6362
|
return null;
|
|
6363
6363
|
}
|
|
6364
6364
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6365
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6365
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6366
6366
|
if (!Array.isArray(incoming)) {
|
|
6367
6367
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6368
6368
|
return {
|
|
@@ -6378,7 +6378,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6378
6378
|
const kept = /* @__PURE__ */ new Set();
|
|
6379
6379
|
const rows = [];
|
|
6380
6380
|
for (const row of incoming) {
|
|
6381
|
-
if (!isRecord$
|
|
6381
|
+
if (!isRecord$5(row)) {
|
|
6382
6382
|
rows.push(row);
|
|
6383
6383
|
continue;
|
|
6384
6384
|
}
|
|
@@ -6403,7 +6403,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6403
6403
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6404
6404
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6405
6405
|
case "object": {
|
|
6406
|
-
if (!isRecord$
|
|
6406
|
+
if (!isRecord$5(incoming)) {
|
|
6407
6407
|
if (incoming === void 0) return KEEP;
|
|
6408
6408
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6409
6409
|
return {
|
|
@@ -6411,7 +6411,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6411
6411
|
value: incoming
|
|
6412
6412
|
};
|
|
6413
6413
|
}
|
|
6414
|
-
const storedObj = isRecord$
|
|
6414
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6415
6415
|
return {
|
|
6416
6416
|
kind: "value",
|
|
6417
6417
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6534,7 +6534,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6534
6534
|
value: items
|
|
6535
6535
|
};
|
|
6536
6536
|
}
|
|
6537
|
-
if (isRecord$
|
|
6537
|
+
if (isRecord$5(v)) {
|
|
6538
6538
|
const out = {};
|
|
6539
6539
|
for (const [k, child] of Object.entries(v)) {
|
|
6540
6540
|
const s = substitute(child);
|
|
@@ -6566,7 +6566,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6566
6566
|
this.name = "SecretOverwriteRefusedError";
|
|
6567
6567
|
}
|
|
6568
6568
|
};
|
|
6569
|
-
function isRecord$
|
|
6569
|
+
function isRecord$4(value) {
|
|
6570
6570
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6571
6571
|
}
|
|
6572
6572
|
function resolvedValue(pass, marker) {
|
|
@@ -6595,7 +6595,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6595
6595
|
return incoming.map((item, index) => {
|
|
6596
6596
|
const twin = stored[index];
|
|
6597
6597
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6598
|
-
if (isRecord$
|
|
6598
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6599
6599
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6600
6600
|
return item;
|
|
6601
6601
|
});
|
|
@@ -6606,7 +6606,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6606
6606
|
const twin = stored[key];
|
|
6607
6607
|
if (isSecretMarker(twin)) {
|
|
6608
6608
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6609
|
-
} else if (isRecord$
|
|
6609
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6610
6610
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6611
6611
|
}
|
|
6612
6612
|
return out;
|
|
@@ -6614,7 +6614,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6614
6614
|
async function walk(pass, incoming, stored) {
|
|
6615
6615
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6616
6616
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6617
|
-
if (!isRecord$
|
|
6617
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6618
6618
|
const out = { ...incoming };
|
|
6619
6619
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6620
6620
|
return out;
|
|
@@ -6645,7 +6645,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6645
6645
|
function isJsonEqual(a, b) {
|
|
6646
6646
|
if (Object.is(a, b)) return true;
|
|
6647
6647
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6648
|
-
if (isRecord$
|
|
6648
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6649
6649
|
const keys = Object.keys(a);
|
|
6650
6650
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6651
6651
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6669,7 +6669,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6669
6669
|
}
|
|
6670
6670
|
function nodeFromStored(value, owner) {
|
|
6671
6671
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6672
|
-
if (!isRecord$
|
|
6672
|
+
if (!isRecord$4(value)) return null;
|
|
6673
6673
|
const children = /* @__PURE__ */ new Map();
|
|
6674
6674
|
for (const [key, child] of Object.entries(value)) {
|
|
6675
6675
|
const node = nodeFromStored(child, owner);
|
|
@@ -5547,7 +5547,7 @@ var ZodIssueCode = {
|
|
|
5547
5547
|
var ZodFirstPartyTypeKind;
|
|
5548
5548
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5549
5549
|
//#endregion
|
|
5550
|
-
//#region ../types/dist/sleep-
|
|
5550
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5551
5551
|
/**
|
|
5552
5552
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5553
5553
|
* window to float samples (D455).
|
|
@@ -5664,7 +5664,7 @@ function isKeychainStoredField(field) {
|
|
|
5664
5664
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5665
5665
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5666
5666
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5667
|
-
function isRecord$
|
|
5667
|
+
function isRecord$6(value) {
|
|
5668
5668
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5669
5669
|
}
|
|
5670
5670
|
function makeSecretMarker(ref) {
|
|
@@ -5675,12 +5675,12 @@ function makeSecretMarker(ref) {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5677
5677
|
function isSecretMarker(value) {
|
|
5678
|
-
if (!isRecord$
|
|
5678
|
+
if (!isRecord$6(value)) return false;
|
|
5679
5679
|
const ref = value["$secret"];
|
|
5680
5680
|
return typeof ref === "string" && ref.length > 0;
|
|
5681
5681
|
}
|
|
5682
5682
|
function isSecretClear(value) {
|
|
5683
|
-
return isRecord$
|
|
5683
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5684
5684
|
}
|
|
5685
5685
|
/**
|
|
5686
5686
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6290,7 +6290,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6290
6290
|
}
|
|
6291
6291
|
};
|
|
6292
6292
|
var KEEP = { kind: "keep" };
|
|
6293
|
-
function isRecord$
|
|
6293
|
+
function isRecord$5(value) {
|
|
6294
6294
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6295
6295
|
}
|
|
6296
6296
|
function defaultMintId() {
|
|
@@ -6303,7 +6303,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6303
6303
|
return out;
|
|
6304
6304
|
}
|
|
6305
6305
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6306
|
-
else if (isRecord$
|
|
6306
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6307
6307
|
return out;
|
|
6308
6308
|
}
|
|
6309
6309
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6358,7 +6358,7 @@ function rowId(row, idKey) {
|
|
|
6358
6358
|
return null;
|
|
6359
6359
|
}
|
|
6360
6360
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6361
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6361
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6362
6362
|
if (!Array.isArray(incoming)) {
|
|
6363
6363
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6364
6364
|
return {
|
|
@@ -6374,7 +6374,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6374
6374
|
const kept = /* @__PURE__ */ new Set();
|
|
6375
6375
|
const rows = [];
|
|
6376
6376
|
for (const row of incoming) {
|
|
6377
|
-
if (!isRecord$
|
|
6377
|
+
if (!isRecord$5(row)) {
|
|
6378
6378
|
rows.push(row);
|
|
6379
6379
|
continue;
|
|
6380
6380
|
}
|
|
@@ -6399,7 +6399,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6399
6399
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6400
6400
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6401
6401
|
case "object": {
|
|
6402
|
-
if (!isRecord$
|
|
6402
|
+
if (!isRecord$5(incoming)) {
|
|
6403
6403
|
if (incoming === void 0) return KEEP;
|
|
6404
6404
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6405
6405
|
return {
|
|
@@ -6407,7 +6407,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6407
6407
|
value: incoming
|
|
6408
6408
|
};
|
|
6409
6409
|
}
|
|
6410
|
-
const storedObj = isRecord$
|
|
6410
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6411
6411
|
return {
|
|
6412
6412
|
kind: "value",
|
|
6413
6413
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6530,7 +6530,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6530
6530
|
value: items
|
|
6531
6531
|
};
|
|
6532
6532
|
}
|
|
6533
|
-
if (isRecord$
|
|
6533
|
+
if (isRecord$5(v)) {
|
|
6534
6534
|
const out = {};
|
|
6535
6535
|
for (const [k, child] of Object.entries(v)) {
|
|
6536
6536
|
const s = substitute(child);
|
|
@@ -6562,7 +6562,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6562
6562
|
this.name = "SecretOverwriteRefusedError";
|
|
6563
6563
|
}
|
|
6564
6564
|
};
|
|
6565
|
-
function isRecord$
|
|
6565
|
+
function isRecord$4(value) {
|
|
6566
6566
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6567
6567
|
}
|
|
6568
6568
|
function resolvedValue(pass, marker) {
|
|
@@ -6591,7 +6591,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6591
6591
|
return incoming.map((item, index) => {
|
|
6592
6592
|
const twin = stored[index];
|
|
6593
6593
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6594
|
-
if (isRecord$
|
|
6594
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6595
6595
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6596
6596
|
return item;
|
|
6597
6597
|
});
|
|
@@ -6602,7 +6602,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6602
6602
|
const twin = stored[key];
|
|
6603
6603
|
if (isSecretMarker(twin)) {
|
|
6604
6604
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6605
|
-
} else if (isRecord$
|
|
6605
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6606
6606
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6607
6607
|
}
|
|
6608
6608
|
return out;
|
|
@@ -6610,7 +6610,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6610
6610
|
async function walk(pass, incoming, stored) {
|
|
6611
6611
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6612
6612
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6613
|
-
if (!isRecord$
|
|
6613
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6614
6614
|
const out = { ...incoming };
|
|
6615
6615
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6616
6616
|
return out;
|
|
@@ -6641,7 +6641,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6641
6641
|
function isJsonEqual(a, b) {
|
|
6642
6642
|
if (Object.is(a, b)) return true;
|
|
6643
6643
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6644
|
-
if (isRecord$
|
|
6644
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6645
6645
|
const keys = Object.keys(a);
|
|
6646
6646
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6647
6647
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6665,7 +6665,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
function nodeFromStored(value, owner) {
|
|
6667
6667
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6668
|
-
if (!isRecord$
|
|
6668
|
+
if (!isRecord$4(value)) return null;
|
|
6669
6669
|
const children = /* @__PURE__ */ new Map();
|
|
6670
6670
|
for (const [key, child] of Object.entries(value)) {
|
|
6671
6671
|
const node = nodeFromStored(child, owner);
|
package/package.json
CHANGED