hifun-tools 1.3.8 → 1.3.10

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.
@@ -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 };
@@ -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;
@@ -37,7 +37,6 @@ class InitCls {
37
37
  method: "GET",
38
38
  cache: "no-store",
39
39
  });
40
- console.log(response);
41
40
  if (!response.ok) {
42
41
  throw new Error(`HTTP 状态码错误: ${response.status}`);
43
42
  }
@@ -135,6 +134,8 @@ class InitCls {
135
134
  return null;
136
135
  }
137
136
  }
137
+ AesEncrypt = AesEncrypt;
138
+ AesDecrypt = AesDecrypt;
138
139
  }
139
140
  const HF = new InitCls();
140
141
  export { HF };
@@ -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 };
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hifun-tools",
3
- "version": "1.3.8",
3
+ "version": "1.3.10",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",