hifun-tools 1.4.37 → 1.4.38
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 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -1
package/dist/init/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { AesDecrypt, AesEncrypt } from "./ende";
|
|
|
5
5
|
import { closeLoadingText, loadingText, rewardMsg } from "../msg";
|
|
6
6
|
import { Cache } from "../utils";
|
|
7
7
|
import { uniq } from "lodash-es";
|
|
8
|
+
import { getDomain } from "tldts";
|
|
8
9
|
class InitCls {
|
|
9
10
|
AesDecrypt = AesDecrypt;
|
|
10
11
|
AesEncrypt = AesEncrypt;
|
|
@@ -127,7 +128,7 @@ class InitCls {
|
|
|
127
128
|
if (lineDictData) {
|
|
128
129
|
try {
|
|
129
130
|
const data = JSON.parse(AesDecrypt(lineDictData));
|
|
130
|
-
const host = location.host;
|
|
131
|
+
const host = getDomain(location.host) || "";
|
|
131
132
|
if (this.getIsApp()) {
|
|
132
133
|
this.tenantDict = {
|
|
133
134
|
browserCheck: [],
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.4.
|
|
1
|
+
export declare const VERSION = "1.4.37";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.4.
|
|
1
|
+
export const VERSION = "1.4.37";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hifun-tools",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.38",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,6 +25,7 @@
|
|
|
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",
|
|
28
29
|
"ts-jest": "^29.4.5",
|
|
29
30
|
"typescript": "^5.6.3"
|
|
30
31
|
},
|