refactor(backend): split log files into separate file

This commit is contained in:
2025-01-19 16:43:00 +01:00
parent e9cc56d7ee
commit f106460502
24 changed files with 155 additions and 113 deletions

View File

@@ -9,7 +9,7 @@ export function json(content: unknown) {
export const isValidUrl = (urlString: string) => {
try {
return Boolean(new URL(urlString));
} catch (e) {
} catch (_e) {
return false;
}
};
@@ -87,6 +87,8 @@ export const createStreamResponse = () => {
};
};
export type StreamResponse = ReturnType<typeof createStreamResponse>;
export function debounce<T extends (...args: Parameters<T>) => void>(
this: ThisParameterType<T>,
fn: T,