@skrillex1224/playwright-toolkit 3.0.42 → 3.0.43

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/index.d.ts CHANGED
@@ -691,7 +691,7 @@ export interface ScreenshotWatermarkifyOptions {
691
691
  export interface ShareScreenCompressionOptions {
692
692
  /** 是否启用截图压缩,默认开启。 */
693
693
  enabled?: boolean;
694
- /** 返回 base64 字符串的最大字节数,默认 5MiB。 */
694
+ /** 返回 base64 字符串的最大字节数,默认 500KiB。 */
695
695
  maxBytes?: number;
696
696
  /** maxBytes 的别名。 */
697
697
  maxBase64Bytes?: number;
@@ -699,22 +699,22 @@ export interface ShareScreenCompressionOptions {
699
699
  type?: 'jpeg' | 'jpg';
700
700
  /** type 的别名。 */
701
701
  outputType?: 'jpeg' | 'jpg';
702
- /** 初始质量,支持 0-1 或 1-100,默认 0.72。 */
702
+ /** 初始质量,支持 0-1 或 1-100,默认 0.32。 */
703
703
  quality?: number;
704
- /** 最低质量,支持 0-1 或 1-100,默认 0.38。 */
704
+ /** 最低质量,支持 0-1 或 1-100,默认 0.32。 */
705
705
  minQuality?: number;
706
- /** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.25。 */
706
+ /** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.2。 */
707
707
  minScale?: number;
708
708
  }
709
709
 
710
710
  export interface ShareScreenCaptureOptions {
711
711
  /** 截图后是否恢复页面高度和样式 (默认: false) */
712
712
  restore?: boolean;
713
- /** 最大截图高度 (默认: 8000px) */
713
+ /** 最大截图高度 (默认: 6000px) */
714
714
  maxHeight?: number;
715
715
  /** 截图水印合成模式;默认取当前 toolkit mode,`cloak` 时走兼容分支。 */
716
716
  mode?: 'default' | 'cloak';
717
- /** 返回 base64 字符串的最大字节数,默认 5MiB。 */
717
+ /** 返回 base64 字符串的最大字节数,默认 500KiB。 */
718
718
  maxBytes?: number;
719
719
  /** maxBytes 的别名。 */
720
720
  maxBase64Bytes?: number;
@@ -722,11 +722,11 @@ export interface ShareScreenCaptureOptions {
722
722
  type?: 'jpeg' | 'jpg';
723
723
  /** type 的别名。 */
724
724
  outputType?: 'jpeg' | 'jpg';
725
- /** 初始质量,支持 0-1 或 1-100,默认 0.72。 */
725
+ /** 初始质量,支持 0-1 或 1-100,默认 0.32。 */
726
726
  quality?: number;
727
- /** 最低质量,支持 0-1 或 1-100,默认 0.38。 */
727
+ /** 最低质量,支持 0-1 或 1-100,默认 0.32。 */
728
728
  minQuality?: number;
729
- /** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.25。 */
729
+ /** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.2。 */
730
730
  minScale?: number;
731
731
  /** 截图压缩配置;传 false 可关闭压缩。 */
732
732
  compression?: boolean | ShareScreenCompressionOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrillex1224/playwright-toolkit",
3
- "version": "3.0.42",
3
+ "version": "3.0.43",
4
4
  "description": "一个在 Apify/Crawlee Actor 中启用实时截图视图的实用工具库。",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",