@seayoo-io/combo-sdk-node 0.1.8 → 0.1.9
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/const.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/request/inc/type.d.ts +1 -1
- package/package.json +1 -1
package/dist/const.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -12,7 +12,7 @@ var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
|
|
|
12
12
|
/** SDK 名称 */
|
|
13
13
|
const SDKName = "combo-sdk-node";
|
|
14
14
|
/** SDK 版本,在编译前会被动态替换 */
|
|
15
|
-
const SDKVersion = "0.1.
|
|
15
|
+
const SDKVersion = "0.1.9";
|
|
16
16
|
/**
|
|
17
17
|
* 世游支持的服务端点列表
|
|
18
18
|
*/
|
|
@@ -637,7 +637,7 @@ function convertBody(body) {
|
|
|
637
637
|
if (!body) {
|
|
638
638
|
return;
|
|
639
639
|
}
|
|
640
|
-
if (body instanceof
|
|
640
|
+
if (body instanceof URLSearchParams || typeof body === "string") {
|
|
641
641
|
return body;
|
|
642
642
|
}
|
|
643
643
|
return JSON.stringify(body);
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { verify } from 'jsonwebtoken';
|
|
|
7
7
|
/** SDK 名称 */
|
|
8
8
|
const SDKName = "combo-sdk-node";
|
|
9
9
|
/** SDK 版本,在编译前会被动态替换 */
|
|
10
|
-
const SDKVersion = "0.1.
|
|
10
|
+
const SDKVersion = "0.1.9";
|
|
11
11
|
/**
|
|
12
12
|
* 世游支持的服务端点列表
|
|
13
13
|
*/
|
|
@@ -632,7 +632,7 @@ function convertBody(body) {
|
|
|
632
632
|
if (!body) {
|
|
633
633
|
return;
|
|
634
634
|
}
|
|
635
|
-
if (body instanceof
|
|
635
|
+
if (body instanceof URLSearchParams || typeof body === "string") {
|
|
636
636
|
return body;
|
|
637
637
|
}
|
|
638
638
|
return JSON.stringify(body);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RequestGlobalConfig } from "./config";
|
|
2
2
|
import type { MaybePromise, TypeGuard, TypeGuardFn } from "../../utils";
|
|
3
|
-
export type IBaseRequestBody =
|
|
3
|
+
export type IBaseRequestBody = URLSearchParams | string;
|
|
4
4
|
/** 通用网络请求工具的基本配置 */
|
|
5
5
|
export interface IBaseRequestOptions {
|
|
6
6
|
/** 网络请求方法,默认 GET */
|