captchakraken 5.0.0-beta.43 → 5.0.0-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,12 +16,15 @@ const inDoc = (d, fn, css = '') => 'handle' in d ? d.handle.evaluate(fn, css) :
|
|
|
16
16
|
/**
|
|
17
17
|
* Playwright's screenshot `style`, which Puppeteer lacks: the sheet goes into each document for the length of the
|
|
18
18
|
* capture. A frame that has gone away in the meantime has nothing left to restore.
|
|
19
|
+
*
|
|
20
|
+
* A frame that cannot take the sheet (detached, or navigating, mid-capture) is shot as it is rather than failing the
|
|
21
|
+
* whole screenshot; and the sheets the other frames did take still come out, or their feedback would stay hidden.
|
|
19
22
|
*/
|
|
20
23
|
async function styled(into, css, capture) {
|
|
21
24
|
if (!css)
|
|
22
25
|
return capture();
|
|
23
26
|
const docs = await into();
|
|
24
|
-
await Promise.all(docs.map((d) => inDoc(d, addStyle, css)));
|
|
27
|
+
await Promise.all(docs.map((d) => inDoc(d, addStyle, css).catch(() => undefined)));
|
|
25
28
|
try {
|
|
26
29
|
return await capture();
|
|
27
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "captchakraken",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.47",
|
|
4
4
|
"description": "Captcha solver for Playwright and Puppeteer. Finds the captcha, reads it with the v2 pointer model, and clicks, drags, slides or types through to a token — reCAPTCHA, GeeTest, NetEase Yidun, Tencent, Lemin, Prosopo, Turnstile and distorted text. Hosted API or self-hosted.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/python/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "captchakraken"
|
|
7
|
-
version = "5.0.
|
|
7
|
+
version = "5.0.0b47"
|
|
8
8
|
description = "Captcha-solving engine and CLI: a v2 pointer model for image grids, click and drag puzzles, sliders, distorted text and animated challenges. Hosted API or self-hosted on vLLM."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|