@phantom/react-native-sdk 0.1.7 → 0.1.8

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 CHANGED
@@ -167,12 +167,14 @@ var ExpoAuthProvider = class {
167
167
  const url = new URL(result.url);
168
168
  const walletId = url.searchParams.get("wallet_id");
169
169
  const provider2 = url.searchParams.get("provider");
170
+ const accountDerivationIndex = url.searchParams.get("selected_account_index");
170
171
  if (!walletId) {
171
172
  throw new Error("Authentication failed: no walletId in redirect URL");
172
173
  }
173
174
  return {
174
175
  walletId,
175
- provider: provider2 || void 0
176
+ provider: provider2 || void 0,
177
+ accountDerivationIndex: accountDerivationIndex ? parseInt(accountDerivationIndex) : void 0
176
178
  };
177
179
  } else if (result.type === "cancel") {
178
180
  throw new Error("User cancelled authentication");
package/dist/index.mjs CHANGED
@@ -123,12 +123,14 @@ var ExpoAuthProvider = class {
123
123
  const url = new URL(result.url);
124
124
  const walletId = url.searchParams.get("wallet_id");
125
125
  const provider2 = url.searchParams.get("provider");
126
+ const accountDerivationIndex = url.searchParams.get("selected_account_index");
126
127
  if (!walletId) {
127
128
  throw new Error("Authentication failed: no walletId in redirect URL");
128
129
  }
129
130
  return {
130
131
  walletId,
131
- provider: provider2 || void 0
132
+ provider: provider2 || void 0,
133
+ accountDerivationIndex: accountDerivationIndex ? parseInt(accountDerivationIndex) : void 0
132
134
  };
133
135
  } else if (result.type === "cancel") {
134
136
  throw new Error("User cancelled authentication");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phantom/react-native-sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Phantom Wallet SDK for React Native and Expo applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -47,10 +47,10 @@
47
47
  "dependencies": {
48
48
  "@phantom/api-key-stamper": "^0.1.5",
49
49
  "@phantom/base64url": "^0.1.0",
50
- "@phantom/client": "^0.1.10",
50
+ "@phantom/client": "^0.1.11",
51
51
  "@phantom/constants": "^0.0.3",
52
52
  "@phantom/crypto": "^0.1.2",
53
- "@phantom/embedded-provider-core": "^0.1.9",
53
+ "@phantom/embedded-provider-core": "^0.1.10",
54
54
  "@phantom/sdk-types": "^0.1.5",
55
55
  "@types/bs58": "^5.0.0",
56
56
  "bs58": "^6.0.0",