@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  /** SDK 名称 */
2
2
  export declare const SDKName = "combo-sdk-node";
3
3
  /** SDK 版本,在编译前会被动态替换 */
4
- export declare const SDKVersion = "0.1.8";
4
+ export declare const SDKVersion = "0.1.9";
5
5
  /**
6
6
  * 世游支持的服务端点列表
7
7
  */
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.8";
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 Blob || body instanceof ArrayBuffer || body instanceof URLSearchParams || typeof body === "string") {
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.8";
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 Blob || body instanceof ArrayBuffer || body instanceof URLSearchParams || typeof body === "string") {
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 = Blob | ArrayBuffer | URLSearchParams | string;
3
+ export type IBaseRequestBody = URLSearchParams | string;
4
4
  /** 通用网络请求工具的基本配置 */
5
5
  export interface IBaseRequestOptions {
6
6
  /** 网络请求方法,默认 GET */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-io/combo-sdk-node",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Combo SDK for Node.js",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",