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),
}),
z.object({
type: z.literal("typeText"),
type: z.literal("write"),
text: z.string(),
}),
z.object({
type: z.literal("pressKey"),
type: z.literal("press"),
key: z.string(),
}),
z.object({

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@mendable/firecrawl-js",
"version": "1.4.5",
"name": "firecrawl",
"version": "1.5.0",
"description": "JavaScript SDK for Firecrawl API",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

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