(
supportedLibrariesArr: string[] | undefined,
langId: string,
remote?: Remote,
)
| 57 | } |
| 58 | |
| 59 | export async function getSupportedLibraries( |
| 60 | supportedLibrariesArr: string[] | undefined, |
| 61 | langId: string, |
| 62 | remote?: Remote, |
| 63 | ): Promise<LanguageLibs> { |
| 64 | const allLibs = remote |
| 65 | ? await libsService.getRemoteLibs(langId, remote.target + remote.basePath) |
| 66 | : await libsService.getLibsForLang(langId); |
| 67 | if (supportedLibrariesArr && supportedLibrariesArr.length > 0) { |
| 68 | return copyAndFilterLibraries(allLibs, supportedLibrariesArr); |
| 69 | } |
| 70 | return allLibs; |
| 71 | } |
nothing calls this directly
no test coverage detected