@newbeebox/newbeebox-client-web-sdk 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -14,7 +14,6 @@ export class NewBeeClient {
14
14
  constructor() {}
15
15
 
16
16
  async Init(app_id) {
17
-
18
17
  if (!app_id || typeof app_id !== "string") {
19
18
  throw new Error("APPID格式不正确 请前往后台获取");
20
19
  }
@@ -55,6 +54,10 @@ export class NewBeeClient {
55
54
  }
56
55
  }
57
56
 
57
+ if (!this.newbee_client_port) {
58
+ throw new Error("未检测到新手盒子客户端 初始化失败");
59
+ }
60
+
58
61
  console.log("客户端开启的端口号:", this.newbee_client_port);
59
62
  }
60
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newbeebox/newbeebox-client-web-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "NewBeeBox Client SDK for Web",
5
5
  "main": "index.js",
6
6
  "type": "module",