()
| 391 | * while still making fast mode availability checks work. |
| 392 | */ |
| 393 | export function resolveFastModeStatusFromCache(): void { |
| 394 | if (!isFastModeEnabled()) { |
| 395 | return |
| 396 | } |
| 397 | if (orgStatus.status !== 'pending') { |
| 398 | return |
| 399 | } |
| 400 | const isAnt = isInternalBuild() |
| 401 | const cachedEnabled = getGlobalConfig().penguinModeOrgEnabled === true |
| 402 | orgStatus = |
| 403 | isAnt || cachedEnabled |
| 404 | ? { status: 'enabled' } |
| 405 | : { status: 'disabled', reason: 'unknown' } |
| 406 | } |
| 407 | |
| 408 | export async function prefetchFastModeStatus(): Promise<void> { |
| 409 | // Skip network requests if nonessential traffic is disabled |
no test coverage detected