@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.
Files changed (2) hide show
  1. package/dist/fs-agent.js +3 -2
  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.`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/fs-agent",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "Rljson fs-agent description",
5
5
  "homepage": "https://github.com/rljson/fs-agent",
6
6
  "bugs": "https://github.com/rljson/fs-agent/issues",