@threadbase-sh/scanner 0.8.2 → 0.8.3

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.cjs CHANGED
@@ -1302,7 +1302,10 @@ function classify(filePath, existing) {
1302
1302
  }
1303
1303
  return { change: "unchanged", stat: stat3 };
1304
1304
  }
1305
- return { change: "appended", stat: stat3 };
1305
+ if (existing.content_fingerprint && existing.size_bytes === existing.last_indexed_offset && fingerprint(filePath, existing.last_indexed_offset) === existing.content_fingerprint) {
1306
+ return { change: "appended", stat: stat3 };
1307
+ }
1308
+ return { change: "reindex", stat: stat3 };
1306
1309
  }
1307
1310
 
1308
1311
  // src/providers/parse.ts