( profiles: string[], substring: string, )
| 41 | }) |
| 42 | |
| 43 | export function findFirstMatch( |
| 44 | profiles: string[], |
| 45 | substring: string, |
| 46 | ): string | null { |
| 47 | return profiles.find(p => p.includes(substring)) ?? null |
| 48 | } |
| 49 | |
| 50 | async function createBedrockClient() { |
| 51 | const { BedrockClient } = await import('@aws-sdk/client-bedrock') |
no outgoing calls
no test coverage detected