( filePath: string = getUpdateStateFile(), )
| 21 | .strict(); |
| 22 | |
| 23 | export async function readUpdateCache( |
| 24 | filePath: string = getUpdateStateFile(), |
| 25 | ): Promise<UpdateCache> { |
| 26 | try { |
| 27 | return await readJsonFile(filePath, UpdateCacheSchema, emptyUpdateCache()); |
| 28 | } catch { |
| 29 | return emptyUpdateCache(); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | export async function writeUpdateCache( |
| 34 | value: UpdateCache, |
no test coverage detected