UNPKG

puppeteer-extra-plugin-timezone

Version:

A puppeteer-extra plugin to automatically emulate the appropriate timezones using IP reflection services.

14 lines (13 loc) 430 B
import { PluginOptions } from "puppeteer-extra-plugin"; import { z } from "zod"; import { LumResponseSchema } from "./schemas"; export declare type BrowserId = string; export declare type LumResponse = z.infer<typeof LumResponseSchema>; export interface TrackedTimezone { ip: string; tz: string; ctx?: LumResponse; } export interface TimezonePluginOptions extends PluginOptions { fallbackTz?: string | string[]; }