()
| 88 | } |
| 89 | |
| 90 | async function readFreshCachedRecords() { |
| 91 | const entry = await readCacheEntry(RECORDS_CACHE_KEY, {legacyFields: ["data"]}); |
| 92 | return isCacheEntryExpired(entry) ? null : normalizeRecordList(entry.value); |
| 93 | } |
| 94 | |
| 95 | function normalizeRecordList(records) { |
| 96 | const recordList = Array.isArray(records) ? records : Object.values(records ?? {}); |
no test coverage detected