@moonpay/platform-sdk-react-native 1.23.0 → 1.24.2
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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -205,7 +205,7 @@ var buyButtonSpec = {
|
|
|
205
205
|
function applyCredentialsOnComplete(msg, ctx) {
|
|
206
206
|
if (msg.kind !== "complete" || !ctx.privateKey) return;
|
|
207
207
|
const connection = msg.payload;
|
|
208
|
-
if (connection.status !== import_connection.ConnectionStatus.active && connection.status !== import_connection.ConnectionStatus.connectionRequired) {
|
|
208
|
+
if (connection.status !== import_connection.ConnectionStatus.active && connection.status !== import_connection.ConnectionStatus.pending && connection.status !== import_connection.ConnectionStatus.connectionRequired) {
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
if (!connection.credentials) return;
|
|
@@ -306,7 +306,7 @@ var authSpec = {
|
|
|
306
306
|
return { kind: "error", payload: msg.payload };
|
|
307
307
|
case "complete": {
|
|
308
308
|
const connection = msg.payload;
|
|
309
|
-
if (connection.status === import_connection.ConnectionStatus.active || connection.status === import_connection.ConnectionStatus.termsAcceptanceRequired) {
|
|
309
|
+
if (connection.status === import_connection.ConnectionStatus.active || connection.status === import_connection.ConnectionStatus.pending || connection.status === import_connection.ConnectionStatus.termsAcceptanceRequired) {
|
|
310
310
|
return { kind: "complete", payload: msg.payload };
|
|
311
311
|
}
|
|
312
312
|
return null;
|
|
@@ -463,6 +463,8 @@ var challengeSpec = {
|
|
|
463
463
|
switch (msg.kind) {
|
|
464
464
|
case "ready":
|
|
465
465
|
return { kind: "ready" };
|
|
466
|
+
case "buttonPressed":
|
|
467
|
+
return { kind: "buttonPressed" };
|
|
466
468
|
case "complete":
|
|
467
469
|
return { kind: "complete", payload: msg.payload };
|
|
468
470
|
case "cancelled":
|