@rljson/fs-agent 0.0.37 → 0.0.38
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 +3 -2
- package/package.json +1 -1
package/dist/fs-agent.js
CHANGED
|
@@ -1898,15 +1898,16 @@ ${err.stack}` : String(err);
|
|
|
1898
1898
|
);
|
|
1899
1899
|
const initialIsNew = initialParentRef !== void 0 && initialTree.rootHash !== initialParentRef;
|
|
1900
1900
|
const initialPrevious = initialIsNew ? await this._ancestryPrevious(db, treeKey, [initialParentRef]) : void 0;
|
|
1901
|
+
const isSilentJoiner = initialParentRef === void 0 && this._treeIsEmpty(initialTree);
|
|
1901
1902
|
const initialRef = await FsAgent._withTimeout(
|
|
1902
1903
|
new FsDbAdapter(db, treeKey).storeFsTree(initialTree, {
|
|
1903
1904
|
...options,
|
|
1904
|
-
previous: initialPrevious
|
|
1905
|
+
previous: initialPrevious,
|
|
1906
|
+
skipNotification: isSilentJoiner ? true : options?.skipNotification
|
|
1905
1907
|
}),
|
|
1906
1908
|
this._timeouts.fetchTree,
|
|
1907
1909
|
`syncToDb → initial storeFsTree(${treeKey})`
|
|
1908
1910
|
);
|
|
1909
|
-
const isSilentJoiner = initialParentRef === void 0 && this._treeIsEmpty(initialTree);
|
|
1910
1911
|
if (isSilentJoiner) {
|
|
1911
1912
|
console.warn(
|
|
1912
1913
|
`[FsAgent] ${this._rootPath} is empty and has no remembered state — joining quietly rather than announcing emptiness.`
|