()
| 69 | } |
| 70 | |
| 71 | function ensureCachedMCState(): import('./cachedMicrocompact.js').CachedMCState { |
| 72 | if (!cachedMCState && cachedMCModule) { |
| 73 | cachedMCState = cachedMCModule.createCachedMCState() |
| 74 | } |
| 75 | if (!cachedMCState) { |
| 76 | throw new Error( |
| 77 | 'cachedMCState not initialized — getCachedMCModule() must be called first', |
| 78 | ) |
| 79 | } |
| 80 | return cachedMCState |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Get new pending cache edits to be included in the next API request. |
no outgoing calls
no test coverage detected