ztxkutils 2.10.32 → 2.10.34
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/axiosCancel.d.ts +18 -0
- package/dist/index.js +1 -1
- package/dist/request-8e2b5826.js +2883 -0
- package/dist/request.d.ts +1 -0
- package/dist/request.js +1 -1
- package/dist/stompClient.js +1 -13
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
declare class AxiosCancel {
|
|
3
|
+
private pendingRequests;
|
|
4
|
+
/**
|
|
5
|
+
* 获取请求参数唯一key值
|
|
6
|
+
*/
|
|
7
|
+
private getKey;
|
|
8
|
+
/**
|
|
9
|
+
* @description 发起请求之前,拦截重复请求
|
|
10
|
+
*/
|
|
11
|
+
pendingRequestCancel(config: AxiosRequestConfig): void;
|
|
12
|
+
/**
|
|
13
|
+
* @description 请求完成之后, 清除pendingRequest
|
|
14
|
+
*/
|
|
15
|
+
clearPendingRequest(reponse: AxiosResponse): void;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: AxiosCancel;
|
|
18
|
+
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { c as authority } from './authority-e6bde99f.js';
|
|
|
2
2
|
export { d as dataModel } from './dataModel-1fbaff40.js';
|
|
3
3
|
export { t as tools } from './tools-09a4d620.js';
|
|
4
4
|
export { v as validate } from './validate-6e735536.js';
|
|
5
|
-
export { r as request } from './request-
|
|
5
|
+
export { r as request } from './request-8e2b5826.js';
|
|
6
6
|
export { r as reqUrl } from './reqUrl-787dd9e5.js';
|
|
7
7
|
import './tslib.es6-35653116.js';
|
|
8
8
|
import 'dayjs';
|