mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-11 09:46:16 +00:00
refactor: Change default exports to named exports for consistency
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -363,5 +363,3 @@ export class Humanizer {
|
||||
this.actionCount = 0
|
||||
}
|
||||
}
|
||||
|
||||
export default Humanizer
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -108,5 +108,3 @@ export class JobState {
|
||||
return this.baseDir
|
||||
}
|
||||
}
|
||||
|
||||
export default JobState
|
||||
|
||||
Reference in New Issue
Block a user