@rljson/fs-agent 0.0.76 → 0.0.77

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
@@ -2131,7 +2131,8 @@ ${err.stack}` : String(err);
2131
2131
  return;
2132
2132
  }
2133
2133
  const dbAdapter = new FsDbAdapter(db, treeKey);
2134
- const parentRef = this._currentRef;
2134
+ const head = this._currentRef;
2135
+ const parentRef = head !== void 0 && head === tree.rootHash ? this._lastAppliedRef ?? head : head;
2135
2136
  const previous = await this._ancestryPrevious(
2136
2137
  db,
2137
2138
  treeKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/fs-agent",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
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",