refactor: Change default exports to named exports for consistency

This commit is contained in:
2026-01-02 17:05:06 +01:00
parent fe41b5c0c5
commit 4ee648e5cb
11 changed files with 16 additions and 35 deletions

View File

@@ -27,8 +27,7 @@ export async function createBrowserInstance(
email: string
): Promise<BrowserContext> {
const browserModule = await import('../../browser/Browser')
const Browser = browserModule.default
const browserInstance = new Browser(bot)
const browserInstance = new browserModule.Browser(bot)
return await browserInstance.createBrowser(proxy, email)
}

View File

@@ -363,5 +363,3 @@ export class Humanizer {
this.actionCount = 0
}
}
export default Humanizer

View File

@@ -4,7 +4,7 @@ import { HttpsProxyAgent } from 'https-proxy-agent'
import { SocksProxyAgent } from 'socks-proxy-agent'
import { AccountProxy } from '../../interface/Account'
class AxiosClient {
export class AxiosClient {
private instance: AxiosInstance
private account: AccountProxy
@@ -152,6 +152,4 @@ class AxiosClient {
private sleep(ms: number): Promise<void> {
return new Promise(resolve => setTimeout(resolve, ms))
}
}
export default AxiosClient
}

View File

@@ -108,5 +108,3 @@ export class JobState {
return this.baseDir
}
}
export default JobState