@iflyrpa/actions 3.0.1 → 3.0.2-beta.0

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/dist/types.d.ts CHANGED
@@ -160,4 +160,4 @@ export declare namespace Xiaohongshu {
160
160
  }
161
161
  export declare const errorResponse: (message: string, code?: number) => SearchAccountInfoResponse;
162
162
  export declare const MockPublish = false;
163
- export declare const DisabledReq = true;
163
+ export declare const DisabledReq = false;
@@ -33,7 +33,7 @@ export declare class DouyinImageUploader {
33
33
  */
34
34
  private uploadToTOS;
35
35
  /**
36
- * 处理单张图片(下载+上传)
36
+ * 处理单张图片(下载+上传)- 失败直接跳过
37
37
  */
38
38
  private processSingleImage;
39
39
  /**
@@ -47,12 +47,13 @@ export declare class DouyinImageUploader {
47
47
  /**
48
48
  * 上传封面图(单张)
49
49
  */
50
- uploadCover(coverUrl: string): Promise<UploadResult>;
50
+ uploadCover(coverUrl: string): Promise<UploadResult | null>;
51
51
  /**
52
52
  * 安全删除文件
53
53
  */
54
54
  private safeDeleteFile;
55
55
  private delay;
56
+ private withRetry;
56
57
  /**
57
58
  * 销毁连接池
58
59
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iflyrpa/actions",
3
- "version": "3.0.1",
3
+ "version": "3.0.2-beta.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",