@skrillex1224/playwright-toolkit 2.1.138 → 2.1.139
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/README.md +1 -1
- package/dist/index.cjs +76 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +78 -4
- package/dist/index.js.map +3 -3
- package/index.d.ts +27 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -338,12 +338,38 @@ export interface LaunchOptions {
|
|
|
338
338
|
headless?: boolean;
|
|
339
339
|
args?: string[];
|
|
340
340
|
ignoreDefaultArgs?: string[];
|
|
341
|
+
proxy?: {
|
|
342
|
+
server: string;
|
|
343
|
+
username?: string;
|
|
344
|
+
password?: string;
|
|
345
|
+
bypass?: string;
|
|
346
|
+
};
|
|
341
347
|
[key: string]: any;
|
|
342
348
|
}
|
|
343
349
|
|
|
350
|
+
export interface ProxyConfiguration {
|
|
351
|
+
proxy_url?: string;
|
|
352
|
+
by_pass_domains?: string[];
|
|
353
|
+
enable_proxy?: boolean;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export interface GetLaunchOptionsInput {
|
|
357
|
+
customArgs?: string[];
|
|
358
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
359
|
+
log?: {
|
|
360
|
+
enable: boolean;
|
|
361
|
+
customLogger?: (message: string) => void;
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export interface GetLaunchOptionsResult {
|
|
366
|
+
launchOptions: LaunchOptions;
|
|
367
|
+
onPageCreated: (page: Page) => () => void;
|
|
368
|
+
}
|
|
369
|
+
|
|
344
370
|
export interface LaunchModule {
|
|
345
371
|
getAdvancedLaunchOptions(): LaunchOptions;
|
|
346
|
-
getLaunchOptions():
|
|
372
|
+
getLaunchOptions(options?: string[] | GetLaunchOptionsInput): GetLaunchOptionsResult;
|
|
347
373
|
getFingerprintGeneratorOptions(): Record<string, any>;
|
|
348
374
|
}
|
|
349
375
|
|