@rljson/fs-agent 0.0.52 → 0.0.53
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/fs-agent.js +1 -1
- package/package.json +1 -1
package/dist/fs-agent.js
CHANGED
|
@@ -2505,7 +2505,7 @@ ${err.stack}` : String(err);
|
|
|
2505
2505
|
const ancestryExpected = this._resolveConflicts;
|
|
2506
2506
|
const declaresAncestry = (predecessorRefs?.length ?? 0) > 0;
|
|
2507
2507
|
const ancestryIsCarried = connector.syncConfig?.causalOrdering === true;
|
|
2508
|
-
const senderSawMyState = !ancestryIsCarried || this._currentRef !== void 0 &&
|
|
2508
|
+
const senderSawMyState = !ancestryIsCarried || !declaresAncestry || this._currentRef !== void 0 && predecessorRefs.includes(this._currentRef);
|
|
2509
2509
|
const withholdPrune = restoreOptions?.cleanTarget && (ancestryExpected && !declaresAncestry || !senderSawMyState);
|
|
2510
2510
|
const applyOptions = withholdPrune ? { ...restoreOptions, cleanTarget: false } : restoreOptions;
|
|
2511
2511
|
if (applyOptions !== restoreOptions) {
|