easy-soft-utility 2.4.102 → 2.4.103
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/es/index.js +2 -2
- package/es/utils/accessWayAssist.d.ts +0 -1
- package/es/utils/applicationAssist.d.ts +1 -2
- package/es/utils/arrayAssist.d.ts +1 -2
- package/es/utils/base64.d.ts +2 -2
- package/es/utils/calculate.d.ts +0 -1
- package/es/utils/checkAssist.d.ts +1 -3
- package/es/utils/colorAssist.d.ts +0 -4
- package/es/utils/common.d.ts +6 -10
- package/es/utils/componentAssist.d.ts +3 -3
- package/es/utils/constants.d.ts +18 -18
- package/es/utils/convertAssist.d.ts +11 -4
- package/es/utils/datetime.d.ts +44 -8
- package/es/utils/formatAssist.d.ts +3 -4
- package/es/utils/localMetaDataAssist.d.ts +5 -16
- package/es/utils/localStorageAssist.d.ts +20 -11
- package/es/utils/lodashTools.d.ts +20 -20
- package/es/utils/loggerAssist.d.ts +40 -40
- package/es/utils/messagePromptAssist.d.ts +23 -23
- package/es/utils/meta.d.ts +2 -2
- package/es/utils/modelAssist.d.ts +1 -3
- package/es/utils/parametersDataAssist.d.ts +10 -18
- package/es/utils/requestAssist.d.ts +95 -63
- package/es/utils/sessionStorageAssist.d.ts +20 -11
- package/es/utils/tokenAssist.d.ts +1 -6
- package/package.json +4 -5
|
@@ -3,7 +3,7 @@ export function checkMessagePromptData({ text }: {
|
|
|
3
3
|
}): boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Set duration conversion ratio
|
|
6
|
-
* @param {
|
|
6
|
+
* @param {number} ratio conversion ratio
|
|
7
7
|
*/
|
|
8
8
|
export function setDurationConversionRatio(ratio: number): void;
|
|
9
9
|
/**
|
|
@@ -43,14 +43,14 @@ export function setWarningMessageDisplayMonitor(callbackMonitor: Function): void
|
|
|
43
43
|
export function setErrorMessageDisplayMonitor(callbackMonitor: Function): void;
|
|
44
44
|
/**
|
|
45
45
|
* Show simple text open message with display monitor
|
|
46
|
-
* @param {
|
|
46
|
+
* @param {string} text simple text message
|
|
47
47
|
*/
|
|
48
48
|
export function showSimpleOpenMessage(text: string): void;
|
|
49
49
|
/**
|
|
50
50
|
* Show open message with display monitor
|
|
51
51
|
* @param {Object} option message option
|
|
52
|
-
* @param {
|
|
53
|
-
* @param {
|
|
52
|
+
* @param {string} option.text message text
|
|
53
|
+
* @param {number} option.duration message duration time, default is 1500
|
|
54
54
|
* @param {Function} option.onClose onClose callback
|
|
55
55
|
*/
|
|
56
56
|
export function showOpenMessage({ text, duration, onClose }: {
|
|
@@ -60,14 +60,14 @@ export function showOpenMessage({ text, duration, onClose }: {
|
|
|
60
60
|
}): void;
|
|
61
61
|
/**
|
|
62
62
|
* Show simple text loading message with display monitor
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {string} text simple text message
|
|
64
64
|
*/
|
|
65
65
|
export function showSimpleLoadingMessage(text: string): void;
|
|
66
66
|
/**
|
|
67
67
|
* Show loading message with display monitor
|
|
68
68
|
* @param {Object} option message option
|
|
69
|
-
* @param {
|
|
70
|
-
* @param {
|
|
69
|
+
* @param {string} option.text message text
|
|
70
|
+
* @param {number} option.duration message duration time, default is 1500
|
|
71
71
|
* @param {Function} option.onClose onClose callback
|
|
72
72
|
*/
|
|
73
73
|
export function showLoadingMessage({ text, duration, onClose, }: {
|
|
@@ -77,14 +77,14 @@ export function showLoadingMessage({ text, duration, onClose, }: {
|
|
|
77
77
|
}): void;
|
|
78
78
|
/**
|
|
79
79
|
* Show simple text info message with display monitor
|
|
80
|
-
* @param {
|
|
80
|
+
* @param {string} text simple text message
|
|
81
81
|
*/
|
|
82
82
|
export function showSimpleInfoMessage(text: string): void;
|
|
83
83
|
/**
|
|
84
84
|
* Show info message with display monitor
|
|
85
85
|
* @param {Object} option message option
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
86
|
+
* @param {string} option.text message text
|
|
87
|
+
* @param {number} option.duration message duration time, default is 1500
|
|
88
88
|
* @param {Function} option.onClose onClose callback
|
|
89
89
|
*/
|
|
90
90
|
export function showInfoMessage({ text, duration, onClose }: {
|
|
@@ -94,14 +94,14 @@ export function showInfoMessage({ text, duration, onClose }: {
|
|
|
94
94
|
}): void;
|
|
95
95
|
/**
|
|
96
96
|
* Show simple text success message with display monitor
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {string} text simple text message
|
|
98
98
|
*/
|
|
99
99
|
export function showSimpleSuccessMessage(text: string): void;
|
|
100
100
|
/**
|
|
101
101
|
* Show success message with display monitor
|
|
102
102
|
* @param {Object} option message option
|
|
103
|
-
* @param {
|
|
104
|
-
* @param {
|
|
103
|
+
* @param {string} option.text message text
|
|
104
|
+
* @param {number} option.duration message duration time, default is 1500
|
|
105
105
|
* @param {Function} option.onClose onClose callback
|
|
106
106
|
*/
|
|
107
107
|
export function showSuccessMessage({ text, duration, onClose, }: {
|
|
@@ -111,14 +111,14 @@ export function showSuccessMessage({ text, duration, onClose, }: {
|
|
|
111
111
|
}): void;
|
|
112
112
|
/**
|
|
113
113
|
* Show simple text warn message with display monitor
|
|
114
|
-
* @param {
|
|
114
|
+
* @param {string} text simple text message
|
|
115
115
|
*/
|
|
116
116
|
export function showSimpleWarnMessage(text: string): void;
|
|
117
117
|
/**
|
|
118
118
|
* Show warn message with display monitor
|
|
119
119
|
* @param {Object} option message option
|
|
120
|
-
* @param {
|
|
121
|
-
* @param {
|
|
120
|
+
* @param {string} option.text message text
|
|
121
|
+
* @param {number} option.duration message duration time, default is 1500
|
|
122
122
|
* @param {Function} option.onClose onClose callback
|
|
123
123
|
*/
|
|
124
124
|
export function showWarnMessage({ text, duration, onClose }: {
|
|
@@ -128,14 +128,14 @@ export function showWarnMessage({ text, duration, onClose }: {
|
|
|
128
128
|
}): void;
|
|
129
129
|
/**
|
|
130
130
|
* Show simple text warning message with display monitor
|
|
131
|
-
* @param {
|
|
131
|
+
* @param {string} text simple text message
|
|
132
132
|
*/
|
|
133
133
|
export function showSimpleWarningMessage(text: string): void;
|
|
134
134
|
/**
|
|
135
135
|
* Show warning message with display monitor
|
|
136
136
|
* @param {Object} option message option
|
|
137
|
-
* @param {
|
|
138
|
-
* @param {
|
|
137
|
+
* @param {string} option.text message text
|
|
138
|
+
* @param {number} option.duration message duration time, default is 1500
|
|
139
139
|
* @param {Function} option.onClose onClose callback
|
|
140
140
|
*/
|
|
141
141
|
export function showWarningMessage({ text, duration, onClose, }: {
|
|
@@ -145,14 +145,14 @@ export function showWarningMessage({ text, duration, onClose, }: {
|
|
|
145
145
|
}): void;
|
|
146
146
|
/**
|
|
147
147
|
* Show simple text error message with display monitor
|
|
148
|
-
* @param {
|
|
148
|
+
* @param {string} text simple text message
|
|
149
149
|
*/
|
|
150
150
|
export function showSimpleErrorMessage(text: string): void;
|
|
151
151
|
/**
|
|
152
152
|
* Show error message with display monitor
|
|
153
153
|
* @param {Object} option message option
|
|
154
|
-
* @param {
|
|
155
|
-
* @param {
|
|
154
|
+
* @param {string} option.text message text
|
|
155
|
+
* @param {number} option.duration message duration time, default is 1500
|
|
156
156
|
* @param {Function} option.onClose onClose callback
|
|
157
157
|
*/
|
|
158
158
|
export function showErrorMessage({ text, duration, onClose, }: {
|
|
@@ -162,7 +162,7 @@ export function showErrorMessage({ text, duration, onClose, }: {
|
|
|
162
162
|
}): void;
|
|
163
163
|
/**
|
|
164
164
|
* Show simple runtime error message with display monitor
|
|
165
|
-
* @param {
|
|
165
|
+
* @param {string} text simple text message
|
|
166
166
|
*/
|
|
167
167
|
export function showSimpleRuntimeError(text: string): void;
|
|
168
168
|
/**
|
package/es/utils/meta.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Calculate the value of the expression
|
|
3
|
-
* @param {Function}
|
|
3
|
+
* @param {Function} functionExpression
|
|
4
4
|
*/
|
|
5
|
-
export function evil(
|
|
5
|
+
export function evil(functionExpression: Function): any;
|
|
6
6
|
export function isBrowser(): boolean;
|
|
7
7
|
/**
|
|
8
8
|
* check current is dark mode
|
|
@@ -18,7 +18,6 @@ export function appendExtraBuilder(builder: Function): void;
|
|
|
18
18
|
export function buildModelCollection(): void;
|
|
19
19
|
/**
|
|
20
20
|
* Get model collection.
|
|
21
|
-
* @returns
|
|
22
21
|
*/
|
|
23
22
|
export function getModelCollection(): never[];
|
|
24
23
|
/**
|
|
@@ -27,8 +26,7 @@ export function getModelCollection(): never[];
|
|
|
27
26
|
export function getModelNameList(): void;
|
|
28
27
|
/**
|
|
29
28
|
* Set model name list.
|
|
30
|
-
* @param {
|
|
31
|
-
* @returns
|
|
29
|
+
* @param {string} modelNameList model name list, eg like "article,product,news"
|
|
32
30
|
*/
|
|
33
31
|
export function setModelNameList(modelNameList: string): void;
|
|
34
32
|
/**
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @param {*} fn
|
|
6
|
-
* @returns
|
|
2
|
+
* Remove parameters data cache
|
|
3
|
+
* @param {string} key the cache key
|
|
7
4
|
*/
|
|
8
|
-
export function removeParametersDataCache(key:
|
|
5
|
+
export function removeParametersDataCache(key: string): void;
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @export
|
|
13
|
-
* @param {*} fn
|
|
14
|
-
* @returns
|
|
7
|
+
* Get parameters data cache
|
|
8
|
+
* @param {string} key the cache key
|
|
15
9
|
*/
|
|
16
|
-
export function getParametersDataCache(key:
|
|
10
|
+
export function getParametersDataCache(key: string): any;
|
|
17
11
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @
|
|
21
|
-
* @param {o} useParamsData数据
|
|
22
|
-
* @returns
|
|
12
|
+
* Set parameters data cache
|
|
13
|
+
* @param {string} key the cache key
|
|
14
|
+
* @param {Object} data the data will be cached
|
|
23
15
|
*/
|
|
24
|
-
export function setParametersDataCache(key:
|
|
16
|
+
export function setParametersDataCache(key: string, data: Object): void;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Set request success code
|
|
3
|
-
* @param {
|
|
3
|
+
* @param {number} code success code
|
|
4
4
|
*/
|
|
5
5
|
export function setSuccessCode(code: number): void;
|
|
6
6
|
/**
|
|
7
7
|
* Set request authentication fail code
|
|
8
|
-
* @param {
|
|
8
|
+
* @param {number} code authentication fail code
|
|
9
9
|
*/
|
|
10
10
|
export function setAuthenticationFailCode(code: number): void;
|
|
11
11
|
/**
|
|
12
12
|
* Set prompt simulative request
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {boolean} value whether prompt simulative request
|
|
14
14
|
*/
|
|
15
15
|
export function setPromptSimulation(value: boolean): void;
|
|
16
16
|
/**
|
|
17
17
|
* Set the url global prefix
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {string} globalPrefix url global prefix, eg "V1" like api version
|
|
19
19
|
*/
|
|
20
20
|
export function setUrlGlobalPrefix(globalPrefix: string): void;
|
|
21
21
|
/**
|
|
@@ -35,61 +35,93 @@ export function setAuthenticationFailHandler(handler: Function): void;
|
|
|
35
35
|
export function setGlobalHeaderSupplementHandler(handler: Function): void;
|
|
36
36
|
/**
|
|
37
37
|
* Set request info display switch
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {boolean} value display switch
|
|
39
39
|
*/
|
|
40
40
|
export function setRequestInfoDisplaySwitch(value: boolean): void;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @
|
|
45
|
-
* @param {
|
|
46
|
-
* @param {
|
|
47
|
-
* @param {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {
|
|
60
|
-
* @param {
|
|
61
|
-
* @
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
* @
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
* @param {
|
|
90
|
-
* @
|
|
91
|
-
*/
|
|
92
|
-
export function
|
|
42
|
+
* Pretreatment remote object data
|
|
43
|
+
* @param {Object} options request options
|
|
44
|
+
* @param {Object} options.source source object data
|
|
45
|
+
* @param {Function|null} options.pretreatment pretreatment source object data
|
|
46
|
+
* @param {Function|null} options.successCallback success callback handler
|
|
47
|
+
* @param {Function|null} options.failCallback fail callback handler
|
|
48
|
+
*/
|
|
49
|
+
export function pretreatmentRemoteSingleData({ source, pretreatment, successCallback, failCallback, }: {
|
|
50
|
+
source: Object;
|
|
51
|
+
pretreatment: Function | null;
|
|
52
|
+
successCallback: Function | null;
|
|
53
|
+
failCallback: Function | null;
|
|
54
|
+
}): {};
|
|
55
|
+
/**
|
|
56
|
+
* Pretreatment remote list data
|
|
57
|
+
* @param {Object} options handler options
|
|
58
|
+
* @param {Array} options.source source list data
|
|
59
|
+
* @param {Function|null} options.pretreatment pretreatment source list data
|
|
60
|
+
* @param {Function|null} options.itemPretreatment pretreatment source list data item
|
|
61
|
+
* @param {Function|null} options.successCallback success callback handler
|
|
62
|
+
* @param {Function|null} options.failCallback fail callback handler
|
|
63
|
+
*/
|
|
64
|
+
export function pretreatmentRemoteListData({ source, pretreatment, itemPretreatment, successCallback, failCallback, }: {
|
|
65
|
+
source: any[];
|
|
66
|
+
pretreatment: Function | null;
|
|
67
|
+
itemPretreatment: Function | null;
|
|
68
|
+
successCallback: Function | null;
|
|
69
|
+
failCallback: Function | null;
|
|
70
|
+
}): {};
|
|
71
|
+
/**
|
|
72
|
+
* Pretreatment remote page list data
|
|
73
|
+
* @param {Object} options handler options
|
|
74
|
+
* @param {Array} options.source source page list data
|
|
75
|
+
* @param {Function|null} options.pretreatment pretreatment source page list data
|
|
76
|
+
* @param {Function|null} options.itemPretreatment pretreatment source page list data item
|
|
77
|
+
* @param {Function|null} options.successCallback success callback handler
|
|
78
|
+
* @param {Function|null} options.failCallback fail callback handler
|
|
79
|
+
*/
|
|
80
|
+
export function pretreatmentRemotePageListData({ source, pretreatment, itemPretreatment, successCallback, failCallback, }: {
|
|
81
|
+
source: any[];
|
|
82
|
+
pretreatment: Function | null;
|
|
83
|
+
itemPretreatment: Function | null;
|
|
84
|
+
successCallback: Function | null;
|
|
85
|
+
failCallback: Function | null;
|
|
86
|
+
}): {};
|
|
87
|
+
/**
|
|
88
|
+
* Pretreatment request parameters
|
|
89
|
+
* @param {Object} parameters the parameters will pretreatment
|
|
90
|
+
* @param {Function} customHandle custom handler
|
|
91
|
+
*/
|
|
92
|
+
export function pretreatmentRequestParameters(parameters: Object, customHandle: Function): {
|
|
93
|
+
constructor: Function;
|
|
94
|
+
toString(): string;
|
|
95
|
+
toLocaleString(): string;
|
|
96
|
+
valueOf(): Object;
|
|
97
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
98
|
+
isPrototypeOf(v: Object): boolean;
|
|
99
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* handle list data assist
|
|
103
|
+
* @param {Object} state state
|
|
104
|
+
* @param {Object} action action
|
|
105
|
+
* @param {string} namespace model namespace
|
|
106
|
+
*/
|
|
107
|
+
export function handleListDataAssist(state: Object, action: Object, namespace: string): {
|
|
108
|
+
data: {};
|
|
109
|
+
constructor: Function;
|
|
110
|
+
toString(): string;
|
|
111
|
+
toLocaleString(): string;
|
|
112
|
+
valueOf(): Object;
|
|
113
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
114
|
+
isPrototypeOf(v: Object): boolean;
|
|
115
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
116
|
+
} | {
|
|
117
|
+
constructor: Function;
|
|
118
|
+
toString(): string;
|
|
119
|
+
toLocaleString(): string;
|
|
120
|
+
valueOf(): Object;
|
|
121
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
122
|
+
isPrototypeOf(v: Object): boolean;
|
|
123
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
124
|
+
};
|
|
93
125
|
export function handlePageListDataAssist(state: any, action: any, namespace: any): any;
|
|
94
126
|
/**
|
|
95
127
|
* Begin request(remote request / local simulate requests)
|
|
@@ -97,15 +129,15 @@ export function handlePageListDataAssist(state: any, action: any, namespace: any
|
|
|
97
129
|
* @param {string} option.api request address
|
|
98
130
|
* @param {Object} option.params request params
|
|
99
131
|
* @param {Object} option.header request header
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {
|
|
104
|
-
* @param {
|
|
132
|
+
* @param {string} option.method "GET"/"POST"/"PUT"/"DELETE", default is requestMethod.post
|
|
133
|
+
* @param {string} option.mode request mode, default is requestMode.real
|
|
134
|
+
* @param {boolean} option.promptSimulation whether display simulate request message prompt
|
|
135
|
+
* @param {number} option.promptSimulationDelay display simulate request message prompt delay time, default is 500
|
|
136
|
+
* @param {number} option.simulateRequestDelay simulate request delay time, default is 0
|
|
105
137
|
* @param {Object} option.simulativeSuccessResponse simulate request success response
|
|
106
138
|
* @param {Object} option.simulativeFailResponse simulate request fail response
|
|
107
|
-
* @param {
|
|
108
|
-
* @param {
|
|
139
|
+
* @param {boolean} option.simulateRequestResult specifies whether the result is successful, generally used to debug
|
|
140
|
+
* @param {boolean} option.simulativeAuthorize set simulate request whether check token, only check mull or empty, generally used to debug
|
|
109
141
|
*/
|
|
110
142
|
export function request({ api, urlParams: urlParameters, params: parameters, header, method, mode, promptSimulation, promptSimulationDelay, simulateRequestDelay, simulativeSuccessResponse, simulativeFailResponse, simulateRequestResult, simulativeAuthorize, }: {
|
|
111
143
|
api: string;
|
|
@@ -1,43 +1,52 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Set session storage getter
|
|
3
|
+
* @param {Function} handler the cache getter handler
|
|
3
4
|
*/
|
|
4
|
-
export function setSessionStorageGetter(handler:
|
|
5
|
+
export function setSessionStorageGetter(handler: Function): void;
|
|
5
6
|
/**
|
|
6
7
|
* Set session storage setter
|
|
8
|
+
* @param {Function} handler the cache setter handler
|
|
7
9
|
*/
|
|
8
|
-
export function setSessionStorageSetter(handler:
|
|
10
|
+
export function setSessionStorageSetter(handler: Function): void;
|
|
9
11
|
/**
|
|
10
12
|
* Set session storage remover
|
|
13
|
+
* @param {Function} handler the cache remover handler
|
|
11
14
|
*/
|
|
12
|
-
export function setSessionStorageRemover(handler:
|
|
15
|
+
export function setSessionStorageRemover(handler: Function): void;
|
|
13
16
|
/**
|
|
14
17
|
* Set session storage remover
|
|
18
|
+
* @param {Function} handler the cache flusher handler
|
|
15
19
|
*/
|
|
16
|
-
export function setSessionStorageFlusher(handler:
|
|
20
|
+
export function setSessionStorageFlusher(handler: Function): void;
|
|
17
21
|
/**
|
|
18
22
|
* Get text to session storage with key
|
|
23
|
+
* @param {string} key the cache key
|
|
19
24
|
*/
|
|
20
|
-
export function getStringFromSessionStorage(key:
|
|
25
|
+
export function getStringFromSessionStorage(key: string): void;
|
|
21
26
|
/**
|
|
22
27
|
* Get json to session storage with key
|
|
28
|
+
* @param {string} key the cache key
|
|
23
29
|
*/
|
|
24
|
-
export function getJsonFromSessionStorage(key:
|
|
30
|
+
export function getJsonFromSessionStorage(key: string): any;
|
|
25
31
|
/**
|
|
26
32
|
* Save text to session storage with key
|
|
33
|
+
* @param {string} key the cache key
|
|
34
|
+
* @param {string} text the test will be cached
|
|
27
35
|
*/
|
|
28
|
-
export function saveStringToSessionStorage(key:
|
|
36
|
+
export function saveStringToSessionStorage(key: string, text: string): void;
|
|
29
37
|
/**
|
|
30
38
|
* Save json to session storage with key
|
|
39
|
+
* @param {string} key the cache key
|
|
40
|
+
* @param {Object} data the data will be cached
|
|
31
41
|
*/
|
|
32
|
-
export function saveJsonToSessionStorage(key:
|
|
42
|
+
export function saveJsonToSessionStorage(key: string, data: Object): void;
|
|
33
43
|
/**
|
|
34
44
|
* Remove session storage by key
|
|
45
|
+
* @param {string} key the cache key
|
|
35
46
|
*/
|
|
36
|
-
export function removeSessionStorage(key:
|
|
47
|
+
export function removeSessionStorage(key: string): void;
|
|
37
48
|
/**
|
|
38
49
|
* Flush session storage
|
|
39
|
-
* @export
|
|
40
|
-
* @param {*} key
|
|
41
50
|
*/
|
|
42
51
|
export function flushSessionStorage(): void;
|
|
43
52
|
export namespace sessionStorageAssist {
|
|
@@ -8,16 +8,11 @@ export function getTokenKeyName(): string;
|
|
|
8
8
|
export function getToken(): void;
|
|
9
9
|
/**
|
|
10
10
|
* Set token catch
|
|
11
|
-
* @param {
|
|
12
|
-
* @returns
|
|
11
|
+
* @param {string} value
|
|
13
12
|
*/
|
|
14
13
|
export function setToken(value: string): void;
|
|
15
14
|
/**
|
|
16
15
|
* Remove token catch
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @param {*} fn
|
|
20
|
-
* @returns
|
|
21
16
|
*/
|
|
22
17
|
export function removeToken(): void;
|
|
23
18
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-utility",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.103",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "easy-soft-utility",
|
|
6
6
|
"keywords": [
|
|
@@ -29,9 +29,8 @@
|
|
|
29
29
|
"build:rollup:skipCompression": "npx rimraf ./es && rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs",
|
|
30
30
|
"postbuild:rollup:skipCompression": "npm run z:tsc:build",
|
|
31
31
|
"dev:rollup": "rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs --watch --watch.onBundleEnd=\"npm run z:tsc:build\"",
|
|
32
|
-
"pregenerate:documentation": "npx rimraf ./docs && documentation lint src/**",
|
|
33
|
-
"generate:documentation": "npx documentation build src/** -f html --github -o docs",
|
|
34
32
|
"precommit": "npm run z:lint:staged:quiet",
|
|
33
|
+
"z:auto:adjust:file": "npm run z:documentation:generate",
|
|
35
34
|
"prez:documentation:generate": "npx rimraf ./docs && npm run z:documentation:lint",
|
|
36
35
|
"z:documentation:generate": "npx documentation build src/** -f html --github -o docs",
|
|
37
36
|
"z:documentation:lint": "npx documentation lint src/**",
|
|
@@ -114,7 +113,7 @@
|
|
|
114
113
|
"cross-env": "^7.0.3",
|
|
115
114
|
"cssnano": "^5.1.15",
|
|
116
115
|
"documentation": "^14.0.1",
|
|
117
|
-
"easy-soft-develop": "^2.0.
|
|
116
|
+
"easy-soft-develop": "^2.0.195",
|
|
118
117
|
"eslint": "^8.36.0",
|
|
119
118
|
"eslint-config-airbnb": "^19.0.4",
|
|
120
119
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
@@ -144,7 +143,7 @@
|
|
|
144
143
|
"qs": "^6.11.1",
|
|
145
144
|
"react-refresh": "^0.14.0",
|
|
146
145
|
"rimraf": "^4.4.1",
|
|
147
|
-
"rollup": "^3.20.
|
|
146
|
+
"rollup": "^3.20.1",
|
|
148
147
|
"rollup-plugin-copy": "^3.4.0",
|
|
149
148
|
"rollup-plugin-livereload": "^2.0.5",
|
|
150
149
|
"rollup-plugin-postcss": "^4.0.2",
|