commit 2 refactor

This commit is contained in:
Boki 2026-10-20 14:35:45 -04:00
parent 588f666943
commit 32e43c9243
310 changed files with 33318 additions and 31189 deletions

View file

@ -1,3 +1,5 @@
import type { LoggerLike } from '@stock-bot/logger';
/**
* Enhanced fetch wrapper with proxy support and automatic debug logging
* Drop-in replacement for native fetch with additional features
@ -8,7 +10,7 @@ export interface BunRequestInit extends RequestInit {
}
export interface FetchOptions extends RequestInit {
logger?: any;
logger?: LoggerLike;
proxy?: string | null;
timeout?: number;
}
@ -61,7 +63,7 @@ export async function fetch(input: RequestInfo | URL, options?: FetchOptions): P
async function performFetch(
input: RequestInfo | URL,
requestOptions: RequestInit,
logger: any,
logger: LoggerLike,
url: string
): Promise<Response> {
logger.debug('HTTP request', {