@reown/appkit-ethers-react-native 0.0.0-refactor-modal-migration-20241101155903 → 0.0.0-refactor-modal-migration-20241104195134
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/package.json +5 -5
- package/src/client.ts +2 -2
- package/lib/commonjs/client.js +0 -768
- package/lib/commonjs/client.js.map +0 -1
- package/lib/commonjs/index.js +0 -170
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/utils/defaultConfig.js +0 -18
- package/lib/commonjs/utils/defaultConfig.js.map +0 -1
- package/lib/commonjs/utils/helpers.js +0 -27
- package/lib/commonjs/utils/helpers.js.map +0 -1
- package/lib/module/client.js +0 -760
- package/lib/module/client.js.map +0 -1
- package/lib/module/index.js +0 -121
- package/lib/module/index.js.map +0 -1
- package/lib/module/utils/defaultConfig.js +0 -12
- package/lib/module/utils/defaultConfig.js.map +0 -1
- package/lib/module/utils/helpers.js +0 -20
- package/lib/module/utils/helpers.js.map +0 -1
- package/lib/typescript/client.d.ts +0 -63
- package/lib/typescript/client.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -39
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/utils/defaultConfig.d.ts +0 -7
- package/lib/typescript/utils/defaultConfig.d.ts.map +0 -1
- package/lib/typescript/utils/helpers.d.ts +0 -10
- package/lib/typescript/utils/helpers.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-ethers-react-native",
|
|
3
|
-
"version": "0.0.0-refactor-modal-migration-
|
|
3
|
+
"version": "0.0.0-refactor-modal-migration-20241104195134",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"types": "lib/typescript/index.d.ts",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@reown/appkit-common-react-native": "0.0.0-refactor-modal-migration-
|
|
42
|
-
"@reown/appkit-scaffold-react-native": "0.0.0-refactor-modal-migration-
|
|
43
|
-
"@reown/appkit-scaffold-utils-react-native": "0.0.0-refactor-modal-migration-
|
|
44
|
-
"@reown/appkit-siwe-react-native": "0.0.0-refactor-modal-migration-
|
|
41
|
+
"@reown/appkit-common-react-native": "0.0.0-refactor-modal-migration-20241104195134",
|
|
42
|
+
"@reown/appkit-scaffold-react-native": "0.0.0-refactor-modal-migration-20241104195134",
|
|
43
|
+
"@reown/appkit-scaffold-utils-react-native": "0.0.0-refactor-modal-migration-20241104195134",
|
|
44
|
+
"@reown/appkit-siwe-react-native": "0.0.0-refactor-modal-migration-20241104195134",
|
|
45
45
|
"@walletconnect/ethereum-provider": "2.16.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
package/src/client.ts
CHANGED
|
@@ -127,9 +127,9 @@ export class AppKit extends AppKitScaffold {
|
|
|
127
127
|
new Promise(async resolve => {
|
|
128
128
|
const walletChoice = await StorageUtil.getConnectedConnector();
|
|
129
129
|
const walletConnectType =
|
|
130
|
-
PresetsUtil.ConnectorTypesMap[ConstantsUtil.WALLET_CONNECT_CONNECTOR_ID]
|
|
130
|
+
PresetsUtil.ConnectorTypesMap[ConstantsUtil.WALLET_CONNECT_CONNECTOR_ID]!;
|
|
131
131
|
|
|
132
|
-
const authType = PresetsUtil.ConnectorTypesMap[ConstantsUtil.AUTH_CONNECTOR_ID]
|
|
132
|
+
const authType = PresetsUtil.ConnectorTypesMap[ConstantsUtil.AUTH_CONNECTOR_ID]!;
|
|
133
133
|
if (walletChoice?.includes(walletConnectType)) {
|
|
134
134
|
const provider = await this.getWalletConnectProvider();
|
|
135
135
|
const result = getWalletConnectCaipNetworks(provider);
|