@anfenn/dync 1.0.22 → 1.0.24
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/README.md +1 -1
- package/dist/{chunk-YSKDP34Q.js → chunk-QA2TX54K.js} +15 -2
- package/dist/chunk-QA2TX54K.js.map +1 -0
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
- package/src/storage/sqlite/helpers.ts +19 -1
- package/dist/chunk-YSKDP34Q.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2433,10 +2433,23 @@ var buildCondition = (condition) => {
|
|
|
2433
2433
|
}
|
|
2434
2434
|
};
|
|
2435
2435
|
var cloneValue = (value) => {
|
|
2436
|
+
if (value == null || typeof value !== "object") return value;
|
|
2437
|
+
if (!Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype) {
|
|
2438
|
+
const obj = value;
|
|
2439
|
+
let isFlat = true;
|
|
2440
|
+
for (const key in obj) {
|
|
2441
|
+
const v = obj[key];
|
|
2442
|
+
if (v !== null && typeof v === "object") {
|
|
2443
|
+
isFlat = false;
|
|
2444
|
+
break;
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
if (isFlat) return { ...obj };
|
|
2448
|
+
}
|
|
2436
2449
|
if (typeof globalThis.structuredClone === "function") {
|
|
2437
2450
|
return globalThis.structuredClone(value);
|
|
2438
2451
|
}
|
|
2439
|
-
return JSON.parse(JSON.stringify(value
|
|
2452
|
+
return JSON.parse(JSON.stringify(value));
|
|
2440
2453
|
};
|
|
2441
2454
|
var quoteIdentifier = (name) => `"${name.replace(/"/g, '""')}"`;
|
|
2442
2455
|
var normalizeComparableValue = (value) => {
|