()
| 128 | * Shown in the warning banner when the current version exceeds the max allowed version. |
| 129 | */ |
| 130 | export async function getMaxVersionMessage(): Promise<string | undefined> { |
| 131 | const config = await getMaxVersionConfig() |
| 132 | if (isInternalBuild()) { |
| 133 | return config.ant_message || undefined |
| 134 | } |
| 135 | return config.external_message || undefined |
| 136 | } |
| 137 | |
| 138 | async function getMaxVersionConfig(): Promise<MaxVersionConfig> { |
| 139 | try { |
no test coverage detected