@mendable/firecrawl-js 0.0.11 → 0.0.12

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": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "build/index.js",
6
6
  "types": "types/index.d.ts",
package/src/index.ts CHANGED
@@ -104,7 +104,7 @@ export default class FirecrawlApp {
104
104
  * @param {number} timeout - Timeout in seconds for job status checks.
105
105
  * @returns {Promise<CrawlResponse>} The response from the crawl operation.
106
106
  */
107
- async crawlUrl(url: string, params: Params | null = null, waitUntilDone: boolean = true, timeout: number = 2): Promise<CrawlResponse> {
107
+ async crawlUrl(url: string, params: Params | null = null, waitUntilDone: boolean = true, timeout: number = 2): Promise<CrawlResponse | any> {
108
108
  const headers = this.prepareHeaders();
109
109
  let jsonData: Params = { url };
110
110
  if (params) {
package/types/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export interface CrawlResponse {
27
27
  jobId?: string;
28
28
  data?: any;
29
29
  error?: string;
30
- }
30
+ }
31
31
  /**
32
32
  * Response interface for job status checks.
33
33
  */