@wagmi/connectors 1.0.5 → 2.0.0
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.
|
@@ -15,10 +15,6 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
|
|
|
15
15
|
readonly id = "walletConnectLegacy";
|
|
16
16
|
readonly name = "WalletConnectLegacy";
|
|
17
17
|
readonly ready = true;
|
|
18
|
-
constructor(config: {
|
|
19
|
-
chains?: Chain[];
|
|
20
|
-
options: WalletConnectOptions;
|
|
21
|
-
});
|
|
22
18
|
connect({ chainId }?: {
|
|
23
19
|
chainId?: number;
|
|
24
20
|
}): Promise<{
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
var switchChainAllowedRegex = /(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i;
|
|
23
23
|
var _provider, _switchChain, switchChain_fn;
|
|
24
24
|
var WalletConnectLegacyConnector = class extends Connector {
|
|
25
|
-
constructor(
|
|
26
|
-
super(
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
27
|
__privateAdd(this, _switchChain);
|
|
28
28
|
__publicField(this, "id", "walletConnectLegacy");
|
|
29
29
|
__publicField(this, "name", "WalletConnectLegacy");
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@wagmi/connectors",
|
|
3
3
|
"description": "A collection of connectors for wagmi",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.0.0",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@wagmi/chains": ">=0.
|
|
7
|
+
"@wagmi/chains": ">=0.3.0",
|
|
8
8
|
"typescript": ">=4.9.4",
|
|
9
9
|
"viem": "~0.3.35"
|
|
10
10
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"viem": "0.3.35",
|
|
32
|
-
"@wagmi/chains": "0.
|
|
32
|
+
"@wagmi/chains": "0.3.0"
|
|
33
33
|
},
|
|
34
34
|
"type": "module",
|
|
35
35
|
"main": "dist/index.js",
|