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.
- package/dist/init/index.d.ts +1 -0
- package/dist/init/index.js +4 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/init/index.d.ts
CHANGED
package/dist/init/index.js
CHANGED
|
@@ -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.
|
|
1
|
+
export declare const VERSION = "1.4.36";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.4.
|
|
1
|
+
export const VERSION = "1.4.36";
|