@larksuiteoapi/node-sdk 1.63.0 → 1.63.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/es/index.js CHANGED
@@ -85748,19 +85748,24 @@ class WSClient {
85748
85748
  }
85749
85749
  start(params) {
85750
85750
  return __awaiter(this, void 0, void 0, function* () {
85751
- this.logger.info('[ws]', `receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:
85752
- Developer Console(开发者后台)
85753
- ->
85754
- Events and Callbacks(事件与回调)
85755
- ->
85756
- Mode of event/callback subscription(订阅方式)
85757
- ->
85758
- Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)`);
85751
+ const { appId } = this.wsConfig.getClient();
85752
+ if (!/^cli_[0-9a-fA-F]{16}$/.test(appId)) {
85753
+ this.logger.error('[ws]', `invalid appId: ${appId}`);
85754
+ return;
85755
+ }
85759
85756
  const { eventDispatcher } = params;
85760
85757
  if (!eventDispatcher) {
85761
85758
  this.logger.warn('[ws]', 'client need to start with a eventDispatcher');
85762
85759
  return;
85763
85760
  }
85761
+ this.logger.info('[ws]', `receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:
85762
+ Developer Console(开发者后台)
85763
+ ->
85764
+ Events and Callbacks(事件与回调)
85765
+ ->
85766
+ Mode of event/callback subscription(订阅方式)
85767
+ ->
85768
+ Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)`);
85764
85769
  this.eventDispatcher = eventDispatcher;
85765
85770
  this.reConnect(true);
85766
85771
  });
package/lib/index.js CHANGED
@@ -85766,19 +85766,24 @@ class WSClient {
85766
85766
  }
85767
85767
  start(params) {
85768
85768
  return __awaiter(this, void 0, void 0, function* () {
85769
- this.logger.info('[ws]', `receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:
85770
- Developer Console(开发者后台)
85771
- ->
85772
- Events and Callbacks(事件与回调)
85773
- ->
85774
- Mode of event/callback subscription(订阅方式)
85775
- ->
85776
- Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)`);
85769
+ const { appId } = this.wsConfig.getClient();
85770
+ if (!/^cli_[0-9a-fA-F]{16}$/.test(appId)) {
85771
+ this.logger.error('[ws]', `invalid appId: ${appId}`);
85772
+ return;
85773
+ }
85777
85774
  const { eventDispatcher } = params;
85778
85775
  if (!eventDispatcher) {
85779
85776
  this.logger.warn('[ws]', 'client need to start with a eventDispatcher');
85780
85777
  return;
85781
85778
  }
85779
+ this.logger.info('[ws]', `receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:
85780
+ Developer Console(开发者后台)
85781
+ ->
85782
+ Events and Callbacks(事件与回调)
85783
+ ->
85784
+ Mode of event/callback subscription(订阅方式)
85785
+ ->
85786
+ Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)`);
85782
85787
  this.eventDispatcher = eventDispatcher;
85783
85788
  this.reConnect(true);
85784
85789
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larksuiteoapi/node-sdk",
3
- "version": "1.63.0",
3
+ "version": "1.63.1",
4
4
  "description": "larksuite open sdk for nodejs",
5
5
  "keywords": [
6
6
  "feishu",