(image: string)
| 400 | } |
| 401 | |
| 402 | function isInlineImageUrl(image: string) { |
| 403 | return ( |
| 404 | image.startsWith("data:") || |
| 405 | image.startsWith("http://") || |
| 406 | image.startsWith("https://") |
| 407 | ); |
| 408 | } |
| 409 | |
| 410 | async function convertImagesToDataUrls(images: string[]): Promise<string[]> { |
| 411 | return Promise.all( |
no outgoing calls
no test coverage detected