@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/cli.js +7 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1588,10 +1588,13 @@ async function discoverJsonlFilesGated(dirs, files, scannedDirs, options = {}) {
|
|
|
1588
1588
|
const watermark = scannedDirs.get(projectDir);
|
|
1589
1589
|
const canReuse = watermark !== void 0 && watermark.mtime_ms === dirStat.mtimeMs && watermark.has_nested === 0;
|
|
1590
1590
|
if (canReuse) {
|
|
1591
|
-
|
|
1592
|
-
|
|
1591
|
+
const known = files.activePathsByParentDir(projectDir);
|
|
1592
|
+
if (known.length > 0) {
|
|
1593
|
+
for (const row of known) {
|
|
1594
|
+
results.push({ filePath: row.absolute_path, account: row.account });
|
|
1595
|
+
}
|
|
1596
|
+
continue;
|
|
1593
1597
|
}
|
|
1594
|
-
continue;
|
|
1595
1598
|
}
|
|
1596
1599
|
const found = await discoverJsonlFiles([{ projectsDir: projectDir, account }]);
|
|
1597
1600
|
const hasNested = found.some((f) => dirnameOf(f.filePath) !== projectDir);
|