@dubsdotapp/expo 0.2.11 → 0.2.13
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/provider.tsx +1 -1
- package/src/types.ts +1 -0
- package/src/wallet/phantom-deeplink/phantom-deeplink-adapter.ts +5 -3
package/dist/index.mjs
CHANGED
|
@@ -824,14 +824,14 @@ var PhantomDeeplinkAdapter = class {
|
|
|
824
824
|
const requestId = nextRequestId();
|
|
825
825
|
const redirectLink = `${this.config.redirectUri}/${requestId}`;
|
|
826
826
|
console.log(TAG2, `connect() requestId=${requestId} redirectLink=${redirectLink}`);
|
|
827
|
+
const appUrl = this.config.appUrl || this.config.redirectUri;
|
|
828
|
+
console.log(TAG2, "Using app_url:", appUrl);
|
|
827
829
|
const params = new URLSearchParams({
|
|
828
830
|
dapp_encryption_public_key: dappPubBase58,
|
|
829
831
|
cluster: this.config.cluster || "mainnet-beta",
|
|
830
|
-
redirect_link: redirectLink
|
|
832
|
+
redirect_link: redirectLink,
|
|
833
|
+
app_url: appUrl
|
|
831
834
|
});
|
|
832
|
-
if (this.config.appUrl) {
|
|
833
|
-
params.set("app_url", this.config.appUrl);
|
|
834
|
-
}
|
|
835
835
|
const url = `https://phantom.app/ul/v1/connect?${params.toString()}`;
|
|
836
836
|
console.log(TAG2, "Opening Phantom connect deeplink...");
|
|
837
837
|
const response = await this.handler.send(url, requestId, this.timeout);
|
|
@@ -2418,7 +2418,7 @@ function DubsProvider({
|
|
|
2418
2418
|
appIcon: uiConfig.appIcon,
|
|
2419
2419
|
tagline: uiConfig.tagline,
|
|
2420
2420
|
redirectUri,
|
|
2421
|
-
appUrl,
|
|
2421
|
+
appUrl: appUrl || uiConfig.appUrl,
|
|
2422
2422
|
children: (adapter) => /* @__PURE__ */ jsx4(
|
|
2423
2423
|
ManagedInner,
|
|
2424
2424
|
{
|