@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.
@@ -24799,8 +24799,18 @@ var NostrTransportProvider = class _NostrTransportProvider {
24799
24799
  reconnectIntervalMs: this.config.reconnectDelay,
24800
24800
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
24801
24801
  // exponential backoff cap
24802
- pingIntervalMs: 15e3
24802
+ pingIntervalMs: 15e3,
24803
24803
  // 15 second keepalive pings (more aggressive to prevent drops)
24804
+ // Bump query timeout from the SDK default of 5s to 20s.
24805
+ // Real-world testnet observation (2026-05-01): under transient
24806
+ // relay overload, kind:30078 (nametag binding) queries take 5-7s
24807
+ // to return EVENT messages, even though the binding is on the
24808
+ // relay. The default 5s timeout fires before the event arrives,
24809
+ // resolveNametag returns null, and downstream sendDM throws
24810
+ // INVALID_RECIPIENT — causing every np.propose_deal to fail. 20s
24811
+ // gives the slow path enough headroom to complete while still
24812
+ // bailing reasonably fast on a truly broken relay.
24813
+ queryTimeoutMs: 2e4
24804
24814
  });
24805
24815
  this.nostrClient.addConnectionListener({
24806
24816
  onConnect: (url) => {
@@ -24978,8 +24988,10 @@ var NostrTransportProvider = class _NostrTransportProvider {
24978
24988
  autoReconnect: this.config.autoReconnect,
24979
24989
  reconnectIntervalMs: this.config.reconnectDelay,
24980
24990
  maxReconnectIntervalMs: this.config.reconnectDelay * 16,
24981
- pingIntervalMs: 15e3
24991
+ pingIntervalMs: 15e3,
24982
24992
  // 15 second keepalive pings
24993
+ queryTimeoutMs: 2e4
24994
+ // see same option above for rationale
24983
24995
  });
24984
24996
  this.nostrClient.addConnectionListener({
24985
24997
  onConnect: (url) => {