@zwa73/utils 1.0.176 → 1.0.177
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/UtilCom.d.ts +4 -4
- package/package.json +1 -1
- package/src/UtilCom.ts +4 -4
package/dist/UtilCom.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare namespace UtilCom {
|
|
|
50
50
|
* @param reqData - 数据对象
|
|
51
51
|
* @returns 结果 undefined 为未能成功接收
|
|
52
52
|
*/
|
|
53
|
-
function httpsPost(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData
|
|
53
|
+
function httpsPost(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData?: JObject): Promise<{
|
|
54
54
|
data: JObject;
|
|
55
55
|
/**响应头 */
|
|
56
56
|
headers: http.IncomingHttpHeaders;
|
|
@@ -63,7 +63,7 @@ export declare namespace UtilCom {
|
|
|
63
63
|
* @param reqData - 数据对象
|
|
64
64
|
* @returns 结果 undefined 为未能成功接收
|
|
65
65
|
*/
|
|
66
|
-
function httpPost(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData
|
|
66
|
+
function httpPost(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData?: JObject): Promise<{
|
|
67
67
|
data: JObject;
|
|
68
68
|
/**响应头 */
|
|
69
69
|
headers: http.IncomingHttpHeaders;
|
|
@@ -76,7 +76,7 @@ export declare namespace UtilCom {
|
|
|
76
76
|
* @param reqData - 数据对象
|
|
77
77
|
* @returns 结果 undefined 为未能成功接收
|
|
78
78
|
*/
|
|
79
|
-
function httpsGet(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData
|
|
79
|
+
function httpsGet(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData?: GetReqData): Promise<{
|
|
80
80
|
data: JObject;
|
|
81
81
|
/**响应头 */
|
|
82
82
|
headers: http.IncomingHttpHeaders;
|
|
@@ -89,7 +89,7 @@ export declare namespace UtilCom {
|
|
|
89
89
|
* @param reqData - 数据对象
|
|
90
90
|
* @returns 结果 undefined 为未能成功接收
|
|
91
91
|
*/
|
|
92
|
-
function httpGet(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData
|
|
92
|
+
function httpGet(comReqOpt: Omit<ComReqOpt, 'protocol' | 'method'>, reqData?: GetReqData): Promise<{
|
|
93
93
|
data: JObject;
|
|
94
94
|
/**响应头 */
|
|
95
95
|
headers: http.IncomingHttpHeaders;
|
package/package.json
CHANGED
package/src/UtilCom.ts
CHANGED
|
@@ -199,7 +199,7 @@ async function repeatJsonComReq<T extends ComReqOpt>(
|
|
|
199
199
|
* @param reqData - 数据对象
|
|
200
200
|
* @returns 结果 undefined 为未能成功接收
|
|
201
201
|
*/
|
|
202
|
-
export function httpsPost(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData
|
|
202
|
+
export function httpsPost(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData?:JObject){
|
|
203
203
|
return jsonReq({
|
|
204
204
|
...comReqOpt,
|
|
205
205
|
method:"POST",
|
|
@@ -213,7 +213,7 @@ export function httpsPost(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData:
|
|
|
213
213
|
* @param reqData - 数据对象
|
|
214
214
|
* @returns 结果 undefined 为未能成功接收
|
|
215
215
|
*/
|
|
216
|
-
export function httpPost(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData
|
|
216
|
+
export function httpPost(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData?:JObject){
|
|
217
217
|
return jsonReq({
|
|
218
218
|
...comReqOpt,
|
|
219
219
|
method:"POST",
|
|
@@ -227,7 +227,7 @@ export function httpPost(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData:J
|
|
|
227
227
|
* @param reqData - 数据对象
|
|
228
228
|
* @returns 结果 undefined 为未能成功接收
|
|
229
229
|
*/
|
|
230
|
-
export function httpsGet(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData
|
|
230
|
+
export function httpsGet(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData?:GetReqData){
|
|
231
231
|
return jsonReq({
|
|
232
232
|
...comReqOpt,
|
|
233
233
|
method:"GET",
|
|
@@ -241,7 +241,7 @@ export function httpsGet(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData:R
|
|
|
241
241
|
* @param reqData - 数据对象
|
|
242
242
|
* @returns 结果 undefined 为未能成功接收
|
|
243
243
|
*/
|
|
244
|
-
export function httpGet(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData
|
|
244
|
+
export function httpGet(comReqOpt:Omit<ComReqOpt,'protocol'|'method'>,reqData?:GetReqData){
|
|
245
245
|
return jsonReq({
|
|
246
246
|
...comReqOpt,
|
|
247
247
|
method:"GET",
|