(input: string)
| 36 | |
| 37 | const sleep = (ms: number): Promise<void> => |
| 38 | new Promise((resolve) => setTimeout(resolve, ms)); |
| 39 | |
| 40 | const expandableBlock = (input: string): string => |
| 41 | `<blockquote expandable>${htmlEscape(input)}</blockquote>`; |
| 42 | |
| 43 | async function getDb(): Promise<Low<CodexImageConfig>> { |
| 44 | if (!dbPromise) { |
| 45 | dbPromise = JSONFilePreset<CodexImageConfig>(configPath, { |
| 46 | accessToken: "", |
| 47 | }); |
| 48 | } |
| 49 | const db = await dbPromise; |
| 50 | db.data ||= { accessToken: "" }; |
| 51 | return db; |
| 52 | } |
no outgoing calls
no test coverage detected