@skrillex1224/playwright-toolkit 2.1.209 → 2.1.211
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.
- package/README.md +3 -2
- package/dist/browser.js +11 -0
- package/dist/browser.js.map +3 -3
- package/dist/index.cjs +702 -457
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +702 -457
- package/dist/index.js.map +4 -4
- package/index.d.ts +5 -2
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -364,6 +364,7 @@ export interface RuntimeEnvState {
|
|
|
364
364
|
actor: string;
|
|
365
365
|
runtime: Record<string, any>;
|
|
366
366
|
envId: string;
|
|
367
|
+
query: string;
|
|
367
368
|
auth: Record<string, string>;
|
|
368
369
|
cookies: ParsedCookie[];
|
|
369
370
|
cookieMap: Record<string, string>;
|
|
@@ -455,8 +456,8 @@ export interface ScreenshotWatermarkifyResolverContext {
|
|
|
455
456
|
url: string;
|
|
456
457
|
hostname: string;
|
|
457
458
|
title: string;
|
|
459
|
+
prompt?: string;
|
|
458
460
|
query?: string;
|
|
459
|
-
taskId?: string;
|
|
460
461
|
serverAddr?: { ipAddress: string; port: number } | null;
|
|
461
462
|
signal?: AbortSignal;
|
|
462
463
|
}
|
|
@@ -488,8 +489,10 @@ export interface ScreenshotWatermarkifyOptions {
|
|
|
488
489
|
response?: Response | null;
|
|
489
490
|
ip?: string;
|
|
490
491
|
location?: string;
|
|
492
|
+
/** 手动覆盖底部 Prompt;若同时传了 query,则仍以 query 为准。 */
|
|
493
|
+
prompt?: string;
|
|
494
|
+
/** 实际提交给 AI / 搜索页的 query;Prompt 字段优先展示它。 */
|
|
491
495
|
query?: string;
|
|
492
|
-
taskId?: string;
|
|
493
496
|
/** 默认会在同一浏览器上下文中访问 http://myip.ipip.net 补充 IP/Loc。 */
|
|
494
497
|
ipLookup?: boolean;
|
|
495
498
|
/** 内置 IP/Loc 查询超时,默认 10000ms。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skrillex1224/playwright-toolkit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.211",
|
|
4
4
|
"description": "一个在 Apify/Crawlee Actor 中启用实时截图视图的实用工具库。",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"got-scraping": "^4.1.3",
|
|
53
53
|
"picomatch": "^4.0.3",
|
|
54
54
|
"serialize-error": "^12.0.0",
|
|
55
|
+
"sharp": "^0.34.5",
|
|
55
56
|
"uuid": "^13.0.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|