(docsVersion, apiVersion)
| 137 | |
| 138 | const enabledForApps = {} |
| 139 | export async function getEnabledForApps(docsVersion, apiVersion) { |
| 140 | if (Object.keys(enabledForApps).length === 0) { |
| 141 | // The `readCompressedJsonFileFallback()` function |
| 142 | // will check for both a .br and .json extension. |
| 143 | Object.assign(enabledForApps, readCompressedJsonFileFallback(ENABLED_APPS_FILENAME)) |
| 144 | } |
| 145 | const openApiVersion = getOpenApiVersion(docsVersion) + (apiVersion ? `.${apiVersion}` : '') |
| 146 | |
| 147 | return enabledForApps[openApiVersion] |
| 148 | } |
no test coverage detected