@tonconnect/sdk 0.0.37 → 0.0.38

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.
@@ -126,6 +126,9 @@ class BridgeProvider {
126
126
  if (walletMessage.event === 'connect') {
127
127
  yield this.updateSession(walletMessage, bridgeIncomingMessage.from);
128
128
  }
129
+ if (walletMessage.event === 'disconnect') {
130
+ yield this.removeBridgeAndSession();
131
+ }
129
132
  this.listeners.forEach(listener => listener(walletMessage));
130
133
  });
131
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonconnect/sdk",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "scripts": {
5
5
  "build": "npx rimraf lib && ttsc && npx rimraf dist && webpack --mode development",
6
6
  "build:production": "npx rimraf lib && ttsc --sourceMap false && npx rimraf dist && webpack --mode production"