@hlw-uni-mp/request 1.0.4 → 1.0.5
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/index.d.mts +3 -15
- package/dist/index.d.ts +3 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -106,18 +106,6 @@ interface InterceptorHandler<T> {
|
|
|
106
106
|
rejected?: (error: unknown) => unknown
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
/**
|
|
110
|
-
* 模态弹窗配置
|
|
111
|
-
*/
|
|
112
|
-
interface ModalOptions {
|
|
113
|
-
title?: string
|
|
114
|
-
content?: string
|
|
115
|
-
confirmText?: string
|
|
116
|
-
cancelText?: string
|
|
117
|
-
showCancel?: boolean
|
|
118
|
-
[key: string]: unknown
|
|
119
|
-
}
|
|
120
|
-
|
|
121
109
|
/**
|
|
122
110
|
* 接口业务数据扩展标记(供各业务项目通过声明合并自由扩展)
|
|
123
111
|
*/
|
|
@@ -125,7 +113,7 @@ interface ApiResData {
|
|
|
125
113
|
/**
|
|
126
114
|
* 模态弹窗配置
|
|
127
115
|
*/
|
|
128
|
-
modal?:
|
|
116
|
+
modal?: UniApp.ShowModalOptions
|
|
129
117
|
}
|
|
130
118
|
|
|
131
119
|
/**
|
|
@@ -151,7 +139,7 @@ interface ApiRes<T = unknown> {
|
|
|
151
139
|
/**
|
|
152
140
|
* 模态弹窗配置
|
|
153
141
|
*/
|
|
154
|
-
modalOptions?:
|
|
142
|
+
modalOptions?: UniApp.ShowModalOptions
|
|
155
143
|
}
|
|
156
144
|
|
|
157
145
|
/**
|
|
@@ -408,4 +396,4 @@ declare function getHttpOptions(): HttpOptions;
|
|
|
408
396
|
declare const client: UniHttpClient;
|
|
409
397
|
declare const http: UniHttpClient;
|
|
410
398
|
|
|
411
|
-
export { type AliossUploadSign, type ApiRes, type ApiResData, type AxiosResponse, type DeviceInfo, HttpError, type HttpMethod, type HttpOptions, type InterceptorHandler, InterceptorManager, type LocalUploadSign, type
|
|
399
|
+
export { type AliossUploadSign, type ApiRes, type ApiResData, type AxiosResponse, type DeviceInfo, HttpError, type HttpMethod, type HttpOptions, type InterceptorHandler, InterceptorManager, type LocalUploadSign, type OssConfig, type QiniuUploadSign, type RequestConfig, type SignOptions, UniHttpClient, type UploadFileParams, type UploadSign, type UploadSignBase, calculateSign, client, request as default, del, doUpload, encryptRsa, get, getClient, getDevice, getHttpOptions, http, post, postUploadSign, put, request, setupHttp, sha256, sortString, uploadFile, uploadOss };
|
package/dist/index.d.ts
CHANGED
|
@@ -106,18 +106,6 @@ interface InterceptorHandler<T> {
|
|
|
106
106
|
rejected?: (error: unknown) => unknown
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
/**
|
|
110
|
-
* 模态弹窗配置
|
|
111
|
-
*/
|
|
112
|
-
interface ModalOptions {
|
|
113
|
-
title?: string
|
|
114
|
-
content?: string
|
|
115
|
-
confirmText?: string
|
|
116
|
-
cancelText?: string
|
|
117
|
-
showCancel?: boolean
|
|
118
|
-
[key: string]: unknown
|
|
119
|
-
}
|
|
120
|
-
|
|
121
109
|
/**
|
|
122
110
|
* 接口业务数据扩展标记(供各业务项目通过声明合并自由扩展)
|
|
123
111
|
*/
|
|
@@ -125,7 +113,7 @@ interface ApiResData {
|
|
|
125
113
|
/**
|
|
126
114
|
* 模态弹窗配置
|
|
127
115
|
*/
|
|
128
|
-
modal?:
|
|
116
|
+
modal?: UniApp.ShowModalOptions
|
|
129
117
|
}
|
|
130
118
|
|
|
131
119
|
/**
|
|
@@ -151,7 +139,7 @@ interface ApiRes<T = unknown> {
|
|
|
151
139
|
/**
|
|
152
140
|
* 模态弹窗配置
|
|
153
141
|
*/
|
|
154
|
-
modalOptions?:
|
|
142
|
+
modalOptions?: UniApp.ShowModalOptions
|
|
155
143
|
}
|
|
156
144
|
|
|
157
145
|
/**
|
|
@@ -408,4 +396,4 @@ declare function getHttpOptions(): HttpOptions;
|
|
|
408
396
|
declare const client: UniHttpClient;
|
|
409
397
|
declare const http: UniHttpClient;
|
|
410
398
|
|
|
411
|
-
export { type AliossUploadSign, type ApiRes, type ApiResData, type AxiosResponse, type DeviceInfo, HttpError, type HttpMethod, type HttpOptions, type InterceptorHandler, InterceptorManager, type LocalUploadSign, type
|
|
399
|
+
export { type AliossUploadSign, type ApiRes, type ApiResData, type AxiosResponse, type DeviceInfo, HttpError, type HttpMethod, type HttpOptions, type InterceptorHandler, InterceptorManager, type LocalUploadSign, type OssConfig, type QiniuUploadSign, type RequestConfig, type SignOptions, UniHttpClient, type UploadFileParams, type UploadSign, type UploadSignBase, calculateSign, client, request as default, del, doUpload, encryptRsa, get, getClient, getDevice, getHttpOptions, http, post, postUploadSign, put, request, setupHttp, sha256, sortString, uploadFile, uploadOss };
|
package/package.json
CHANGED