-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from ulixee/humanaint
chore(core)!: rename emulators/humanoids
- Loading branch information
Showing
295 changed files
with
4,864 additions
and
4,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import INetworkInterceptorDelegate from './INetworkInterceptorDelegate'; | ||
import IUserProfile from './IUserProfile'; | ||
import IUserAgent from './IUserAgent'; | ||
import INewDocumentInjectedScript from './INewDocumentInjectedScript'; | ||
|
||
export default interface IBrowserEmulator { | ||
readonly userAgent: IUserAgent; | ||
readonly canPolyfill: boolean; | ||
readonly networkInterceptorDelegate: INetworkInterceptorDelegate; | ||
locale: string; | ||
userProfile: IUserProfile; | ||
|
||
newDocumentInjectedScripts(): Promise<INewDocumentInjectedScript[]>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import IUserAgent from './IUserAgent'; | ||
import IBrowserEmulator from './IBrowserEmulator'; | ||
|
||
export default interface IBrowserEmulatorClass { | ||
id: string; | ||
roundRobinPercent: number; | ||
engine: { browser: string; executablePath: string; revision: string }; | ||
new (userAgent?: IUserAgent): IBrowserEmulator; | ||
} | ||
|
||
// decorator for browser emulator classes. hacky way to check the class implements statics we need | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export function BrowserEmulatorClassDecorator(constructor: IBrowserEmulatorClass) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default interface IBrowserEngine { | ||
browser: string; | ||
revision: string; | ||
executablePath: string; | ||
} |
4 changes: 2 additions & 2 deletions
4
core-interfaces/IConfigureOptions.ts → core-interfaces/ICoreConfigureOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export default interface IConfigureOptions { | ||
export default interface ICoreConfigureOptions { | ||
maxConcurrentSessionsCount?: number; | ||
localProxyPortStart?: number; | ||
replayServerPort?: number; | ||
sessionsDir?: string; | ||
activeEmulatorIds?: string[]; | ||
browserEmulatorIds?: string[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.