update
This commit is contained in:
@@ -537,6 +537,7 @@ export class NpmRegistry extends BaseRegistry {
|
||||
try {
|
||||
// List all package paths
|
||||
const packagePaths = await this.storage.listObjects('npm/packages/');
|
||||
console.log(`[handleSearch] packagePaths (${packagePaths.length}):`, packagePaths.slice(0, 10));
|
||||
|
||||
// Extract unique package names from paths (format: npm/packages/{packageName}/...)
|
||||
const packageNames = new Set<string>();
|
||||
@@ -546,6 +547,7 @@ export class NpmRegistry extends BaseRegistry {
|
||||
packageNames.add(match[1]);
|
||||
}
|
||||
}
|
||||
console.log(`[handleSearch] Found ${packageNames.size} packages:`, Array.from(packageNames));
|
||||
|
||||
// Load packuments and filter by search text
|
||||
for (const packageName of packageNames) {
|
||||
|
||||
Reference in New Issue
Block a user