@mendable/firecrawl 1.25.3 → 1.25.5
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/{package-Y5V6L2WQ.js → package-FAEOWTCQ.js} +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -0
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var require_package = __commonJS({
|
|
|
35
35
|
"package.json"(exports2, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@mendable/firecrawl-js",
|
|
38
|
-
version: "1.25.
|
|
38
|
+
version: "1.25.5",
|
|
39
39
|
description: "JavaScript SDK for Firecrawl API",
|
|
40
40
|
main: "dist/index.js",
|
|
41
41
|
types: "dist/index.d.ts",
|
package/dist/index.d.cts
CHANGED
|
@@ -48,6 +48,9 @@ interface FirecrawlDocumentMetadata {
|
|
|
48
48
|
sourceURL?: string;
|
|
49
49
|
statusCode?: number;
|
|
50
50
|
error?: string;
|
|
51
|
+
proxyUsed?: "basic" | "stealth";
|
|
52
|
+
cacheState?: "miss" | "hit";
|
|
53
|
+
cachedAt?: string;
|
|
51
54
|
[key: string]: any;
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -116,6 +119,7 @@ interface CrawlScrapeOptions {
|
|
|
116
119
|
blockAds?: boolean;
|
|
117
120
|
proxy?: "basic" | "stealth" | "auto";
|
|
118
121
|
storeInCache?: boolean;
|
|
122
|
+
maxAge?: number;
|
|
119
123
|
}
|
|
120
124
|
type Action = {
|
|
121
125
|
type: "wait";
|
|
@@ -159,6 +163,7 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema exten
|
|
|
159
163
|
prompt?: string;
|
|
160
164
|
schema?: any;
|
|
161
165
|
modes?: ("json" | "git-diff")[];
|
|
166
|
+
tag?: string | null;
|
|
162
167
|
};
|
|
163
168
|
actions?: ActionsSchema;
|
|
164
169
|
agent?: AgentOptions;
|
|
@@ -272,6 +277,7 @@ interface MapParams {
|
|
|
272
277
|
sitemapOnly?: boolean;
|
|
273
278
|
limit?: number;
|
|
274
279
|
timeout?: number;
|
|
280
|
+
useIndex?: boolean;
|
|
275
281
|
}
|
|
276
282
|
/**
|
|
277
283
|
* Response interface for mapping operations.
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,9 @@ interface FirecrawlDocumentMetadata {
|
|
|
48
48
|
sourceURL?: string;
|
|
49
49
|
statusCode?: number;
|
|
50
50
|
error?: string;
|
|
51
|
+
proxyUsed?: "basic" | "stealth";
|
|
52
|
+
cacheState?: "miss" | "hit";
|
|
53
|
+
cachedAt?: string;
|
|
51
54
|
[key: string]: any;
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
@@ -116,6 +119,7 @@ interface CrawlScrapeOptions {
|
|
|
116
119
|
blockAds?: boolean;
|
|
117
120
|
proxy?: "basic" | "stealth" | "auto";
|
|
118
121
|
storeInCache?: boolean;
|
|
122
|
+
maxAge?: number;
|
|
119
123
|
}
|
|
120
124
|
type Action = {
|
|
121
125
|
type: "wait";
|
|
@@ -159,6 +163,7 @@ interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema exten
|
|
|
159
163
|
prompt?: string;
|
|
160
164
|
schema?: any;
|
|
161
165
|
modes?: ("json" | "git-diff")[];
|
|
166
|
+
tag?: string | null;
|
|
162
167
|
};
|
|
163
168
|
actions?: ActionsSchema;
|
|
164
169
|
agent?: AgentOptions;
|
|
@@ -272,6 +277,7 @@ interface MapParams {
|
|
|
272
277
|
sitemapOnly?: boolean;
|
|
273
278
|
limit?: number;
|
|
274
279
|
timeout?: number;
|
|
280
|
+
useIndex?: boolean;
|
|
275
281
|
}
|
|
276
282
|
/**
|
|
277
283
|
* Response interface for mapping operations.
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var FirecrawlApp = class {
|
|
|
29
29
|
}
|
|
30
30
|
async getVersion() {
|
|
31
31
|
try {
|
|
32
|
-
const packageJson = await import("./package-
|
|
32
|
+
const packageJson = await import("./package-FAEOWTCQ.js");
|
|
33
33
|
return packageJson.default.version;
|
|
34
34
|
} catch (error) {
|
|
35
35
|
console.error("Error getting version:", error);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -50,6 +50,9 @@ export interface FirecrawlDocumentMetadata {
|
|
|
50
50
|
sourceURL?: string;
|
|
51
51
|
statusCode?: number;
|
|
52
52
|
error?: string;
|
|
53
|
+
proxyUsed?: "basic" | "stealth";
|
|
54
|
+
cacheState?: "miss" | "hit";
|
|
55
|
+
cachedAt?: string;
|
|
53
56
|
[key: string]: any; // Allows for additional metadata properties not explicitly defined.
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -121,6 +124,7 @@ export interface CrawlScrapeOptions {
|
|
|
121
124
|
blockAds?: boolean;
|
|
122
125
|
proxy?: "basic" | "stealth" | "auto";
|
|
123
126
|
storeInCache?: boolean;
|
|
127
|
+
maxAge?: number;
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
export type Action = {
|
|
@@ -166,6 +170,7 @@ export interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchem
|
|
|
166
170
|
prompt?: string;
|
|
167
171
|
schema?: any;
|
|
168
172
|
modes?: ("json" | "git-diff")[];
|
|
173
|
+
tag?: string | null;
|
|
169
174
|
}
|
|
170
175
|
actions?: ActionsSchema;
|
|
171
176
|
agent?: AgentOptions;
|
|
@@ -287,6 +292,7 @@ export interface MapParams {
|
|
|
287
292
|
sitemapOnly?: boolean;
|
|
288
293
|
limit?: number;
|
|
289
294
|
timeout?: number;
|
|
295
|
+
useIndex?: boolean;
|
|
290
296
|
}
|
|
291
297
|
|
|
292
298
|
/**
|