hifun-tools 1.4.22 → 1.4.24

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.
@@ -29,6 +29,7 @@ declare class InitCls {
29
29
  appTenant?: string;
30
30
  appGateway?: string;
31
31
  backupAddress?: string[];
32
+ retry?: boolean;
32
33
  }): Promise<(string | null)[]>;
33
34
  getOnlyBackup(): boolean;
34
35
  setOnlyBackup(value: boolean): void;
@@ -69,5 +70,7 @@ export type TenantConfig = {
69
70
  USER_TENANT: string;
70
71
  DB_TITLE: string;
71
72
  THEME: string;
73
+ } & {
74
+ [x: string]: string;
72
75
  };
73
76
  export { HF, isDomainMatch, toStandardUrl, AesEncrypt, AesDecrypt, filterSmartLines, matchBrowser, getOptimalDecodedString, };
@@ -27,7 +27,7 @@ class InitCls {
27
27
  tenantDictList = [];
28
28
  /** 初始化配置入口 */
29
29
  async InitConfig(options) {
30
- const { fileType, defaultBaseUrl, localPath, appLine, appTenant, appGateway = "", backupAddress, } = options;
30
+ const { fileType, defaultBaseUrl, localPath, appLine, appTenant, appGateway = "", backupAddress, retry, } = options;
31
31
  if (defaultBaseUrl)
32
32
  this.defaultBaseUrl = defaultBaseUrl;
33
33
  if (localPath)
@@ -48,7 +48,7 @@ class InitCls {
48
48
  }
49
49
  if (fileType?.includes("lineAddress")) {
50
50
  console.info("初始化 lineAddress...");
51
- results.push(await this._loadGatewayConfig());
51
+ results.push(await this._loadGatewayConfig(retry));
52
52
  }
53
53
  console.info("✅ 所有初始化完成:", results);
54
54
  return results;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.4.21";
1
+ export declare const VERSION = "1.4.23";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.4.21";
1
+ export const VERSION = "1.4.23";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hifun-tools",
3
- "version": "1.4.22",
3
+ "version": "1.4.24",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",