hifun-tools 1.3.6 → 1.3.7

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.
@@ -4,11 +4,11 @@
4
4
  * @param {string} [keyStr] - 密钥(长度16/24/32字节)
5
5
  * @returns {string} 加密后的Base64字符串
6
6
  */
7
- export declare function AesEncrypt(text: string, keyStr?: string): any;
7
+ export declare function AesEncrypt(text: string, keyStr?: string): string;
8
8
  /**
9
9
  * AES解密
10
10
  * @param {string} cipherText - 要解密的Base64密文
11
11
  * @param {string} [keyStr] - 密钥(必须与加密时一致)
12
12
  * @returns {string} 解密后的明文
13
13
  */
14
- export declare function AesDecrypt(cipherText: any, keyStr?: string): any;
14
+ export declare function AesDecrypt(cipherText: any, keyStr?: string): string;
@@ -1,3 +1,4 @@
1
+ import { AesDecrypt, AesEncrypt } from "@/init/ende";
1
2
  export declare function Local(name: string, value?: any, time?: number): any;
2
3
  /**
3
4
  * 获取链接参数
@@ -8,3 +9,4 @@ export declare function getParams(name?: string): any;
8
9
  export declare function isMobile(): boolean;
9
10
  export declare function isIOS(): boolean;
10
11
  export declare function isAndroid(): boolean;
12
+ export { AesDecrypt, AesEncrypt };
@@ -1,3 +1,4 @@
1
+ import { AesDecrypt, AesEncrypt } from "@/init/ende";
1
2
  export function Local(name, value, time) {
2
3
  const date = Number(new Date().getTime() / 1000);
3
4
  if (value === null) {
@@ -73,3 +74,4 @@ export function isIOS() {
73
74
  export function isAndroid() {
74
75
  return /(Android)/i.test(navigator.userAgent);
75
76
  }
77
+ export { AesDecrypt, AesEncrypt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hifun-tools",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",