hifun-tools 1.4.36 → 1.4.37

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.
@@ -16,6 +16,7 @@ declare class InitCls {
16
16
  private localPath;
17
17
  private onlyBackUp;
18
18
  private OriginBaseUrl;
19
+ retry: boolean | undefined;
19
20
  private tenant;
20
21
  private tenantConfig;
21
22
  private tenantDict;
@@ -21,14 +21,16 @@ class InitCls {
21
21
  localPath = "";
22
22
  onlyBackUp = false;
23
23
  OriginBaseUrl = [];
24
+ retry = false;
24
25
  tenant = "";
25
26
  tenantConfig = null;
26
27
  tenantDict = null;
27
28
  tenantDictList = [];
28
29
  /** 初始化配置入口 */
29
30
  async InitConfig(options) {
30
- const { fileType, defaultBaseUrl, localPath, appLine, appTenant, appGateway = "", backupAddress, retry, lineDictData, lineAddressData, // ✨ 提取参数
31
+ const { fileType, defaultBaseUrl, localPath, appLine, appTenant, appGateway = "", backupAddress, retry = false, lineDictData, lineAddressData, // ✨ 提取参数
31
32
  } = options;
33
+ this.retry = retry;
32
34
  if (defaultBaseUrl)
33
35
  this.defaultBaseUrl = defaultBaseUrl;
34
36
  if (localPath)
@@ -105,7 +107,7 @@ class InitCls {
105
107
  }
106
108
  /** 严格初始化租户信息 */
107
109
  async _initializeTenant(lineDictData) {
108
- if (this.initialized)
110
+ if (this.initialized && !this.retry)
109
111
  return this.tenant;
110
112
  try {
111
113
  const tenantInfo = await this._getTenantInfoStrictSync(lineDictData);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.4.35";
1
+ export declare const VERSION = "1.4.36";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.4.35";
1
+ export const VERSION = "1.4.36";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hifun-tools",
3
- "version": "1.4.36",
3
+ "version": "1.4.37",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",