@ikonai/sdk-ui 1.0.46 → 1.0.47

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 +5 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3040,16 +3040,14 @@ class mi {
3040
3040
  const s = {
3041
3041
  opcodeGroupsMask: L.GROUP_CORE | L.GROUP_UI | L.GROUP_ACTIONS
3042
3042
  };
3043
- this.unsubscribeProtocolMessages = e.subscribeToProtocolMessages((i) => {
3043
+ this.unsubscribeProtocolMessages = e.subscribeToProtocolMessages((n) => {
3044
3044
  if (this.uiWorker) {
3045
- this.forwardMessageToWorker(i);
3045
+ this.forwardMessageToWorker(n);
3046
3046
  return;
3047
3047
  }
3048
- this.handleProtocolMessage(i);
3049
- }, s);
3050
- let n = !1;
3051
- this.unsubscribeState = e.subscribeToState((i) => {
3052
- i === "reconnecting" ? n = !0 : i === "connected" && n ? (n = !1, this.clearAllState()) : (n = !1, (i === "offline" || i === "offlineError") && this.clearAllState());
3048
+ this.handleProtocolMessage(n);
3049
+ }, s), this.unsubscribeState = e.subscribeToState((n) => {
3050
+ (n === "offline" || n === "offlineError") && this.clearAllState();
3053
3051
  });
3054
3052
  }
3055
3053
  startUiWorker(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-ui",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",