mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 03:32:22 +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({
|
z.object({
|
||||||
type: z.literal("scroll"),
|
type: z.literal("scroll"),
|
||||||
direction: z.enum(["up", "down"]),
|
direction: z.enum(["up", "down"]).optional().default("down"),
|
||||||
|
selector: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
z.object({
|
z.object({
|
||||||
type: z.literal("scrape"),
|
type: z.literal("scrape"),
|
||||||
|
|
|
@ -30,7 +30,8 @@ export type Action = {
|
||||||
key: string,
|
key: string,
|
||||||
} | {
|
} | {
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
direction: "up" | "down"
|
direction?: "up" | "down",
|
||||||
|
selector?: string,
|
||||||
} | {
|
} | {
|
||||||
type: "scrape",
|
type: "scrape",
|
||||||
} | {
|
} | {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@mendable/firecrawl-js",
|
"name": "@mendable/firecrawl-js",
|
||||||
"version": "1.7.3",
|
"version": "1.8.0",
|
||||||
"description": "JavaScript SDK for Firecrawl API",
|
"description": "JavaScript SDK for Firecrawl API",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|
|
@ -108,7 +108,8 @@ export type Action = {
|
||||||
key: string,
|
key: string,
|
||||||
} | {
|
} | {
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
direction: "up" | "down",
|
direction?: "up" | "down",
|
||||||
|
selector?: string,
|
||||||
} | {
|
} | {
|
||||||
type: "scrape",
|
type: "scrape",
|
||||||
} | {
|
} | {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user