@mendable/firecrawl-js 1.0.2 → 1.0.3

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.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "build/cjs/index.js",
6
6
  "types": "types/index.d.ts",
package/src/index.ts CHANGED
@@ -165,16 +165,14 @@ export interface ScrapeResponseV0 {
165
165
  * Includes options for both scraping and mapping during a crawl.
166
166
  */
167
167
  export interface CrawlParams {
168
+ includePaths?: string[];
169
+ excludePaths?: string[];
170
+ maxDepth?: number;
171
+ limit?: number;
172
+ allowBackwardLinks?: boolean;
173
+ allowExternalLinks?: boolean;
174
+ ignoreSitemap?: boolean;
168
175
  scrapeOptions?: ScrapeParams;
169
- crawlerOptions?: {
170
- includePaths?: string[]
171
- excludePaths?: string[]
172
- maxDepth?: number
173
- limit?: number
174
- allowBackwardLinks?: boolean
175
- allowExternalLinks?: boolean
176
- ignoreSitemap?: boolean
177
- };
178
176
  }
179
177
 
180
178
  /**
package/types/index.d.ts CHANGED
@@ -153,16 +153,14 @@ export interface ScrapeResponseV0 {
153
153
  * Includes options for both scraping and mapping during a crawl.
154
154
  */
155
155
  export interface CrawlParams {
156
+ includePaths?: string[];
157
+ excludePaths?: string[];
158
+ maxDepth?: number;
159
+ limit?: number;
160
+ allowBackwardLinks?: boolean;
161
+ allowExternalLinks?: boolean;
162
+ ignoreSitemap?: boolean;
156
163
  scrapeOptions?: ScrapeParams;
157
- crawlerOptions?: {
158
- includePaths?: string[];
159
- excludePaths?: string[];
160
- maxDepth?: number;
161
- limit?: number;
162
- allowBackwardLinks?: boolean;
163
- allowExternalLinks?: boolean;
164
- ignoreSitemap?: boolean;
165
- };
166
164
  }
167
165
  /**
168
166
  * Parameters for crawling operations on v0.