@unicitylabs/sphere-sdk 0.6.8 → 0.6.10-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/core/index.cjs +4 -8
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +4 -8
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +3 -5
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +3 -5
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +3 -5
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.js +3 -5
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +4 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2511,9 +2511,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2511
2511
|
}
|
|
2512
2512
|
try {
|
|
2513
2513
|
const pm = NIP17.unwrap(event, this.keyManager);
|
|
2514
|
-
|
|
2515
|
-
this.updateLastDmEventTimestamp(event.created_at);
|
|
2516
|
-
}
|
|
2514
|
+
this.updateLastDmEventTimestamp(Math.floor(Date.now() / 1e3));
|
|
2517
2515
|
logger.debug("Nostr", "Gift wrap unwrapped, sender:", pm.senderPubkey?.slice(0, 16), "kind:", pm.kind);
|
|
2518
2516
|
if (pm.senderPubkey === this.keyManager.getPublicKeyHex()) {
|
|
2519
2517
|
try {
|
|
@@ -2846,9 +2844,9 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2846
2844
|
if (subId) {
|
|
2847
2845
|
this.nostrClient?.unsubscribe(subId);
|
|
2848
2846
|
}
|
|
2849
|
-
logger.warn("Nostr", `queryEvents timed out after
|
|
2847
|
+
logger.warn("Nostr", `queryEvents timed out after 15s, returning ${events.length} event(s)`, { kinds: filterObj.kinds, limit: filterObj.limit });
|
|
2850
2848
|
resolve(events);
|
|
2851
|
-
},
|
|
2849
|
+
}, 15e3);
|
|
2852
2850
|
const subId = this.nostrClient.subscribe(filter, {
|
|
2853
2851
|
onEvent: (event) => {
|
|
2854
2852
|
events.push({
|