@keyringnetwork/keyring-connect-sdk 3.0.0 → 3.0.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.
Files changed (2) hide show
  1. package/dist/main.js +0 -8
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -89,12 +89,6 @@ class KeyringConnect {
89
89
  lastStateString = stateString;
90
90
  callback(state);
91
91
  };
92
- const messageHandler = (event) => {
93
- if (event.data.type === types_1.EVENT_ACTIONS.KEYRING_CONNECT_STATUS &&
94
- isActive) {
95
- processState(event.data.data);
96
- }
97
- };
98
92
  const pollStatus = () => {
99
93
  if (!isActive)
100
94
  return;
@@ -103,14 +97,12 @@ class KeyringConnect {
103
97
  .catch(() => processState(null));
104
98
  timerId = setTimeout(pollStatus, interval);
105
99
  };
106
- window.addEventListener("message", messageHandler);
107
100
  // Start polling after initial delay
108
101
  timerId = setTimeout(pollStatus, initialDelay);
109
102
  return () => {
110
103
  isActive = false;
111
104
  if (timerId)
112
105
  clearTimeout(timerId);
113
- window.removeEventListener("message", messageHandler);
114
106
  };
115
107
  }
116
108
  static validateClientConfig(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keyringnetwork/keyring-connect-sdk",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "An SDK for interacting with Keyring Connect browser extension",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  "ts-node": "^10.9.2",
21
21
  "typescript": "^5.6.3"
22
22
  }
23
- }
23
+ }