upgraded all npm packages and fixed related issues (#4072)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -156,7 +156,7 @@ export async function pullOllamaModel(
|
||||
if (onProgress) {
|
||||
onProgress(progress);
|
||||
}
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// Ignore parse errors
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user