@depay/widgets 12.14.2 → 12.14.5

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.
@@ -28513,6 +28513,7 @@ class StaticJsonRpcBatchProvider$1 extends ethers.providers.JsonRpcProvider {
28513
28513
  method: 'POST',
28514
28514
  body: JSON.stringify(batch),
28515
28515
  headers: { 'Content-Type': 'application/json' },
28516
+ signal: AbortSignal.timeout(10000) // 10-second timeout
28516
28517
  }
28517
28518
  ).then((response)=>{
28518
28519
  if(response.ok) {
@@ -28667,7 +28668,8 @@ const setProviderEndpoints$2 = async (blockchain, endpoints, detectFastest = tru
28667
28668
  },
28668
28669
  referrer: "",
28669
28670
  referrerPolicy: "no-referrer",
28670
- body: JSON.stringify({ method: 'net_version', id: 1, jsonrpc: '2.0' })
28671
+ body: JSON.stringify({ method: 'net_version', id: 1, jsonrpc: '2.0' }),
28672
+ signal: AbortSignal.timeout(10000) // 10-second timeout
28671
28673
  });
28672
28674
  } catch (e) {}
28673
28675
  if(!_optionalChain$4$2([response, 'optionalAccess', _ => _.ok])) { return resolve(999) }
@@ -28770,6 +28772,7 @@ class StaticJsonRpcSequentialProvider extends Connection {
28770
28772
  method: 'POST',
28771
28773
  body: JSON.stringify(batch),
28772
28774
  headers: { 'Content-Type': 'application/json' },
28775
+ signal: AbortSignal.timeout(10000) // 10-second timeout
28773
28776
  }
28774
28777
  ).then((response)=>{
28775
28778
  if(response.ok) {
@@ -28914,7 +28917,8 @@ const setProviderEndpoints$1 = async (blockchain, endpoints, detectFastest = tru
28914
28917
  },
28915
28918
  referrer: "",
28916
28919
  referrerPolicy: "no-referrer",
28917
- body: JSON.stringify({ method: 'getIdentity', id: 1, jsonrpc: '2.0' })
28920
+ body: JSON.stringify({ method: 'getIdentity', id: 1, jsonrpc: '2.0' }),
28921
+ signal: AbortSignal.timeout(10000) // 10-second timeout
28918
28922
  });
28919
28923
  } catch (e) {}
28920
28924
  if(!_optionalChain$2$2([response, 'optionalAccess', _ => _.ok])) { return resolve(999) }