@dubsdotapp/expo 0.2.15 → 0.2.16
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
|
@@ -809,11 +809,14 @@ var DeeplinkHandler = class {
|
|
|
809
809
|
console.log(TAG, "No pending requests to resolve \u2014 redirect may have arrived late");
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
/**
|
|
812
|
+
/** Extract the request ID from the dubs_rid query parameter. */
|
|
813
813
|
extractRequestId(url) {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
814
|
+
try {
|
|
815
|
+
const parsed = new URL(url);
|
|
816
|
+
return parsed.searchParams.get("dubs_rid");
|
|
817
|
+
} catch {
|
|
818
|
+
return null;
|
|
819
|
+
}
|
|
817
820
|
}
|
|
818
821
|
};
|
|
819
822
|
|
|
@@ -886,7 +889,7 @@ var PhantomDeeplinkAdapter = class {
|
|
|
886
889
|
const dappPubBase58 = import_bs582.default.encode(this._dappKeyPair.publicKey);
|
|
887
890
|
console.log(TAG2, "Dapp public key:", dappPubBase58);
|
|
888
891
|
const requestId = nextRequestId();
|
|
889
|
-
const redirectLink = `${this.config.redirectUri}
|
|
892
|
+
const redirectLink = `${this.config.redirectUri}?dubs_rid=${requestId}`;
|
|
890
893
|
console.log(TAG2, `connect() requestId=${requestId} redirectLink=${redirectLink}`);
|
|
891
894
|
const appUrl = this.config.appUrl || this.config.redirectUri;
|
|
892
895
|
console.log(TAG2, "Using app_url:", appUrl);
|
|
@@ -947,7 +950,7 @@ var PhantomDeeplinkAdapter = class {
|
|
|
947
950
|
this._sharedSecret
|
|
948
951
|
);
|
|
949
952
|
const requestId = nextRequestId();
|
|
950
|
-
const redirectLink = `${this.config.redirectUri}
|
|
953
|
+
const redirectLink = `${this.config.redirectUri}?dubs_rid=${requestId}`;
|
|
951
954
|
console.log(TAG2, `signTransaction() requestId=${requestId}`);
|
|
952
955
|
const params = new URLSearchParams({
|
|
953
956
|
dapp_encryption_public_key: import_bs582.default.encode(this._dappKeyPair.publicKey),
|
|
@@ -979,7 +982,7 @@ var PhantomDeeplinkAdapter = class {
|
|
|
979
982
|
this._sharedSecret
|
|
980
983
|
);
|
|
981
984
|
const requestId = nextRequestId();
|
|
982
|
-
const redirectLink = `${this.config.redirectUri}
|
|
985
|
+
const redirectLink = `${this.config.redirectUri}?dubs_rid=${requestId}`;
|
|
983
986
|
console.log(TAG2, `signAndSendTransaction() requestId=${requestId}`);
|
|
984
987
|
const params = new URLSearchParams({
|
|
985
988
|
dapp_encryption_public_key: import_bs582.default.encode(this._dappKeyPair.publicKey),
|
|
@@ -1007,7 +1010,7 @@ var PhantomDeeplinkAdapter = class {
|
|
|
1007
1010
|
this._sharedSecret
|
|
1008
1011
|
);
|
|
1009
1012
|
const requestId = nextRequestId();
|
|
1010
|
-
const redirectLink = `${this.config.redirectUri}
|
|
1013
|
+
const redirectLink = `${this.config.redirectUri}?dubs_rid=${requestId}`;
|
|
1011
1014
|
console.log(TAG2, `signMessage() requestId=${requestId}`);
|
|
1012
1015
|
const params = new URLSearchParams({
|
|
1013
1016
|
dapp_encryption_public_key: import_bs582.default.encode(this._dappKeyPair.publicKey),
|