@iflyrpa/actions 1.2.24 → 1.2.25

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
@@ -9,6 +9,7 @@ export interface ActiomCommonParams {
9
9
  cookies: Partial<CookiesSetDetails>[];
10
10
  actionType?: "mockApi" | "rpa";
11
11
  readonly articleId?: string;
12
+ readonly saveType?: string;
12
13
  }
13
14
  export declare namespace Weixin {
14
15
  interface FansCount {
@@ -1,9 +1,12 @@
1
1
  import type { ResponseData } from "@iflyrpa/share";
2
2
  import { type AxiosResponse, type CreateAxiosDefaults, type AxiosRequestConfig } from "axios";
3
3
  export declare class Http {
4
- private apiClient;
4
+ private readonly apiClient;
5
+ private readonly adr?;
6
+ private readonly heiwenToken?;
7
+ proxyInfo?: string;
5
8
  static handleApiError(error: unknown): ResponseData;
6
- constructor(config?: CreateAxiosDefaults);
9
+ constructor(config?: CreateAxiosDefaults, adr?: string, huiwenToken?: string);
7
10
  addResponseInterceptor<T = any>(findError: (response: AxiosResponse<T>) => ResponseData | undefined): void;
8
11
  api<T = any>(config: AxiosRequestConfig): Promise<T>;
9
12
  }
@@ -0,0 +1,2 @@
1
+ import { HttpsProxyAgent } from "https-proxy-agent";
2
+ export declare const ProxyAgent: (adr: string, huiwenToken?: string) => Promise<HttpsProxyAgent<`http://${string}:${string}@${string}`> | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iflyrpa/actions",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "form-data": "^4.0.1",
17
17
  "htmlparser2": "^9.1.0",
18
18
  "mime-types": "^2.1.35",
19
- "@iflyrpa/share": "0.0.13"
19
+ "@iflyrpa/share": "0.0.14"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rslib/core": "^0.4.1",