mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Nick: press + write
This commit is contained in:
parent
380dcc2fd6
commit
db161ac55a
|
@ -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({
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user