@mendable/firecrawl-js 1.18.3-beta.1 → 1.18.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mendable/firecrawl-js",
3
- "version": "1.18.3-beta.1",
3
+ "version": "1.18.4",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -364,6 +364,11 @@ export interface DeepResearchParams {
364
364
  * @default 270
365
365
  */
366
366
  timeLimit?: number;
367
+ /**
368
+ * Maximum number of URLs to analyze (1-1000)
369
+ * @default 20
370
+ */
371
+ maxUrls?: number;
367
372
  /**
368
373
  * Experimental flag for streaming steps
369
374
  */
@@ -535,7 +540,7 @@ export default class FirecrawlApp {
535
540
  const response: AxiosResponse = await axios.post(
536
541
  this.apiUrl + `/v1/scrape`,
537
542
  jsonData,
538
- { headers }
543
+ { headers, timeout: params?.timeout !== undefined ? (params.timeout + 5000) : undefined },
539
544
  );
540
545
  if (response.status === 200) {
541
546
  const responseData = response.data;
@@ -1262,7 +1267,7 @@ export default class FirecrawlApp {
1262
1267
  data: any,
1263
1268
  headers: AxiosRequestHeaders
1264
1269
  ): Promise<AxiosResponse> {
1265
- return axios.post(url, data, { headers });
1270
+ return axios.post(url, data, { headers, timeout: (data?.timeout ? (data.timeout + 5000) : undefined) });
1266
1271
  }
1267
1272
 
1268
1273
  /**