@unicitylabs/sphere-sdk 0.7.0 → 0.7.1-dev.1

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 CHANGED
@@ -1596,8 +1596,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
1596
1596
  reconnectIntervalMs: this.config.reconnectDelay,
1597
1597
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1598
1598
  // exponential backoff cap
1599
- pingIntervalMs: 15e3
1599
+ pingIntervalMs: 15e3,
1600
1600
  // 15 second keepalive pings (more aggressive to prevent drops)
1601
+ // Bump query timeout from the SDK default of 5s to 20s.
1602
+ // Real-world testnet observation (2026-05-01): under transient
1603
+ // relay overload, kind:30078 (nametag binding) queries take 5-7s
1604
+ // to return EVENT messages, even though the binding is on the
1605
+ // relay. The default 5s timeout fires before the event arrives,
1606
+ // resolveNametag returns null, and downstream sendDM throws
1607
+ // INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
1608
+ // gives the slow path enough headroom to complete while still
1609
+ // bailing reasonably fast on a truly broken relay.
1610
+ queryTimeoutMs: 2e4
1601
1611
  });
1602
1612
  this.nostrClient.addConnectionListener({
1603
1613
  onConnect: (url) => {
@@ -1775,8 +1785,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
1775
1785
  autoReconnect: this.config.autoReconnect,
1776
1786
  reconnectIntervalMs: this.config.reconnectDelay,
1777
1787
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1778
- pingIntervalMs: 15e3
1788
+ pingIntervalMs: 15e3,
1779
1789
  // 15 second keepalive pings
1790
+ queryTimeoutMs: 2e4
1791
+ // see same option above for rationale
1780
1792
  });
1781
1793
  this.nostrClient.addConnectionListener({
1782
1794
  onConnect: (url) => {