@unifold/connect-react 0.1.51 → 0.1.52
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.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -17468,8 +17468,11 @@ function BrowserWalletButton({
|
|
|
17468
17468
|
solanaProvider.off("accountChanged", handleAccountsChanged);
|
|
17469
17469
|
}
|
|
17470
17470
|
for (const provider of ethProviders) {
|
|
17471
|
-
provider.removeListener(
|
|
17472
|
-
|
|
17471
|
+
const off = provider.off?.bind(provider) ?? provider.removeListener?.bind(provider);
|
|
17472
|
+
if (off) {
|
|
17473
|
+
off("accountsChanged", handleEthAccountsChanged);
|
|
17474
|
+
off("chainChanged", handleAccountsChanged);
|
|
17475
|
+
}
|
|
17473
17476
|
}
|
|
17474
17477
|
};
|
|
17475
17478
|
}, [chainType, eip6963ProviderCount]);
|
package/dist/index.mjs
CHANGED
|
@@ -17454,8 +17454,11 @@ function BrowserWalletButton({
|
|
|
17454
17454
|
solanaProvider.off("accountChanged", handleAccountsChanged);
|
|
17455
17455
|
}
|
|
17456
17456
|
for (const provider of ethProviders) {
|
|
17457
|
-
provider.removeListener(
|
|
17458
|
-
|
|
17457
|
+
const off = provider.off?.bind(provider) ?? provider.removeListener?.bind(provider);
|
|
17458
|
+
if (off) {
|
|
17459
|
+
off("accountsChanged", handleEthAccountsChanged);
|
|
17460
|
+
off("chainChanged", handleAccountsChanged);
|
|
17461
|
+
}
|
|
17459
17462
|
}
|
|
17460
17463
|
};
|
|
17461
17464
|
}, [chainType, eip6963ProviderCount]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/connect-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "Unifold Connect React - Complete React SDK with UI components for crypto deposits",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@tanstack/react-query": "^5.90.11",
|
|
29
|
-
"@unifold/core": "0.1.
|
|
30
|
-
"@unifold/
|
|
31
|
-
"@unifold/react
|
|
29
|
+
"@unifold/core": "0.1.52",
|
|
30
|
+
"@unifold/react-provider": "0.1.52",
|
|
31
|
+
"@unifold/ui-react": "0.1.52"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "^19.0.0",
|