@skrillex1224/playwright-toolkit 2.1.208 → 2.1.210
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 +4 -3
- package/dist/index.cjs +265 -417
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +265 -417
- package/dist/index.js.map +2 -2
- package/index.d.ts +4 -2
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -455,8 +455,8 @@ export interface ScreenshotWatermarkifyResolverContext {
|
|
|
455
455
|
url: string;
|
|
456
456
|
hostname: string;
|
|
457
457
|
title: string;
|
|
458
|
+
prompt?: string;
|
|
458
459
|
query?: string;
|
|
459
|
-
taskId?: string;
|
|
460
460
|
serverAddr?: { ipAddress: string; port: number } | null;
|
|
461
461
|
signal?: AbortSignal;
|
|
462
462
|
}
|
|
@@ -488,8 +488,10 @@ export interface ScreenshotWatermarkifyOptions {
|
|
|
488
488
|
response?: Response | null;
|
|
489
489
|
ip?: string;
|
|
490
490
|
location?: string;
|
|
491
|
+
/** 底部 Prompt 字段优先展示它;未传时会退回到 query。 */
|
|
492
|
+
prompt?: string;
|
|
493
|
+
/** 实际提交给 AI / 搜索页的 query;若未显式传 prompt,Prompt 字段会直接展示它。 */
|
|
491
494
|
query?: string;
|
|
492
|
-
taskId?: string;
|
|
493
495
|
/** 默认会在同一浏览器上下文中访问 http://myip.ipip.net 补充 IP/Loc。 */
|
|
494
496
|
ipLookup?: boolean;
|
|
495
497
|
/** 内置 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.210",
|
|
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": {
|