()
| 106 | * Returns undefined if no cap is configured. |
| 107 | */ |
| 108 | export async function getMaxVersion(): Promise<string | undefined> { |
| 109 | const config = await getMaxVersionConfig() |
| 110 | if (process.env.USER_TYPE === 'ant') { |
| 111 | return config.ant || undefined |
| 112 | } |
| 113 | return config.external || undefined |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Returns the server-driven message explaining the known issue, if configured. |
no test coverage detected