@threadbase-sh/scanner 0.9.3 → 0.9.4

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/index.js CHANGED
@@ -1524,10 +1524,13 @@ async function discoverJsonlFilesGated(dirs, files, scannedDirs, options = {}) {
1524
1524
  const watermark = scannedDirs.get(projectDir);
1525
1525
  const canReuse = watermark !== void 0 && watermark.mtime_ms === dirStat.mtimeMs && watermark.has_nested === 0;
1526
1526
  if (canReuse) {
1527
- for (const row of files.activePathsByParentDir(projectDir)) {
1528
- results.push({ filePath: row.absolute_path, account: row.account });
1527
+ const known = files.activePathsByParentDir(projectDir);
1528
+ if (known.length > 0) {
1529
+ for (const row of known) {
1530
+ results.push({ filePath: row.absolute_path, account: row.account });
1531
+ }
1532
+ continue;
1529
1533
  }
1530
- continue;
1531
1534
  }
1532
1535
  const found = await discoverJsonlFiles([{ projectsDir: projectDir, account }]);
1533
1536
  const hasNested = found.some((f) => dirnameOf(f.filePath) !== projectDir);