cry-synced-db-client 0.1.206 → 0.1.207
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/index.js +1 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3446,13 +3446,12 @@ var _SyncEngine = class _SyncEngine {
|
|
|
3446
3446
|
var _a;
|
|
3447
3447
|
if ((_a = this.collections.get(collection)) == null ? void 0 : _a.writeOnly) return;
|
|
3448
3448
|
const dexieSave = [];
|
|
3449
|
-
const dexieDeleteIds = [];
|
|
3450
3449
|
const memUpsert = [];
|
|
3451
3450
|
const memDelete = [];
|
|
3452
3451
|
const reAddDirty = [];
|
|
3453
3452
|
for (const record of mustRefresh) {
|
|
3454
3453
|
if (record._deleted || record._archived) {
|
|
3455
|
-
|
|
3454
|
+
dexieSave.push(record);
|
|
3456
3455
|
memDelete.push({ _id: record._id });
|
|
3457
3456
|
continue;
|
|
3458
3457
|
}
|
|
@@ -3488,9 +3487,6 @@ var _SyncEngine = class _SyncEngine {
|
|
|
3488
3487
|
}
|
|
3489
3488
|
if (dexieSave.length > 0)
|
|
3490
3489
|
await this.dexieDb.saveMany(collection, dexieSave);
|
|
3491
|
-
if (dexieDeleteIds.length > 0) {
|
|
3492
|
-
await this.dexieDb.deleteMany(collection, dexieDeleteIds);
|
|
3493
|
-
}
|
|
3494
3490
|
if (memUpsert.length > 0) {
|
|
3495
3491
|
this.deps.writeToInMemBatch(collection, memUpsert, "upsert", {
|
|
3496
3492
|
source: "incremental"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cry-synced-db-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.207",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"vitest": "^4.1.8"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"cry-db": "^2.5.
|
|
40
|
+
"cry-db": "^2.5.5",
|
|
41
41
|
"cry-helpers": "^2.1.205",
|
|
42
42
|
"msgpackr": "^2.0.4",
|
|
43
43
|
"superjson": "^2.2.6"
|