@seayoo-io/combo-sdk-node 0.3.0 → 0.3.1

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/README.md CHANGED
@@ -379,7 +379,7 @@ function gmCommandHandler(command, args, requestId, version) {
379
379
  // 参数 args 由协议定义,在使用前需要做严格的格式和逻辑校验
380
380
  // 返回值需要根据协议定义进行响应,通常是一个包含了多个字段的 object
381
381
  return await execSomeCommand(args);
382
- case "OtherCmdName":
382
+ case "OtherCmdName":
383
383
  // 抛出自定义错误有三种方式:
384
384
  // 1. 返回一个 Error 对象,最终响应以 500(internalServerError)作为 http status
385
385
  return new Error("自定义错误信息")
@@ -390,7 +390,7 @@ function gmCommandHandler(command, args, requestId, version) {
390
390
  throw new Error("some unknown error")
391
391
  ...
392
392
  default: // 不识别的指令进行返回
393
- return { error: GMError.InvalidCommand, message: "不识别的指令"+ command }
393
+ return { error: GMError.InvalidCommand, message: "不识别的指令"+ command }
394
394
  }
395
395
  }
396
396
 
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.3.0";
4
+ export declare const SDKVersion = "0.3.1";
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.3.0";
15
+ const SDKVersion = "0.3.1";
16
16
  /**
17
17
  * 世游支持的服务端点列表
18
18
  */
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.3.0";
10
+ const SDKVersion = "0.3.1";
11
11
  /**
12
12
  * 世游支持的服务端点列表
13
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-io/combo-sdk-node",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Combo SDK for Node.js",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",