@camstack/addon-provider-ecowitt 0.2.138 → 0.2.140
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 +17 -17
- package/dist/addon.mjs +17 -17
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5417,7 +5417,7 @@ var ZodIssueCode$1 = {
|
|
|
5417
5417
|
var ZodFirstPartyTypeKind$1;
|
|
5418
5418
|
ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
|
|
5419
5419
|
//#endregion
|
|
5420
|
-
//#region ../types/dist/sleep-
|
|
5420
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5421
5421
|
/**
|
|
5422
5422
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5423
5423
|
* window to float samples (D455).
|
|
@@ -5534,7 +5534,7 @@ function isKeychainStoredField(field) {
|
|
|
5534
5534
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5535
5535
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5536
5536
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5537
|
-
function isRecord$
|
|
5537
|
+
function isRecord$6(value) {
|
|
5538
5538
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5539
5539
|
}
|
|
5540
5540
|
function makeSecretMarker(ref) {
|
|
@@ -5545,12 +5545,12 @@ function makeSecretMarker(ref) {
|
|
|
5545
5545
|
}
|
|
5546
5546
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5547
5547
|
function isSecretMarker(value) {
|
|
5548
|
-
if (!isRecord$
|
|
5548
|
+
if (!isRecord$6(value)) return false;
|
|
5549
5549
|
const ref = value["$secret"];
|
|
5550
5550
|
return typeof ref === "string" && ref.length > 0;
|
|
5551
5551
|
}
|
|
5552
5552
|
function isSecretClear(value) {
|
|
5553
|
-
return isRecord$
|
|
5553
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5554
5554
|
}
|
|
5555
5555
|
/**
|
|
5556
5556
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6160,7 +6160,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6160
6160
|
}
|
|
6161
6161
|
};
|
|
6162
6162
|
var KEEP = { kind: "keep" };
|
|
6163
|
-
function isRecord$
|
|
6163
|
+
function isRecord$5(value) {
|
|
6164
6164
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6165
6165
|
}
|
|
6166
6166
|
function defaultMintId() {
|
|
@@ -6173,7 +6173,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6173
6173
|
return out;
|
|
6174
6174
|
}
|
|
6175
6175
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6176
|
-
else if (isRecord$
|
|
6176
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6177
6177
|
return out;
|
|
6178
6178
|
}
|
|
6179
6179
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6228,7 +6228,7 @@ function rowId(row, idKey) {
|
|
|
6228
6228
|
return null;
|
|
6229
6229
|
}
|
|
6230
6230
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6231
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6231
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6232
6232
|
if (!Array.isArray(incoming)) {
|
|
6233
6233
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6234
6234
|
return {
|
|
@@ -6244,7 +6244,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6244
6244
|
const kept = /* @__PURE__ */ new Set();
|
|
6245
6245
|
const rows = [];
|
|
6246
6246
|
for (const row of incoming) {
|
|
6247
|
-
if (!isRecord$
|
|
6247
|
+
if (!isRecord$5(row)) {
|
|
6248
6248
|
rows.push(row);
|
|
6249
6249
|
continue;
|
|
6250
6250
|
}
|
|
@@ -6269,7 +6269,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6269
6269
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6270
6270
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6271
6271
|
case "object": {
|
|
6272
|
-
if (!isRecord$
|
|
6272
|
+
if (!isRecord$5(incoming)) {
|
|
6273
6273
|
if (incoming === void 0) return KEEP;
|
|
6274
6274
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6275
6275
|
return {
|
|
@@ -6277,7 +6277,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6277
6277
|
value: incoming
|
|
6278
6278
|
};
|
|
6279
6279
|
}
|
|
6280
|
-
const storedObj = isRecord$
|
|
6280
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6281
6281
|
return {
|
|
6282
6282
|
kind: "value",
|
|
6283
6283
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6400,7 +6400,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6400
6400
|
value: items
|
|
6401
6401
|
};
|
|
6402
6402
|
}
|
|
6403
|
-
if (isRecord$
|
|
6403
|
+
if (isRecord$5(v)) {
|
|
6404
6404
|
const out = {};
|
|
6405
6405
|
for (const [k, child] of Object.entries(v)) {
|
|
6406
6406
|
const s = substitute(child);
|
|
@@ -6432,7 +6432,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6432
6432
|
this.name = "SecretOverwriteRefusedError";
|
|
6433
6433
|
}
|
|
6434
6434
|
};
|
|
6435
|
-
function isRecord$
|
|
6435
|
+
function isRecord$4(value) {
|
|
6436
6436
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6437
6437
|
}
|
|
6438
6438
|
function resolvedValue(pass, marker) {
|
|
@@ -6461,7 +6461,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6461
6461
|
return incoming.map((item, index) => {
|
|
6462
6462
|
const twin = stored[index];
|
|
6463
6463
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6464
|
-
if (isRecord$
|
|
6464
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6465
6465
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6466
6466
|
return item;
|
|
6467
6467
|
});
|
|
@@ -6472,7 +6472,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6472
6472
|
const twin = stored[key];
|
|
6473
6473
|
if (isSecretMarker(twin)) {
|
|
6474
6474
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6475
|
-
} else if (isRecord$
|
|
6475
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6476
6476
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6477
6477
|
}
|
|
6478
6478
|
return out;
|
|
@@ -6480,7 +6480,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6480
6480
|
async function walk(pass, incoming, stored) {
|
|
6481
6481
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6482
6482
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6483
|
-
if (!isRecord$
|
|
6483
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6484
6484
|
const out = { ...incoming };
|
|
6485
6485
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6486
6486
|
return out;
|
|
@@ -6511,7 +6511,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6511
6511
|
function isJsonEqual(a, b) {
|
|
6512
6512
|
if (Object.is(a, b)) return true;
|
|
6513
6513
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6514
|
-
if (isRecord$
|
|
6514
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6515
6515
|
const keys = Object.keys(a);
|
|
6516
6516
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6517
6517
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6535,7 +6535,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6535
6535
|
}
|
|
6536
6536
|
function nodeFromStored(value, owner) {
|
|
6537
6537
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6538
|
-
if (!isRecord$
|
|
6538
|
+
if (!isRecord$4(value)) return null;
|
|
6539
6539
|
const children = /* @__PURE__ */ new Map();
|
|
6540
6540
|
for (const [key, child] of Object.entries(value)) {
|
|
6541
6541
|
const node = nodeFromStored(child, owner);
|
package/dist/addon.mjs
CHANGED
|
@@ -5416,7 +5416,7 @@ var ZodIssueCode$1 = {
|
|
|
5416
5416
|
var ZodFirstPartyTypeKind$1;
|
|
5417
5417
|
ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
|
|
5418
5418
|
//#endregion
|
|
5419
|
-
//#region ../types/dist/sleep-
|
|
5419
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5420
5420
|
/**
|
|
5421
5421
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5422
5422
|
* window to float samples (D455).
|
|
@@ -5533,7 +5533,7 @@ function isKeychainStoredField(field) {
|
|
|
5533
5533
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5534
5534
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5535
5535
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5536
|
-
function isRecord$
|
|
5536
|
+
function isRecord$6(value) {
|
|
5537
5537
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5538
5538
|
}
|
|
5539
5539
|
function makeSecretMarker(ref) {
|
|
@@ -5544,12 +5544,12 @@ function makeSecretMarker(ref) {
|
|
|
5544
5544
|
}
|
|
5545
5545
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5546
5546
|
function isSecretMarker(value) {
|
|
5547
|
-
if (!isRecord$
|
|
5547
|
+
if (!isRecord$6(value)) return false;
|
|
5548
5548
|
const ref = value["$secret"];
|
|
5549
5549
|
return typeof ref === "string" && ref.length > 0;
|
|
5550
5550
|
}
|
|
5551
5551
|
function isSecretClear(value) {
|
|
5552
|
-
return isRecord$
|
|
5552
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5553
5553
|
}
|
|
5554
5554
|
/**
|
|
5555
5555
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6159,7 +6159,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6159
6159
|
}
|
|
6160
6160
|
};
|
|
6161
6161
|
var KEEP = { kind: "keep" };
|
|
6162
|
-
function isRecord$
|
|
6162
|
+
function isRecord$5(value) {
|
|
6163
6163
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6164
6164
|
}
|
|
6165
6165
|
function defaultMintId() {
|
|
@@ -6172,7 +6172,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6172
6172
|
return out;
|
|
6173
6173
|
}
|
|
6174
6174
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6175
|
-
else if (isRecord$
|
|
6175
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6176
6176
|
return out;
|
|
6177
6177
|
}
|
|
6178
6178
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6227,7 +6227,7 @@ function rowId(row, idKey) {
|
|
|
6227
6227
|
return null;
|
|
6228
6228
|
}
|
|
6229
6229
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6230
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6230
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6231
6231
|
if (!Array.isArray(incoming)) {
|
|
6232
6232
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6233
6233
|
return {
|
|
@@ -6243,7 +6243,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6243
6243
|
const kept = /* @__PURE__ */ new Set();
|
|
6244
6244
|
const rows = [];
|
|
6245
6245
|
for (const row of incoming) {
|
|
6246
|
-
if (!isRecord$
|
|
6246
|
+
if (!isRecord$5(row)) {
|
|
6247
6247
|
rows.push(row);
|
|
6248
6248
|
continue;
|
|
6249
6249
|
}
|
|
@@ -6268,7 +6268,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6268
6268
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6269
6269
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6270
6270
|
case "object": {
|
|
6271
|
-
if (!isRecord$
|
|
6271
|
+
if (!isRecord$5(incoming)) {
|
|
6272
6272
|
if (incoming === void 0) return KEEP;
|
|
6273
6273
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6274
6274
|
return {
|
|
@@ -6276,7 +6276,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6276
6276
|
value: incoming
|
|
6277
6277
|
};
|
|
6278
6278
|
}
|
|
6279
|
-
const storedObj = isRecord$
|
|
6279
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6280
6280
|
return {
|
|
6281
6281
|
kind: "value",
|
|
6282
6282
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6399,7 +6399,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6399
6399
|
value: items
|
|
6400
6400
|
};
|
|
6401
6401
|
}
|
|
6402
|
-
if (isRecord$
|
|
6402
|
+
if (isRecord$5(v)) {
|
|
6403
6403
|
const out = {};
|
|
6404
6404
|
for (const [k, child] of Object.entries(v)) {
|
|
6405
6405
|
const s = substitute(child);
|
|
@@ -6431,7 +6431,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6431
6431
|
this.name = "SecretOverwriteRefusedError";
|
|
6432
6432
|
}
|
|
6433
6433
|
};
|
|
6434
|
-
function isRecord$
|
|
6434
|
+
function isRecord$4(value) {
|
|
6435
6435
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6436
6436
|
}
|
|
6437
6437
|
function resolvedValue(pass, marker) {
|
|
@@ -6460,7 +6460,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6460
6460
|
return incoming.map((item, index) => {
|
|
6461
6461
|
const twin = stored[index];
|
|
6462
6462
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6463
|
-
if (isRecord$
|
|
6463
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6464
6464
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6465
6465
|
return item;
|
|
6466
6466
|
});
|
|
@@ -6471,7 +6471,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6471
6471
|
const twin = stored[key];
|
|
6472
6472
|
if (isSecretMarker(twin)) {
|
|
6473
6473
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6474
|
-
} else if (isRecord$
|
|
6474
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6475
6475
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6476
6476
|
}
|
|
6477
6477
|
return out;
|
|
@@ -6479,7 +6479,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6479
6479
|
async function walk(pass, incoming, stored) {
|
|
6480
6480
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6481
6481
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6482
|
-
if (!isRecord$
|
|
6482
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6483
6483
|
const out = { ...incoming };
|
|
6484
6484
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6485
6485
|
return out;
|
|
@@ -6510,7 +6510,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6510
6510
|
function isJsonEqual(a, b) {
|
|
6511
6511
|
if (Object.is(a, b)) return true;
|
|
6512
6512
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6513
|
-
if (isRecord$
|
|
6513
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6514
6514
|
const keys = Object.keys(a);
|
|
6515
6515
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6516
6516
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6534,7 +6534,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6534
6534
|
}
|
|
6535
6535
|
function nodeFromStored(value, owner) {
|
|
6536
6536
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6537
|
-
if (!isRecord$
|
|
6537
|
+
if (!isRecord$4(value)) return null;
|
|
6538
6538
|
const children = /* @__PURE__ */ new Map();
|
|
6539
6539
|
for (const [key, child] of Object.entries(value)) {
|
|
6540
6540
|
const node = nodeFromStored(child, owner);
|
package/package.json
CHANGED