@rljson/fs-agent 0.0.63 → 0.0.64

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 +2 -1
  2. package/package.json +1 -1
package/dist/fs-agent.js CHANGED
@@ -2052,11 +2052,12 @@ ${err.stack}` : String(err);
2052
2052
  const initialIsNew = initialParentRef !== void 0 && initialTree.rootHash !== initialParentRef;
2053
2053
  const initialPrevious = initialIsNew ? await this._ancestryPrevious(db, treeKey, [initialParentRef]) : void 0;
2054
2054
  const isSilentJoiner = initialParentRef === void 0 && this._treeIsEmpty(initialTree);
2055
+ const resumingUnchanged = initialParentRef !== void 0 && initialTree.rootHash === initialParentRef;
2055
2056
  const initialRef = await FsAgent._withTimeout(
2056
2057
  new FsDbAdapter(db, treeKey).storeFsTree(initialTree, {
2057
2058
  ...options,
2058
2059
  previous: initialPrevious,
2059
- skipNotification: isSilentJoiner ? true : options?.skipNotification
2060
+ skipNotification: isSilentJoiner || resumingUnchanged ? true : options?.skipNotification
2060
2061
  }),
2061
2062
  this._timeouts.fetchTree,
2062
2063
  `syncToDb → initial storeFsTree(${treeKey})`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/fs-agent",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
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",