hifun-tools 1.4.39 → 1.4.41
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.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/init/index.js
CHANGED
|
@@ -159,7 +159,7 @@ class InitCls {
|
|
|
159
159
|
try {
|
|
160
160
|
const rawText = await this._fetchLineDict();
|
|
161
161
|
const data = JSON.parse(AesDecrypt(rawText));
|
|
162
|
-
const host = location.host;
|
|
162
|
+
const host = getDomain(location.host) || "";
|
|
163
163
|
this.tenantDictList = [...data];
|
|
164
164
|
if (this.getIsApp()) {
|
|
165
165
|
this.tenantDict = {
|
|
@@ -187,7 +187,7 @@ class InitCls {
|
|
|
187
187
|
}
|
|
188
188
|
/** 匹配默认租户 */
|
|
189
189
|
_matchDefaultTenant() {
|
|
190
|
-
const host = location.host;
|
|
190
|
+
const host = getDomain(location.host) || "";
|
|
191
191
|
if (this.getIsApp()) {
|
|
192
192
|
console.info("🏠 匹配到app传入租户");
|
|
193
193
|
return { tenant: this.appTenant };
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.4.
|
|
1
|
+
export declare const VERSION = "1.4.40";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.4.
|
|
1
|
+
export const VERSION = "1.4.40";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hifun-tools",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.41",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"jest-environment-jsdom": "^30.2.0",
|
|
26
26
|
"jscodeshift": "^17.3.0",
|
|
27
27
|
"prettier": "^3.6.2",
|
|
28
|
-
"tldts": "^7.0.28",
|
|
29
28
|
"ts-jest": "^29.4.5",
|
|
30
29
|
"typescript": "^5.6.3"
|
|
31
30
|
},
|
|
32
31
|
"dependencies": {
|
|
33
32
|
"crypto-js": "^4.2.0",
|
|
34
33
|
"lodash-es": "^4.17.22",
|
|
35
|
-
"md5": "^2.3.0"
|
|
34
|
+
"md5": "^2.3.0",
|
|
35
|
+
"tldts": "^7.0.28"
|
|
36
36
|
}
|
|
37
37
|
}
|