(state: UpdateState)
| 22 | } |
| 23 | |
| 24 | function writeState(state: UpdateState): void { |
| 25 | try { |
| 26 | writeFileSync(STATE_FILE(), JSON.stringify(state)); |
| 27 | } catch { /* ignore */ } |
| 28 | } |
| 29 | |
| 30 | async function fetchLatestVersion(): Promise<string | null> { |
| 31 | try { |
no test coverage detected