mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Merge pull request #881 from mendableai/fix/scroll-action
[BUG] fixes scroll action
This commit is contained in:
commit
219f4732a0
|
@ -88,7 +88,8 @@ export const actionsSchema = z.array(z.union([
|
|||
}),
|
||||
z.object({
|
||||
type: z.literal("scroll"),
|
||||
direction: z.enum(["up", "down"]),
|
||||
direction: z.enum(["up", "down"]).optional().default("down"),
|
||||
selector: z.string().optional(),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal("scrape"),
|
||||
|
|
|
@ -30,7 +30,8 @@ export type Action = {
|
|||
key: string,
|
||||
} | {
|
||||
type: "scroll",
|
||||
direction: "up" | "down"
|
||||
direction?: "up" | "down",
|
||||
selector?: string,
|
||||
} | {
|
||||
type: "scrape",
|
||||
} | {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@mendable/firecrawl-js",
|
||||
"version": "1.7.3",
|
||||
"version": "1.8.0",
|
||||
"description": "JavaScript SDK for Firecrawl API",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
@ -108,7 +108,8 @@ export type Action = {
|
|||
key: string,
|
||||
} | {
|
||||
type: "scroll",
|
||||
direction: "up" | "down",
|
||||
direction?: "up" | "down",
|
||||
selector?: string,
|
||||
} | {
|
||||
type: "scrape",
|
||||
} | {
|
||||
|
|
Loading…
Reference in New Issue
Block a user