@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/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(): LaunchOptions;
372
+ getLaunchOptions(options?: string[] | GetLaunchOptionsInput): GetLaunchOptionsResult;
347
373
  getFingerprintGeneratorOptions(): Record<string, any>;
348
374
  }
349
375
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrillex1224/playwright-toolkit",
3
- "version": "2.1.138",
3
+ "version": "2.1.139",
4
4
  "description": "一个在 Apify/Crawlee Actor 中启用实时截图视图的实用工具库。",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",