@jhh96/light-app-bridge 1.3.0 → 1.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.
@@ -334,8 +334,12 @@ export default class LightAppBridge {
334
334
  this._log('recv← 忽略非本SDK消息: from=' + fromId);
335
335
  return;
336
336
  }
337
- this._log('recv← type=' + envelope.type + ' id=' + envelope.id +
338
- ' from=' + fromId + ' data=' + debugPayload(envelope.data));
337
+ // ping/pong 是心跳噪音(默认 10s 一对),debug 日志跳过——生命周期关键
338
+ // 日志(pong 超时/恢复/兜底探测/失联)仍保留在 _pingOnce/_probeAlive 内
339
+ if (envelope.type !== 'ping' && envelope.type !== 'pong') {
340
+ this._log('recv← type=' + envelope.type + ' id=' + envelope.id +
341
+ ' from=' + fromId + ' data=' + debugPayload(envelope.data));
342
+ }
339
343
  switch (envelope.type) {
340
344
  case 'hello':
341
345
  this._onHello(fromId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jhh96/light-app-bridge",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "description": "招商随行(WorkLink)插件窗口(plugin)与轻应用窗口(lightapp)之间的双向通信 SDK",
6
6
  "main": "./dist/index.js",