@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/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Command } from "commander";
|
|
|
5
5
|
import pino2 from "pino";
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "0.9.
|
|
8
|
+
var version = "0.9.4";
|
|
9
9
|
|
|
10
10
|
// src/logger.ts
|
|
11
11
|
import pino from "pino";
|
|
@@ -1447,10 +1447,13 @@ async function discoverJsonlFilesGated(dirs, files, scannedDirs, options = {}) {
|
|
|
1447
1447
|
const watermark = scannedDirs.get(projectDir);
|
|
1448
1448
|
const canReuse = watermark !== void 0 && watermark.mtime_ms === dirStat.mtimeMs && watermark.has_nested === 0;
|
|
1449
1449
|
if (canReuse) {
|
|
1450
|
-
|
|
1451
|
-
|
|
1450
|
+
const known = files.activePathsByParentDir(projectDir);
|
|
1451
|
+
if (known.length > 0) {
|
|
1452
|
+
for (const row of known) {
|
|
1453
|
+
results.push({ filePath: row.absolute_path, account: row.account });
|
|
1454
|
+
}
|
|
1455
|
+
continue;
|
|
1452
1456
|
}
|
|
1453
|
-
continue;
|
|
1454
1457
|
}
|
|
1455
1458
|
const found = await discoverJsonlFiles([{ projectsDir: projectDir, account }]);
|
|
1456
1459
|
const hasNested = found.some((f) => dirnameOf(f.filePath) !== projectDir);
|