@crawlee/playwright 4.0.0-beta.140 → 4.0.0-beta.142

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.
@@ -148,19 +148,6 @@ export declare class PlaywrightCrawler<ContextExtension = Dictionary<never>, Ext
148
148
  * @internal
149
149
  */
150
150
  protected static optionsShape: {
151
- headless: z.ZodOptional<z.ZodBoolean>;
152
- launcher: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
153
- navigationTimeoutSecs: z.ZodDefault<z.ZodCustom<number, number>>;
154
- preNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
155
- postNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
156
- launchContext: z.ZodDefault<z.ZodCustom<Dictionary, Dictionary>>;
157
- browserPool: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
158
- browserPoolBuilder: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
159
- remoteBrowser: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
160
- saveResponseCookies: z.ZodDefault<z.ZodBoolean>;
161
- proxyConfiguration: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
162
- ignoreIframes: z.ZodDefault<z.ZodBoolean>;
163
- ignoreShadowRoots: z.ZodDefault<z.ZodBoolean>;
164
151
  contextPipelineBuilder: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
165
152
  extendContext: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
166
153
  requestList: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
@@ -205,11 +192,6 @@ export declare class PlaywrightCrawler<ContextExtension = Dictionary<never>, Ext
205
192
  keepAlive: z.ZodOptional<z.ZodBoolean>;
206
193
  statistics: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
207
194
  id: z.ZodOptional<z.ZodString>;
208
- };
209
- /** @internal */
210
- protected static optionsSchema: z.ZodObject<{
211
- headless: z.ZodOptional<z.ZodBoolean>;
212
- launcher: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
213
195
  navigationTimeoutSecs: z.ZodDefault<z.ZodCustom<number, number>>;
214
196
  preNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
215
197
  postNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
@@ -221,6 +203,11 @@ export declare class PlaywrightCrawler<ContextExtension = Dictionary<never>, Ext
221
203
  proxyConfiguration: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
222
204
  ignoreIframes: z.ZodDefault<z.ZodBoolean>;
223
205
  ignoreShadowRoots: z.ZodDefault<z.ZodBoolean>;
206
+ headless: z.ZodOptional<z.ZodBoolean>;
207
+ launcher: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
208
+ };
209
+ /** @internal */
210
+ protected static optionsSchema: z.ZodObject<{
224
211
  contextPipelineBuilder: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
225
212
  extendContext: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
226
213
  requestList: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
@@ -265,6 +252,19 @@ export declare class PlaywrightCrawler<ContextExtension = Dictionary<never>, Ext
265
252
  keepAlive: z.ZodOptional<z.ZodBoolean>;
266
253
  statistics: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
267
254
  id: z.ZodOptional<z.ZodString>;
255
+ navigationTimeoutSecs: z.ZodDefault<z.ZodCustom<number, number>>;
256
+ preNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
257
+ postNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
258
+ launchContext: z.ZodDefault<z.ZodCustom<Dictionary, Dictionary>>;
259
+ browserPool: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
260
+ browserPoolBuilder: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
261
+ remoteBrowser: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
262
+ saveResponseCookies: z.ZodDefault<z.ZodBoolean>;
263
+ proxyConfiguration: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
264
+ ignoreIframes: z.ZodDefault<z.ZodBoolean>;
265
+ ignoreShadowRoots: z.ZodDefault<z.ZodBoolean>;
266
+ headless: z.ZodOptional<z.ZodBoolean>;
267
+ launcher: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
268
268
  }, z.core.$strict>;
269
269
  /**
270
270
  * All `PlaywrightCrawler` parameters are passed via an options object.
@@ -76,10 +76,6 @@ export declare class PlaywrightLauncher extends BrowserLauncher<PlaywrightPlugin
76
76
  * @internal
77
77
  */
78
78
  protected static optionsShape: {
79
- // @ts-ignore optional peer dependency or compatibility with es2022
80
- launcher: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
81
- // @ts-ignore optional peer dependency or compatibility with es2022
82
- launchContextOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
83
79
  proxyUrl: z.ZodOptional<z.ZodURL>;
84
80
  useChrome: z.ZodOptional<z.ZodBoolean>;
85
81
  useIncognitoPages: z.ZodOptional<z.ZodBoolean>;
@@ -89,13 +85,13 @@ export declare class PlaywrightLauncher extends BrowserLauncher<PlaywrightPlugin
89
85
  // @ts-ignore optional peer dependency or compatibility with es2022
90
86
  launchOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
91
87
  userAgent: z.ZodOptional<z.ZodString>;
92
- };
93
- /** @internal */
94
- protected static optionsSchema: z.ZodObject<{
95
88
  // @ts-ignore optional peer dependency or compatibility with es2022
96
89
  launcher: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
97
90
  // @ts-ignore optional peer dependency or compatibility with es2022
98
91
  launchContextOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
92
+ };
93
+ /** @internal */
94
+ protected static optionsSchema: z.ZodObject<{
99
95
  proxyUrl: z.ZodOptional<z.ZodURL>;
100
96
  useChrome: z.ZodOptional<z.ZodBoolean>;
101
97
  useIncognitoPages: z.ZodOptional<z.ZodBoolean>;
@@ -105,6 +101,10 @@ export declare class PlaywrightLauncher extends BrowserLauncher<PlaywrightPlugin
105
101
  // @ts-ignore optional peer dependency or compatibility with es2022
106
102
  launchOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
107
103
  userAgent: z.ZodOptional<z.ZodString>;
104
+ // @ts-ignore optional peer dependency or compatibility with es2022
105
+ launcher: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
106
+ // @ts-ignore optional peer dependency or compatibility with es2022
107
+ launchContextOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types").Dictionary, import("@crawlee/types").Dictionary>>;
108
108
  }, z.core.$strict>;
109
109
  /**
110
110
  * All `PlaywrightLauncher` parameters are passed via this launchContext object.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/playwright",
3
- "version": "4.0.0-beta.140",
3
+ "version": "4.0.0-beta.142",
4
4
  "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -49,13 +49,13 @@
49
49
  "dependencies": {
50
50
  "@apify/datastructures": "^2.0.3",
51
51
  "@apify/timeout": "^0.4.4",
52
- "@crawlee/basic": "4.0.0-beta.140",
53
- "@crawlee/browser": "4.0.0-beta.140",
54
- "@crawlee/browser-pool": "4.0.0-beta.140",
55
- "@crawlee/cheerio": "4.0.0-beta.140",
56
- "@crawlee/core": "4.0.0-beta.140",
57
- "@crawlee/types": "4.0.0-beta.140",
58
- "@crawlee/utils": "4.0.0-beta.140",
52
+ "@crawlee/basic": "4.0.0-beta.142",
53
+ "@crawlee/browser": "4.0.0-beta.142",
54
+ "@crawlee/browser-pool": "4.0.0-beta.142",
55
+ "@crawlee/cheerio": "4.0.0-beta.142",
56
+ "@crawlee/core": "4.0.0-beta.142",
57
+ "@crawlee/types": "4.0.0-beta.142",
58
+ "@crawlee/utils": "4.0.0-beta.142",
59
59
  "cheerio": "^1.0.0",
60
60
  "jquery": "^3.7.1",
61
61
  "ml-logistic-regression": "^2.0.0",
@@ -84,5 +84,5 @@
84
84
  }
85
85
  }
86
86
  },
87
- "gitHead": "70f846b4f05d89b34ccfded676e766fdbbdc5e66"
87
+ "gitHead": "d40a48fcb78865bd622a05027103155ac08a227f"
88
88
  }