(images: string[])
| 408 | } |
| 409 | |
| 410 | async function convertImagesToDataUrls(images: string[]): Promise<string[]> { |
| 411 | return Promise.all( |
| 412 | images.map(async (image) => { |
| 413 | if (isInlineImageUrl(image)) { |
| 414 | return image; |
| 415 | } |
| 416 | return readImageAsDataUrl(image); |
| 417 | }), |
| 418 | ); |
| 419 | } |
| 420 | |
| 421 | async function normalizeImagesForRpc(images?: string[]): Promise<string[] | null> { |
| 422 | if (images == null) { |
no test coverage detected