({
altText,
filepath,
}: {
altText?: string
filepath: string
})
| 102 | } |
| 103 | |
| 104 | export async function img({ |
| 105 | altText, |
| 106 | filepath, |
| 107 | }: { |
| 108 | altText?: string |
| 109 | filepath: string |
| 110 | }) { |
| 111 | return { |
| 112 | altText, |
| 113 | contentType: filepath.endsWith('.png') ? 'image/png' : 'image/jpeg', |
| 114 | blob: await fs.promises.readFile(filepath), |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | let _migrationSqls: Array<Array<string>> | undefined |
| 119 | async function getMigrationSqls() { |
no outgoing calls
no test coverage detected