@hcaptcha/loader
Version:
This is a JavaScript library to easily configure the loading of the hCaptcha JS client SDK with built-in error handling.
22 lines (21 loc) • 674 B
TypeScript
export declare const SCRIPT_ID = "hCaptcha-script";
export declare const HCAPTCHA_LOAD_FN_NAME = "hCaptchaOnLoad";
export declare const SCRIPT_ERROR = "script-error";
export declare const SCRIPT_COMPLETE = "script-loaded";
export declare const SENTRY_TAG = "@hCaptcha/loader";
export declare const MAX_RETRIES = 2;
export declare const RETRY_DELAY = 1000;
export declare enum SentryContext {
ANDROID = "Android",
IOS = "iOS",
LINUX = "Linux",
MAC = "Mac",
WINDOWS = "Windows",
CHROME = "Chrome",
FIREFOX = "Firefox",
UNKNOWN = "Unknown",
SAFARI = "Safari",
OPERA = "Opera",
IE = "Internet Explorer",
EDGE = "Microsoft Edge"
}