cry-synced-db-client 2.0.3 → 2.0.4
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 +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -509,6 +509,9 @@ function computeObjDiff(existing, update) {
|
|
|
509
509
|
continue;
|
|
510
510
|
computeDiffInto(existing[key], update[key], key, diff);
|
|
511
511
|
}
|
|
512
|
+
if (Object.prototype.hasOwnProperty.call(update, "_lastUpdaterId")) {
|
|
513
|
+
diff._lastUpdaterId = update._lastUpdaterId;
|
|
514
|
+
}
|
|
512
515
|
return diff;
|
|
513
516
|
}
|
|
514
517
|
function tokenizePath(path) {
|
|
@@ -4794,8 +4797,7 @@ var ServerUpdateHandler = class {
|
|
|
4794
4797
|
return "ignore";
|
|
4795
4798
|
}
|
|
4796
4799
|
if (incomingRev === localRev + 1) {
|
|
4797
|
-
|
|
4798
|
-
if (updaterId === this.updaterId) {
|
|
4800
|
+
if (incomingUpdaterId !== void 0 && incomingUpdaterId === this.updaterId) {
|
|
4799
4801
|
return "bump-meta";
|
|
4800
4802
|
}
|
|
4801
4803
|
return "apply";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cry-synced-db-client",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
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.10"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"cry-db": "^2.6.
|
|
40
|
+
"cry-db": "^2.6.3",
|
|
41
41
|
"cry-helpers": "^2.1.207",
|
|
42
42
|
"msgpackr": "^2.0.4",
|
|
43
43
|
"superjson": "^2.2.6"
|