@xmov/avatar 2.4.0-alpha.3 → 2.4.0-alpha.5

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/index.d.ts CHANGED
@@ -82,6 +82,16 @@ export default class XmovAvatar {
82
82
  private _pendingInitConfig;
83
83
  private _clientSessionId;
84
84
  constructor(options: IAvatarOptions);
85
+ /**
86
+ * 创建 Sentry 错误上报实例(编译时常量 ENABLE_SENTRY + 运行时 sentry.enabled 双重控制)。
87
+ * 放在构造函数内完成:onMessage 的早期分支(无网络 / 容器不存在 / 能力检查失败)都发生在其后。
88
+ */
89
+ private initSentryReporter;
90
+ /**
91
+ * 释放 Sentry 客户端(内部会 flush 未发送的事件)。
92
+ * 用于「实例确定不可用」的提前退出路径,避免业务反复重试创建时残留多个 client。
93
+ */
94
+ private disposeSentryReporter;
85
95
  getStatus(): AvatarStatus | -1;
86
96
  /**
87
97
  * 初始化是否完成(progress === 100)