()
| 118 | * Shown in the warning banner when the current version exceeds the max allowed version. |
| 119 | */ |
| 120 | export async function getMaxVersionMessage(): Promise<string | undefined> { |
| 121 | const config = await getMaxVersionConfig() |
| 122 | if (process.env.USER_TYPE === 'ant') { |
| 123 | return config.ant_message || undefined |
| 124 | } |
| 125 | return config.external_message || undefined |
| 126 | } |
| 127 | |
| 128 | async function getMaxVersionConfig(): Promise<MaxVersionConfig> { |
| 129 | try { |
no test coverage detected