(store: string, key: string)
| 199 | |
| 200 | /** Read an entry from a store. Returns null if not found. */ |
| 201 | export function getEntry(store: string, key: string): string | null { |
| 202 | validateStoreName(store) |
| 203 | validateKey(key) |
| 204 | const entryPath = getEntryPath(store, key) |
| 205 | if (!existsSync(entryPath)) return null |
| 206 | return readFileSync(entryPath, 'utf8') |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * M4 fix: bounded read variant. Returns at most `maxBytes` bytes from the |
no test coverage detected