mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
Fix TypeScript error in version check
This commit is contained in:
parent
b3d4478b61
commit
e3c4dd22ae
2 changed files with 78 additions and 61 deletions
|
|
@ -314,7 +314,7 @@ async function checkForNewVersion(currentVersion: string): Promise<string | null
|
|||
const response = await fetch("https://registry.npmjs.org/@mariozechner/pi-coding-agent/latest");
|
||||
if (!response.ok) return null;
|
||||
|
||||
const data = await response.json();
|
||||
const data = (await response.json()) as { version?: string };
|
||||
const latestVersion = data.version;
|
||||
|
||||
if (latestVersion && latestVersion !== currentVersion) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue