upgraded all npm packages and fixed related issues (#4072)

This commit is contained in:
Zane
2025-08-18 15:12:44 -07:00
committed by GitHub
parent 818486da10
commit a14f087d20
51 changed files with 3686 additions and 3311 deletions
+2 -2
View File
@@ -201,7 +201,7 @@ export async function fetchAndCachePricing(
// Model not found in pricing data
return { costInfo: null, error: 'model_not_found' };
}
} catch (error) {
} catch {
// This is a real API/network error
return null;
}
@@ -231,7 +231,7 @@ export async function refreshPricing(): Promise<boolean> {
});
return response.ok;
} catch (error) {
} catch {
return false;
}
}
-1
View File
@@ -165,7 +165,6 @@ export class GitHubUpdater {
const chunks: Uint8Array[] = [];
let downloadedSize = 0;
// eslint-disable-next-line no-constant-condition
while (true) {
const { done, value } = await reader.read();
if (done) break;
+1 -1
View File
@@ -156,7 +156,7 @@ export async function pullOllamaModel(
if (onProgress) {
onProgress(progress);
}
} catch (e) {
} catch {
// Ignore parse errors
}
}
+2 -2
View File
@@ -30,7 +30,7 @@ export function loadRecentDirs(): string[] {
}
return stats.isDirectory();
} catch (error) {
} catch {
// Directory doesn't exist or can't be accessed - don't log full path for security
console.warn(`Removing inaccessible recent directory`);
return false;
@@ -66,7 +66,7 @@ export function addRecentDir(dir: string): void {
console.warn(`Cannot add recent directory: not a directory`);
return;
}
} catch (error) {
} catch {
console.warn(`Cannot add recent directory: path does not exist or cannot be accessed`);
return;
}