@toolbaux/guardian 0.2.1 → 0.2.2
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.
|
@@ -592,6 +592,16 @@ export class SqliteSpecsStore {
|
|
|
592
592
|
return [];
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
+
/** Return all file_path values currently in the search index. Useful for tests and diagnostics. */
|
|
596
|
+
listIndexedFilePaths() {
|
|
597
|
+
try {
|
|
598
|
+
const rows = this.db.prepare("SELECT file_path FROM search_fts").all();
|
|
599
|
+
return rows.map(r => r.file_path);
|
|
600
|
+
}
|
|
601
|
+
catch {
|
|
602
|
+
return [];
|
|
603
|
+
}
|
|
604
|
+
}
|
|
595
605
|
/**
|
|
596
606
|
* Store API endpoint facts.
|
|
597
607
|
* Called from populateFTSIndex() after reading intel/arch objects.
|
package/package.json
CHANGED