@rljson/fs-agent 0.0.20 → 0.0.21

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 +7 -1
  2. package/package.json +1 -1
package/dist/fs-agent.js CHANGED
@@ -505,7 +505,13 @@ class FsScanner {
505
505
  }
506
506
  if (this._vanishedDuringScan > 0) {
507
507
  console.warn(
508
- `[fs-scanner] ${this._vanishedDuringScan} entr${this._vanishedDuringScan === 1 ? "y" : "ies"} vanished during the scan of ${this._rootPath} — skipped; the next scan picks up the settled state`
508
+ `[fs-scanner] ${this._vanishedDuringScan} entr${this._vanishedDuringScan === 1 ? "y" : "ies"} vanished during the scan of ${this._rootPath} — this scan is a partial picture`
509
+ );
510
+ if (this._tree) {
511
+ return this._tree;
512
+ }
513
+ console.warn(
514
+ `[fs-scanner] no previous scan of ${this._rootPath} to fall back on — starting from the partial one`
509
515
  );
510
516
  }
511
517
  trees.set(rootHashStr, rootTree);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/fs-agent",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
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",