* Fetch the compatibility file for the UI, if a version is provided, then fetch the versioned file.
(versionPath?: string)
| 97 | * Fetch the compatibility file for the UI, if a version is provided, then fetch the versioned file. |
| 98 | */ |
| 99 | async function fetchCompatFile(versionPath?: string): Promise<ApiCompatibilityInfo> { |
| 100 | const fileUrl = versionPath |
| 101 | ? `${appInitConfig.baseUrl}${versionPath}/compat.json` |
| 102 | : `${appInitConfig.baseUrl}compat.json`; |
| 103 | |
| 104 | const response = await fetch(fileUrl); |
| 105 | return await response.json(); |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Get the currently loaded UI version from the meta tag or the import.meta.env |
no outgoing calls
no test coverage detected