Nick: press + write

This commit is contained in:
Nicolas 2024-09-20 19:45:23 -04:00
parent 380dcc2fd6
commit db161ac55a
4 changed files with 8 additions and 8 deletions

View File

@ -71,11 +71,11 @@ export const actionsSchema = z.array(z.union([
fullPage: z.boolean().default(false), fullPage: z.boolean().default(false),
}), }),
z.object({ z.object({
type: z.literal("typeText"), type: z.literal("write"),
text: z.string(), text: z.string(),
}), }),
z.object({ z.object({
type: z.literal("pressKey"), type: z.literal("press"),
key: z.string(), key: z.string(),
}), }),
z.object({ z.object({

View File

@ -20,10 +20,10 @@ export type Action = {
type: "screenshot", type: "screenshot",
fullPage?: boolean, fullPage?: boolean,
} | { } | {
type: "typeText", type: "write",
text: string, text: string,
} | { } | {
type: "pressKey", type: "press",
key: string, key: string,
} | { } | {
type: "scroll", type: "scroll",

View File

@ -1,6 +1,6 @@
{ {
"name": "@mendable/firecrawl-js", "name": "firecrawl",
"version": "1.4.5", "version": "1.5.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",

View File

@ -94,10 +94,10 @@ export type Action = {
type: "screenshot", type: "screenshot",
fullPage?: boolean, fullPage?: boolean,
} | { } | {
type: "typeText", type: "write",
text: string, text: string,
} | { } | {
type: "pressKey", type: "press",
key: string, key: string,
} | { } | {
type: "scroll", type: "scroll",