hifun-tools 1.4.45 → 1.4.47
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 +7 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +37 -37
package/dist/init/index.js
CHANGED
|
@@ -195,12 +195,15 @@ class InitCls {
|
|
|
195
195
|
console.info("🏠 匹配到app传入租户");
|
|
196
196
|
return { tenant: this.appTenant };
|
|
197
197
|
}
|
|
198
|
-
else if (host.includes("
|
|
198
|
+
else if (host.includes("t1sport") ||
|
|
199
199
|
host.includes("localhost") ||
|
|
200
200
|
(!!this.localPath &&
|
|
201
201
|
location.origin.includes(this.localPath.replace(/\/+$/, "")))) {
|
|
202
|
-
console.info("🏠 匹配默认租户
|
|
203
|
-
return { tenant: "
|
|
202
|
+
console.info("🏠 匹配默认租户 t1sport");
|
|
203
|
+
return { tenant: "t1sport" };
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
return { tenant: "t1sport" };
|
|
204
207
|
}
|
|
205
208
|
throw new Error("无法获取有效的租户信息");
|
|
206
209
|
}
|
|
@@ -410,7 +413,7 @@ class InitCls {
|
|
|
410
413
|
catch (finalErr) {
|
|
411
414
|
// 最终无奈的保底:取第一个已知的 URL
|
|
412
415
|
this.domainBaseUrl =
|
|
413
|
-
this.defaultBaseUrl || toStandardUrl(this.OriginBaseUrl[0] ||
|
|
416
|
+
this.defaultBaseUrl || toStandardUrl(this.OriginBaseUrl[0]) || (location.origin + '/api');
|
|
414
417
|
this.onlyBackUp = true;
|
|
415
418
|
console.warn("⚠️ 所有链路均不可用,使用最后保底地址:", this.domainBaseUrl);
|
|
416
419
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.4.
|
|
1
|
+
export declare const VERSION = "1.4.46";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.4.
|
|
1
|
+
export const VERSION = "1.4.46";
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hifun-tools",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"module": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"access": "public"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "node scripts/generate-version.js && tsc",
|
|
12
|
-
"pub": "npm run build && npm version patch && npm publish --access public",
|
|
13
|
-
"test": "jest",
|
|
14
|
-
"test:watch": "jest --watch"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@babel/core": "^7.28.5",
|
|
21
|
-
"@babel/preset-typescript": "^7.28.5",
|
|
22
|
-
"@types/jest": "^30.0.0",
|
|
23
|
-
"@types/lodash-es": "^4.17.12",
|
|
24
|
-
"jest": "^30.2.0",
|
|
25
|
-
"jest-environment-jsdom": "^30.2.0",
|
|
26
|
-
"jscodeshift": "^17.3.0",
|
|
27
|
-
"prettier": "^3.6.2",
|
|
28
|
-
"ts-jest": "^29.4.5",
|
|
29
|
-
"typescript": "^5.6.3"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"crypto-js": "^4.2.0",
|
|
33
|
-
"lodash-es": "^4.17.22",
|
|
34
|
-
"md5": "^2.3.0",
|
|
35
|
-
"tldts": "^7.0.28"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "hifun-tools",
|
|
3
|
+
"version": "1.4.47",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"module": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "node scripts/generate-version.js && tsc",
|
|
12
|
+
"pub": "npm run build && npm version patch && npm publish --access public",
|
|
13
|
+
"test": "jest",
|
|
14
|
+
"test:watch": "jest --watch"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@babel/core": "^7.28.5",
|
|
21
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
22
|
+
"@types/jest": "^30.0.0",
|
|
23
|
+
"@types/lodash-es": "^4.17.12",
|
|
24
|
+
"jest": "^30.2.0",
|
|
25
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
26
|
+
"jscodeshift": "^17.3.0",
|
|
27
|
+
"prettier": "^3.6.2",
|
|
28
|
+
"ts-jest": "^29.4.5",
|
|
29
|
+
"typescript": "^5.6.3"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"crypto-js": "^4.2.0",
|
|
33
|
+
"lodash-es": "^4.17.22",
|
|
34
|
+
"md5": "^2.3.0",
|
|
35
|
+
"tldts": "^7.0.28"
|
|
36
|
+
}
|
|
37
|
+
}
|