hifun-tools 1.3.8 → 1.3.9
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 +3 -0
- package/dist/init/index.js +3 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -2
- package/package.json +1 -1
package/dist/init/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AesDecrypt, AesEncrypt } from "./ende";
|
|
1
2
|
type TenantConfig = {
|
|
2
3
|
PUBLIC_TITLE: string;
|
|
3
4
|
SITE_TITLE: string;
|
|
@@ -23,6 +24,8 @@ declare class InitCls {
|
|
|
23
24
|
fileType: string[];
|
|
24
25
|
}): Promise<any[]>;
|
|
25
26
|
private LoadGatewayConfig;
|
|
27
|
+
AesEncrypt: typeof AesEncrypt;
|
|
28
|
+
AesDecrypt: typeof AesDecrypt;
|
|
26
29
|
}
|
|
27
30
|
declare const HF: InitCls;
|
|
28
31
|
export { HF };
|
package/dist/init/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getResource } from "./getResource";
|
|
2
2
|
import { getOptimalDecodedString } from "./utils";
|
|
3
|
-
import { AesDecrypt } from "./ende";
|
|
3
|
+
import { AesDecrypt, AesEncrypt } from "./ende";
|
|
4
4
|
class InitCls {
|
|
5
5
|
domainBaseUrl = "";
|
|
6
6
|
tenantConfig = null;
|
|
@@ -135,6 +135,8 @@ class InitCls {
|
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
+
AesEncrypt = AesEncrypt;
|
|
139
|
+
AesDecrypt = AesDecrypt;
|
|
138
140
|
}
|
|
139
141
|
const HF = new InitCls();
|
|
140
142
|
export { HF };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AesDecrypt, AesEncrypt } from "../init/ende";
|
|
2
1
|
export declare function Local(name: string, value?: any, time?: number): any;
|
|
3
2
|
/**
|
|
4
3
|
* 获取链接参数
|
|
@@ -9,4 +8,3 @@ export declare function getParams(name?: string): any;
|
|
|
9
8
|
export declare function isMobile(): boolean;
|
|
10
9
|
export declare function isIOS(): boolean;
|
|
11
10
|
export declare function isAndroid(): boolean;
|
|
12
|
-
export { AesDecrypt, AesEncrypt };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AesDecrypt, AesEncrypt } from "../init/ende";
|
|
2
1
|
export function Local(name, value, time) {
|
|
3
2
|
const date = Number(new Date().getTime() / 1000);
|
|
4
3
|
if (value === null) {
|
|
@@ -74,4 +73,3 @@ export function isIOS() {
|
|
|
74
73
|
export function isAndroid() {
|
|
75
74
|
return /(Android)/i.test(navigator.userAgent);
|
|
76
75
|
}
|
|
77
|
-
export { AesDecrypt, AesEncrypt };
|