@unicitylabs/sphere-sdk 0.7.0 → 0.7.1-dev.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
@@ -1430,8 +1430,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
1430
1430
  reconnectIntervalMs: this.config.reconnectDelay,
1431
1431
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1432
1432
  // exponential backoff cap
1433
- pingIntervalMs: 15e3
1433
+ pingIntervalMs: 15e3,
1434
1434
  // 15 second keepalive pings (more aggressive to prevent drops)
1435
+ // Bump query timeout from the SDK default of 5s to 20s.
1436
+ // Real-world testnet observation (2026-05-01): under transient
1437
+ // relay overload, kind:30078 (nametag binding) queries take 5-7s
1438
+ // to return EVENT messages, even though the binding is on the
1439
+ // relay. The default 5s timeout fires before the event arrives,
1440
+ // resolveNametag returns null, and downstream sendDM throws
1441
+ // INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
1442
+ // gives the slow path enough headroom to complete while still
1443
+ // bailing reasonably fast on a truly broken relay.
1444
+ queryTimeoutMs: 2e4
1435
1445
  });
1436
1446
  this.nostrClient.addConnectionListener({
1437
1447
  onConnect: (url) => {
@@ -1609,8 +1619,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
1609
1619
  autoReconnect: this.config.autoReconnect,
1610
1620
  reconnectIntervalMs: this.config.reconnectDelay,
1611
1621
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
1612
- pingIntervalMs: 15e3
1622
+ pingIntervalMs: 15e3,
1613
1623
  // 15 second keepalive pings
1624
+ queryTimeoutMs: 2e4
1625
+ // see same option above for rationale
1614
1626
  });
1615
1627
  this.nostrClient.addConnectionListener({
1616
1628
  onConnect: (url) => {