()
| 73 | } |
| 74 | |
| 75 | async function readFromDisk(): Promise<Record<string, FlaggedPlugin>> { |
| 76 | try { |
| 77 | const content = await readFile(getFlaggedPluginsPath(), { |
| 78 | encoding: 'utf-8', |
| 79 | }) |
| 80 | return parsePluginsData(content) |
| 81 | } catch { |
| 82 | return {} |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | async function writeToDisk( |
| 87 | plugins: Record<string, FlaggedPlugin>, |
no test coverage detected