@skrillex1224/playwright-toolkit 2.1.276 → 2.1.278
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +22 -1
- package/dist/browser.js.map +3 -3
- package/dist/index.cjs +690 -125
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +690 -125
- package/dist/index.js.map +4 -4
- package/index.d.ts +12 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -18,14 +18,23 @@ export interface StatusType {
|
|
|
18
18
|
Failed: 'FAILED';
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export interface ModeType {
|
|
22
|
+
Default: 'default';
|
|
23
|
+
CloakBrowser: 'cloakbrowser';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ToolkitMode = 'default' | 'cloakbrowser';
|
|
27
|
+
|
|
21
28
|
export interface ConstantsModule {
|
|
22
29
|
Code: CodeType;
|
|
23
30
|
Status: StatusType;
|
|
31
|
+
Mode: ModeType;
|
|
24
32
|
PresetOfLiveViewKey: string;
|
|
25
33
|
Device: {
|
|
26
34
|
Desktop: 'desktop';
|
|
27
35
|
Mobile: 'mobile';
|
|
28
36
|
};
|
|
37
|
+
normalizeMode(value?: unknown, fallback?: ToolkitMode): ToolkitMode;
|
|
29
38
|
normalizeDevice(value?: unknown, fallback?: RuntimeDevice): RuntimeDevice;
|
|
30
39
|
ActorInfo: Record<string, ActorInfoItem>;
|
|
31
40
|
}
|
|
@@ -33,7 +42,7 @@ export interface ConstantsModule {
|
|
|
33
42
|
export type RuntimeDevice = 'desktop' | 'mobile';
|
|
34
43
|
|
|
35
44
|
export interface ActorShareInfo {
|
|
36
|
-
mode: 'dom' | 'response';
|
|
45
|
+
mode: 'dom' | 'response' | 'custom';
|
|
37
46
|
prefix: string;
|
|
38
47
|
xurl: Array<string | string[]>;
|
|
39
48
|
}
|
|
@@ -473,7 +482,8 @@ export interface CloakBrowserCrawlerRuntime {
|
|
|
473
482
|
cleanup(): Promise<void>;
|
|
474
483
|
}
|
|
475
484
|
|
|
476
|
-
export interface CloakLaunchModule extends LaunchModule {
|
|
485
|
+
export interface CloakLaunchModule extends Omit<LaunchModule, 'getPlaywrightCrawlerOptions'> {
|
|
486
|
+
getPlaywrightCrawlerOptions(options?: GetPlaywrightCrawlerOptionsInput | CreateCloakBrowserCrawlerRuntimeInput): Promise<PlaywrightCrawlerOptions>;
|
|
477
487
|
resolveProxyConfiguration(proxyConfiguration?: ProxyConfiguration): string | CloakBrowserResolvedProxy | null;
|
|
478
488
|
extractFingerprintArg(launchOptions?: LaunchOptions): string;
|
|
479
489
|
createStableGotoHook(recommendedGotoOptions?: Record<string, any>): CrawlerNavigationHook;
|