@absolutejs/sync 1.18.1 → 1.18.2
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/engine/index.js +9 -2
- package/dist/engine/index.js.map +3 -3
- package/dist/index.js +9 -2
- package/dist/index.js.map +3 -3
- package/dist/testing.js +9 -2
- package/dist/testing.js.map +3 -3
- package/package.json +1 -1
package/dist/testing.js
CHANGED
|
@@ -1305,13 +1305,20 @@ var createSyncEngine = (options = {}) => {
|
|
|
1305
1305
|
oldestPerOrigin.set(entry.origin, entry.originVersion);
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
+
const oldestLogVersion = changeLog[0]?.version;
|
|
1308
1309
|
for (const [origin, lastSeen] of Object.entries(sinceVec)) {
|
|
1309
1310
|
if (origin === instanceId) {
|
|
1310
1311
|
if (lastSeen >= version)
|
|
1311
1312
|
continue;
|
|
1312
1313
|
const oldestLocal = oldestPerOrigin.get(instanceId);
|
|
1313
|
-
if (oldestLocal
|
|
1314
|
+
if (oldestLocal !== undefined) {
|
|
1315
|
+
if (oldestLocal > lastSeen + 1)
|
|
1316
|
+
return false;
|
|
1317
|
+
continue;
|
|
1318
|
+
}
|
|
1319
|
+
if (oldestLogVersion !== undefined && oldestLogVersion > lastSeen + 1) {
|
|
1314
1320
|
return false;
|
|
1321
|
+
}
|
|
1315
1322
|
} else {
|
|
1316
1323
|
const oldestPeer = oldestPerOrigin.get(origin);
|
|
1317
1324
|
if (oldestPeer === undefined) {
|
|
@@ -2186,5 +2193,5 @@ export {
|
|
|
2186
2193
|
createTestEngine
|
|
2187
2194
|
};
|
|
2188
2195
|
|
|
2189
|
-
//# debugId=
|
|
2196
|
+
//# debugId=89F275CAA65D1FFC64756E2164756E21
|
|
2190
2197
|
//# sourceMappingURL=testing.js.map
|