@indfnd/utils 0.1.25 → 0.1.27

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/ind-utils.es.js +242 -77
  3. package/dist/ind-utils.umd.cjs +19 -19
  4. package/package.json +2 -2
  5. package/src/api/com.ts +3 -0
  6. package/src/api/item.ts +5 -0
  7. package/src/config/index.ts +14 -3
  8. package/src/utils/request/axios.extends.ts +14 -0
  9. package/src/utils/request/index.ts +116 -0
  10. package/src/utils/request/interceptors.ts +2 -1
  11. package/types/api/com.d.ts.map +1 -1
  12. package/types/api/index.d.ts +6 -6
  13. package/types/api/item.d.ts.map +1 -1
  14. package/types/api/platform/base64.d.ts +5 -5
  15. package/types/api/platform/index.d.ts +5 -5
  16. package/types/config/base.config.d.ts +33 -33
  17. package/types/config/dev.config.d.ts +3 -3
  18. package/types/config/index.d.ts +6 -67
  19. package/types/config/index.d.ts.map +1 -1
  20. package/types/config/prod.config.d.ts +3 -3
  21. package/types/index.d.ts +4 -4
  22. package/types/utils/base64.d.ts +22 -22
  23. package/types/utils/blob.d.ts +3 -3
  24. package/types/utils/cache/dict-cache.d.ts +3 -3
  25. package/types/utils/cache/index-desc.d.ts +4 -4
  26. package/types/utils/cache/index.d.ts +4 -4
  27. package/types/utils/cache/permission-cache.d.ts +4 -4
  28. package/types/utils/cache/user-cache.d.ts +4 -4
  29. package/types/utils/date.d.ts +4 -4
  30. package/types/utils/enum.d.ts +39 -43
  31. package/types/utils/event.d.ts +5 -13
  32. package/types/utils/excel.d.ts +4 -4
  33. package/types/utils/half-year.d.ts +6 -6
  34. package/types/utils/index.d.ts +20 -20
  35. package/types/utils/is-type.d.ts +33 -33
  36. package/types/utils/mime-type.d.ts +67 -67
  37. package/types/utils/number.d.ts +8 -8
  38. package/types/utils/quarter.d.ts +7 -7
  39. package/types/utils/request/axios.extends.d.ts +6 -7
  40. package/types/utils/request/axios.extends.d.ts.map +1 -1
  41. package/types/utils/request/cache-rules.d.ts +3 -3
  42. package/types/utils/request/content-type.d.ts +9 -9
  43. package/types/utils/request/index.d.ts +20 -8
  44. package/types/utils/request/index.d.ts.map +1 -1
  45. package/types/utils/request/interceptors.d.ts +4 -4
  46. package/types/utils/request/interceptors.d.ts.map +1 -1
  47. package/types/utils/request/url-params.d.ts +6 -6
  48. package/types/utils/sm3/index.d.ts +6 -6
  49. package/types/utils/sm3/sm3.d.ts +3 -3
  50. package/types/utils/storage.d.ts +8 -8
  51. package/types/utils/table.d.ts +31 -40
  52. package/types/utils/token.d.ts +3 -3
  53. package/types/utils/uuid.d.ts +4 -4
  54. package/types/utils/validate.d.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indfnd/utils",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "author": "huxuetong",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "re-publish": "yarn publish --access public"
35
35
  },
36
36
  "dependencies": {
37
- "axios": "^0.21.4",
37
+ "axios": "^0.24.0",
38
38
  "dayjs": "^1.11.9",
39
39
  "lodash": "^4.17.21",
40
40
  "md5": "^2.3.0",
package/src/api/com.ts CHANGED
@@ -4,5 +4,8 @@ import { config } from '@/config'
4
4
  const CONTEXT = config.ismAmServerContext
5
5
 
6
6
  export function listComTreeApi(params) {
7
+ if (config.useDddComItemTree) {
8
+ return axios.get(`${config.ucExtServerContext}/manage/tree/getBusiComTree`, { params })
9
+ }
7
10
  return axios.get(`${CONTEXT}/tree/com/listComTree`, { params })
8
11
  }
package/src/api/item.ts CHANGED
@@ -4,6 +4,11 @@ import { config } from '@/config'
4
4
  const CONTEXT = config.ismAmServerContext
5
5
 
6
6
  export function listItemTreeApi(params) {
7
+ if (config.useDddComItemTree) {
8
+ return axios.get(`${config.ucExtServerContext}/manage/tree/getProductInfoAsTreeData`, {
9
+ params,
10
+ })
11
+ }
7
12
  return axios.get(`${CONTEXT}/tree/item/listItemTree`, { params })
8
13
  }
9
14
  export function getPriceInfo() {
@@ -2,10 +2,21 @@ import baseConfig from './base.config'
2
2
  import { getDevConfig } from './dev.config'
3
3
  import { getProdConfig } from './prod.config'
4
4
 
5
- export function useConfig(isDev?: boolean) {
6
- return isDev
5
+ let config: any = {}
6
+
7
+ function useConfig(isDev?: boolean) {
8
+ config = isDev
7
9
  ? Object.assign({}, baseConfig, getDevConfig())
8
10
  : Object.assign({}, baseConfig, getProdConfig())
11
+ return config
12
+ }
13
+
14
+ useConfig()
15
+
16
+ function setConfig(key, value) {
17
+ baseConfig[key] = value // 避免先调用setConfig,后调用useConfig导致信息丢失
18
+ config[key] = value
9
19
  }
10
20
 
11
- export const config = useConfig()
21
+ export default config
22
+ export { config, useConfig, setConfig }
@@ -6,4 +6,18 @@ export interface AxiosExtendsInstance extends AxiosInstance {
6
6
  data: any,
7
7
  config?: AxiosRequestConfig,
8
8
  ): Promise<R>
9
+
10
+ getSingleton?<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>
11
+
12
+ postSingleton?<T = any, R = AxiosResponse<T>>(
13
+ url: string,
14
+ data: any,
15
+ config?: AxiosRequestConfig,
16
+ ): Promise<R>
17
+
18
+ formPostSingleton?<T = any, R = AxiosResponse<T>>(
19
+ url: string,
20
+ data: any,
21
+ config?: AxiosRequestConfig,
22
+ ): Promise<R>
9
23
  }
@@ -16,5 +16,121 @@ instance.formPost = function (url, data, config) {
16
16
  setContentType(headers, CONTENT_TYPE.form)
17
17
  return instance.post(url, data, { ...config, headers })
18
18
  }
19
+ /**
20
+ * 对业务封装的axios service Api进行封装,封装以后的Api同一时间只有一个网络请求
21
+ * 即上一次发起的网络请求将调用浏览器取消网络请求
22
+ * 注意:如果serviceApi是多个组件共同使用时,需要慎重使用本方法,避免导致由于请求被取消导致的功能异常
23
+ * @param {Function} api - 需要封装的API函数
24
+ * @returns {Function} 封装后可取消的api
25
+ */
26
+ export const wrapApi = (api) => {
27
+ // 每个函数都有自己的 controller,避免互相干扰
28
+ let currentController = null
29
+
30
+ const wrappedFunction = async function (...args) {
31
+ // 取消之前的请求
32
+ if (currentController) {
33
+ console.log('currentController.abort trigger, now cancel before request')
34
+ currentController.abort()
35
+ currentController = null
36
+ }
37
+
38
+ // 创建新的 AbortController
39
+ const controller = new AbortController()
40
+ currentController = controller
41
+
42
+ // 准备参数
43
+ const newArgs = [...args]
44
+ const lastIndex = newArgs.length - 1
45
+
46
+ try {
47
+ // 处理配置参数
48
+ if (
49
+ newArgs.length > 0 &&
50
+ typeof newArgs[lastIndex] === 'object' &&
51
+ !Array.isArray(newArgs[lastIndex])
52
+ ) {
53
+ // 最后一个参数是配置对象
54
+ const config = newArgs[lastIndex]
55
+
56
+ // 如果有原生的 signal,需要合并处理
57
+ if (config.signal) {
58
+ // 创建一个新的 AbortController 来合并多个 signal
59
+ const combinedController = new AbortController()
60
+ const originalSignal = config.signal
61
+
62
+ // 监听原始 signal 的取消
63
+ originalSignal.addEventListener('abort', () => {
64
+ combinedController.abort(originalSignal.reason)
65
+ })
66
+
67
+ // 监听当前 controller 的取消
68
+ controller.signal.addEventListener('abort', () => {
69
+ combinedController.abort(controller.signal.reason)
70
+ })
71
+
72
+ // 使用合并后的 signal
73
+ newArgs[lastIndex] = {
74
+ ...config,
75
+ signal: combinedController.signal,
76
+ }
77
+ } else {
78
+ // 直接使用新的 signal
79
+ newArgs[lastIndex] = {
80
+ ...config,
81
+ signal: controller.signal,
82
+ }
83
+ }
84
+ } else {
85
+ // 没有配置对象,添加一个
86
+ newArgs.push({ signal: controller.signal })
87
+ }
88
+
89
+ // 执行请求
90
+ const result = await api(...newArgs)
91
+
92
+ // 请求成功后清理 controller
93
+ currentController = null
94
+ return result
95
+ } catch (error) {
96
+ // 如果是取消错误,重新抛出
97
+ if (error.name === 'AbortError' || axios.isCancel(error)) {
98
+ throw Object.assign(new Error('Request cancelled'), {
99
+ name: 'AbortError',
100
+ cancelled: true,
101
+ originalError: error,
102
+ })
103
+ }
104
+
105
+ // 其他错误正常抛出
106
+ throw error
107
+ } finally {
108
+ // 如果当前 controller 仍然是这个请求的,清理它
109
+ if (currentController === controller) {
110
+ currentController = null
111
+ }
112
+ }
113
+ }
114
+
115
+ // 添加取消方法,允许外部取消
116
+ wrappedFunction.cancel = (reason) => {
117
+ if (currentController) {
118
+ currentController.abort(reason)
119
+ currentController = null
120
+ }
121
+ }
122
+
123
+ // 添加检查是否正在请求的方法
124
+ wrappedFunction.isPending = () => {
125
+ return currentController !== null
126
+ }
127
+
128
+ return wrappedFunction
129
+ }
130
+
131
+ // 对axios进行封装,返回单例模式的Api
132
+ instance.getSingleton = wrapApi(instance.get)
133
+ instance.postSingleton = wrapApi(instance.post)
134
+ instance.formPostSingleton = wrapApi(instance.formPost)
19
135
 
20
136
  export { instance as axios }
@@ -9,6 +9,7 @@ const SUCCESS_CODE = 1
9
9
  const NO_SESSION_CODE = 10106
10
10
 
11
11
  let timer: any = null
12
+
12
13
  function _debounce(callback: Function) {
13
14
  if (timer) {
14
15
  clearTimeout(timer)
@@ -103,7 +104,7 @@ export function inspectorError(error) {
103
104
  if (error?.code === 'ECONNABORTED') {
104
105
  // 超时
105
106
  window.apiErrorHandler && window.apiErrorHandler('请求超时,请稍后再试')
106
- } else if (error?.response?.status !== 200) {
107
+ } else if (error?.response?.status !== 200 && error?.message !== 'canceled') {
107
108
  window.apiErrorHandler && window.apiErrorHandler('请求出错了')
108
109
  }
109
110
  return Promise.reject(error)
@@ -1 +1 @@
1
- {"version":3,"file":"com.d.ts","sourceRoot":"","sources":["../../src/api/com.ts"],"names":[],"mappings":"AAKA,wBAAgB,cAAc,CAAC,MAAM,KAAA,+CAEpC"}
1
+ {"version":3,"file":"com.d.ts","sourceRoot":"","sources":["../../src/api/com.ts"],"names":[],"mappings":"AAKA,wBAAgB,cAAc,CAAC,MAAM,KAAA,+CAKpC"}
@@ -1,6 +1,6 @@
1
- export * from './platform'
2
- export * from './com'
3
- export * from './index-desc'
4
- export * from './item'
5
- export * from './user'
6
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './platform';
2
+ export * from './com';
3
+ export * from './index-desc';
4
+ export * from './item';
5
+ export * from './user';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/api/item.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,MAAM,KAAA,+CAErC;AACD,wBAAgB,YAAY,gDAE3B;AACD,wBAAgB,OAAO,CAAC,MAAM,KAAA,+CAE7B"}
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/api/item.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,MAAM,KAAA,+CAOrC;AACD,wBAAgB,YAAY,gDAE3B;AACD,wBAAgB,OAAO,CAAC,MAAM,KAAA,+CAE7B"}
@@ -1,7 +1,7 @@
1
1
  export namespace Base64 {
2
- let Base64Chars: string
3
- function encode(s: any): any
4
- function ucs2_utf8(s: any): any[]
5
- function utf8_ucs2(s: any): string
2
+ let Base64Chars: string;
3
+ function encode(s: any): any;
4
+ function ucs2_utf8(s: any): any[];
5
+ function utf8_ucs2(s: any): string;
6
6
  }
7
- //# sourceMappingURL=base64.d.ts.map
7
+ //# sourceMappingURL=base64.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './dict'
2
- export * from './menu'
3
- export * from './oss'
4
- export * from './user'
5
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './dict';
2
+ export * from './menu';
3
+ export * from './oss';
4
+ export * from './user';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1,34 +1,34 @@
1
1
  declare const _default: {
2
- title: string
3
- icomId: string
4
- showMenus: boolean
5
- routerBase: string
6
- loginRouteName: string
7
- rootRouteName: string
8
- homeRouteName: string
9
- authServerContext: string
10
- ossServerContext: string
11
- ismAmServerContext: string
12
- ismAcServerContext: string
13
- ismSqServerContext: string
14
- ilmServerContext: string
15
- imgServerContext: string
16
- imaServerContext: string
17
- ucExtServerContext: string
18
- dataManageServerContext: string
19
- kkfilepreviewContext: string
20
- errorMessage: string
21
- leftLockDays: number
22
- labelStyle: {
23
- labelWidthButton: number
24
- labelWidthSmall: number
25
- labelWidthMiddle: number
26
- labelWidthMiddleLarge: number
27
- labelWidthLarge: number
28
- labelWidthSuperLarge: number
29
- }
30
- /** 点击跳转的文字颜色 */
31
- linkColor: string
32
- }
33
- export default _default
34
- //# sourceMappingURL=base.config.d.ts.map
2
+ title: string;
3
+ icomId: string;
4
+ showMenus: boolean;
5
+ routerBase: string;
6
+ loginRouteName: string;
7
+ rootRouteName: string;
8
+ homeRouteName: string;
9
+ authServerContext: string;
10
+ ossServerContext: string;
11
+ ismAmServerContext: string;
12
+ ismAcServerContext: string;
13
+ ismSqServerContext: string;
14
+ ilmServerContext: string;
15
+ imgServerContext: string;
16
+ imaServerContext: string;
17
+ ucExtServerContext: string;
18
+ dataManageServerContext: string;
19
+ kkfilepreviewContext: string;
20
+ errorMessage: string;
21
+ leftLockDays: number;
22
+ labelStyle: {
23
+ labelWidthButton: number;
24
+ labelWidthSmall: number;
25
+ labelWidthMiddle: number;
26
+ labelWidthMiddleLarge: number;
27
+ labelWidthLarge: number;
28
+ labelWidthSuperLarge: number;
29
+ };
30
+ /** 点击跳转的文字颜色 */
31
+ linkColor: string;
32
+ };
33
+ export default _default;
34
+ //# sourceMappingURL=base.config.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare function getDevConfig(): {
2
- showMenus: boolean
3
- }
4
- //# sourceMappingURL=dev.config.d.ts.map
2
+ showMenus: boolean;
3
+ };
4
+ //# sourceMappingURL=dev.config.d.ts.map
@@ -1,67 +1,6 @@
1
- export declare function useConfig(isDev?: boolean): {
2
- title: string
3
- icomId: string
4
- showMenus: boolean
5
- routerBase: string
6
- loginRouteName: string
7
- rootRouteName: string
8
- homeRouteName: string
9
- authServerContext: string
10
- ossServerContext: string
11
- ismAmServerContext: string
12
- ismAcServerContext: string
13
- ismSqServerContext: string
14
- ilmServerContext: string
15
- imgServerContext: string
16
- imaServerContext: string
17
- ucExtServerContext: string
18
- dataManageServerContext: string
19
- kkfilepreviewContext: string
20
- errorMessage: string
21
- leftLockDays: number
22
- labelStyle: {
23
- labelWidthButton: number
24
- labelWidthSmall: number
25
- labelWidthMiddle: number
26
- labelWidthMiddleLarge: number
27
- labelWidthLarge: number
28
- labelWidthSuperLarge: number
29
- }
30
- linkColor: string
31
- } & {
32
- showMenus: boolean
33
- }
34
- export declare const config: {
35
- title: string
36
- icomId: string
37
- showMenus: boolean
38
- routerBase: string
39
- loginRouteName: string
40
- rootRouteName: string
41
- homeRouteName: string
42
- authServerContext: string
43
- ossServerContext: string
44
- ismAmServerContext: string
45
- ismAcServerContext: string
46
- ismSqServerContext: string
47
- ilmServerContext: string
48
- imgServerContext: string
49
- imaServerContext: string
50
- ucExtServerContext: string
51
- dataManageServerContext: string
52
- kkfilepreviewContext: string
53
- errorMessage: string
54
- leftLockDays: number
55
- labelStyle: {
56
- labelWidthButton: number
57
- labelWidthSmall: number
58
- labelWidthMiddle: number
59
- labelWidthMiddleLarge: number
60
- labelWidthLarge: number
61
- labelWidthSuperLarge: number
62
- }
63
- linkColor: string
64
- } & {
65
- showMenus: boolean
66
- }
67
- //# sourceMappingURL=index.d.ts.map
1
+ declare let config: any;
2
+ declare function useConfig(isDev?: boolean): any;
3
+ declare function setConfig(key: any, value: any): void;
4
+ export default config;
5
+ export { config, useConfig, setConfig };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIxC;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAIA,QAAA,IAAI,MAAM,EAAE,GAAQ,CAAA;AAEpB,iBAAS,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,OAKjC;AAID,iBAAS,SAAS,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,QAG5B;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
1
  export declare function getProdConfig(): {
2
- showMenus: boolean
3
- }
4
- //# sourceMappingURL=prod.config.d.ts.map
2
+ showMenus: boolean;
3
+ };
4
+ //# sourceMappingURL=prod.config.d.ts.map
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './api'
2
- export * from './config'
3
- export * from './utils'
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './api';
2
+ export * from './config';
3
+ export * from './utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,23 +1,23 @@
1
1
  declare let Base64ForLogin: {
2
- Base64Chars: string
3
- /**
4
- * Encode a string to a Base64 string follow Bse64 regular.
5
- * @param s, a normal string
6
- * @return a Base64 string
7
- */
8
- encode: (s: any) => any
9
- /**
10
- * Encodes a ucs2 string to a utf8 integer array.
11
- * @param s, a string
12
- * @return an integer array
13
- */
14
- ucs2_utf8: (s: any) => any[]
15
- /**
16
- * Encodes a utf8 integer array to a ucs2 string.
17
- * @param s, an integer array
18
- * @return a string
19
- */
20
- utf8_ucs2: (s: any) => string
21
- }
22
- export { Base64ForLogin }
23
- //# sourceMappingURL=base64.d.ts.map
2
+ Base64Chars: string;
3
+ /**
4
+ * Encode a string to a Base64 string follow Bse64 regular.
5
+ * @param s, a normal string
6
+ * @return a Base64 string
7
+ */
8
+ encode: (s: any) => any;
9
+ /**
10
+ * Encodes a ucs2 string to a utf8 integer array.
11
+ * @param s, a string
12
+ * @return an integer array
13
+ */
14
+ ucs2_utf8: (s: any) => any[];
15
+ /**
16
+ * Encodes a utf8 integer array to a ucs2 string.
17
+ * @param s, an integer array
18
+ * @return a string
19
+ */
20
+ utf8_ucs2: (s: any) => string;
21
+ };
22
+ export { Base64ForLogin };
23
+ //# sourceMappingURL=base64.d.ts.map
@@ -5,6 +5,6 @@
5
5
  * @param contentType 数据的MIME Type,如 png 为 image/png
6
6
  * @returns Blob数据
7
7
  */
8
- export declare function base64ToBlob(base64Data: string, contentType: string): Blob
9
- export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown>
10
- //# sourceMappingURL=blob.d.ts.map
8
+ export declare function base64ToBlob(base64Data: string, contentType: string): Blob;
9
+ export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown>;
10
+ //# sourceMappingURL=blob.d.ts.map
@@ -1,3 +1,3 @@
1
- export declare function getDictCache(dictId: string): any
2
- export declare function setDictCache(dictId: string, data: any): void
3
- //# sourceMappingURL=dict-cache.d.ts.map
1
+ export declare function getDictCache(dictId: string): any;
2
+ export declare function setDictCache(dictId: string, data: any): void;
3
+ //# sourceMappingURL=dict-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getIndexDescCache(): any
2
- export declare function setIndexDescCache(data: any): void
3
- export declare function clearIndexDescCache(): void
4
- //# sourceMappingURL=index-desc.d.ts.map
1
+ export declare function getIndexDescCache(): any;
2
+ export declare function setIndexDescCache(data: any): void;
3
+ export declare function clearIndexDescCache(): void;
4
+ //# sourceMappingURL=index-desc.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './index-desc'
2
- export * from './permission-cache'
3
- export * from './user-cache'
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './index-desc';
2
+ export * from './permission-cache';
3
+ export * from './user-cache';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getPermissionCache(): any
2
- export declare function setPermissionCache(data: any): void
3
- export declare function clearPermissionCache(): void
4
- //# sourceMappingURL=permission-cache.d.ts.map
1
+ export declare function getPermissionCache(): any;
2
+ export declare function setPermissionCache(data: any): void;
3
+ export declare function clearPermissionCache(): void;
4
+ //# sourceMappingURL=permission-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getUserInfoCache(): any
2
- export declare function setUserInfoCache(data: any): void
3
- export declare function clearUserInfoCache(): void
4
- //# sourceMappingURL=user-cache.d.ts.map
1
+ export declare function getUserInfoCache(): any;
2
+ export declare function setUserInfoCache(data: any): void;
3
+ export declare function clearUserInfoCache(): void;
4
+ //# sourceMappingURL=user-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function str2Date(value: string): Date
2
- export declare function formatDate(value: string): string
3
- export declare function formatDateChinese(value: string): string
4
- //# sourceMappingURL=date.d.ts.map
1
+ export declare function str2Date(value: string): Date;
2
+ export declare function formatDate(value: string): string;
3
+ export declare function formatDateChinese(value: string): string;
4
+ //# sourceMappingURL=date.d.ts.map