@moon-x/react-native-sdk 0.20.0 → 0.20.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.js CHANGED
@@ -566,6 +566,7 @@ var RETRYABLE_METHODS = /* @__PURE__ */ new Set([
566
566
  "IS_AUTHENTICATED",
567
567
  "GET_PASSKEY_STATUS",
568
568
  "GET_DEK_INFO",
569
+ // Only metadata reads. send excludes the signing variant.
569
570
  "LIST_EPHEMERAL_SIGNERS"
570
571
  ]);
571
572
  var RETRY_ATTEMPT_TIMEOUTS_MS = [
@@ -709,7 +710,8 @@ var WebViewBridge = class {
709
710
  // Idempotent reads (see RETRYABLE_METHODS) are auto-retried on timeout to
710
711
  // ride out the iframe-app mount race; everything else makes a single attempt.
711
712
  async send(type, method, payload) {
712
- if (!RETRYABLE_METHODS.has(method)) {
713
+ const isSigningPreparation = method === "GET_DEK_INFO" && payload !== null && typeof payload === "object" && "signingWalletId" in payload && payload.signingWalletId !== void 0;
714
+ if (isSigningPreparation || !RETRYABLE_METHODS.has(method)) {
713
715
  return this.sendOnce(
714
716
  type,
715
717
  method,
package/dist/index.mjs CHANGED
@@ -544,6 +544,7 @@ var RETRYABLE_METHODS = /* @__PURE__ */ new Set([
544
544
  "IS_AUTHENTICATED",
545
545
  "GET_PASSKEY_STATUS",
546
546
  "GET_DEK_INFO",
547
+ // Only metadata reads. send excludes the signing variant.
547
548
  "LIST_EPHEMERAL_SIGNERS"
548
549
  ]);
549
550
  var RETRY_ATTEMPT_TIMEOUTS_MS = [
@@ -687,7 +688,8 @@ var WebViewBridge = class {
687
688
  // Idempotent reads (see RETRYABLE_METHODS) are auto-retried on timeout to
688
689
  // ride out the iframe-app mount race; everything else makes a single attempt.
689
690
  async send(type, method, payload) {
690
- if (!RETRYABLE_METHODS.has(method)) {
691
+ const isSigningPreparation = method === "GET_DEK_INFO" && payload !== null && typeof payload === "object" && "signingWalletId" in payload && payload.signingWalletId !== void 0;
692
+ if (isSigningPreparation || !RETRYABLE_METHODS.has(method)) {
691
693
  return this.sendOnce(
692
694
  type,
693
695
  method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moon-x/react-native-sdk",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "Headless MoonX React Native SDK with WebView-backed transport, native passkeys, and app-owned UI.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -62,7 +62,7 @@
62
62
  "vitest": "4.1.0"
63
63
  },
64
64
  "dependencies": {
65
- "@moon-x/core": "0.27.0"
65
+ "@moon-x/core": "0.27.2"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@expo/config-plugins": ">=10.0.0",