fix: captcha configuration
This commit is contained in:
parent
53d46a5c1e
commit
3770f3b993
@ -8,7 +8,8 @@ import Captcha from 'puppeteer-extra-plugin-recaptcha'
|
|||||||
/** @typedef {import('puppeteer').Page & import('puppeteer-extra-plugin-recaptcha/dist/types').RecaptchaPluginPageAdditions} Page */
|
/** @typedef {import('puppeteer').Page & import('puppeteer-extra-plugin-recaptcha/dist/types').RecaptchaPluginPageAdditions} Page */
|
||||||
|
|
||||||
/** @type {(_: PluginOptions) => (_: PuppeteerExtra) => () => PuppeteerExtra} */
|
/** @type {(_: PluginOptions) => (_: PuppeteerExtra) => () => PuppeteerExtra} */
|
||||||
export const _captcha = o => p => () => p.use(Captcha(o))
|
export const _captcha = o => p => () =>
|
||||||
|
p.use(Captcha(Object.assign({ throwOnError: true }, o)))
|
||||||
|
|
||||||
/** @type {(_: Page) => () => Promise<{captchas: CaptchaInfo[], filtered: unknown[]}>} */
|
/** @type {(_: Page) => () => Promise<{captchas: CaptchaInfo[], filtered: unknown[]}>} */
|
||||||
export const _findCaptchas = p => () => p.findRecaptchas()
|
export const _findCaptchas = p => () => p.findRecaptchas()
|
||||||
|
Loading…
Reference in New Issue
Block a user