@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
|
@@ -2559,9 +2559,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2559
2559
|
}
|
|
2560
2560
|
try {
|
|
2561
2561
|
const pm = import_nostr_js_sdk.NIP17.unwrap(event, this.keyManager);
|
|
2562
|
-
|
|
2563
|
-
this.updateLastDmEventTimestamp(event.created_at);
|
|
2564
|
-
}
|
|
2562
|
+
this.updateLastDmEventTimestamp(Math.floor(Date.now() / 1e3));
|
|
2565
2563
|
logger.debug("Nostr", "Gift wrap unwrapped, sender:", pm.senderPubkey?.slice(0, 16), "kind:", pm.kind);
|
|
2566
2564
|
if (pm.senderPubkey === this.keyManager.getPublicKeyHex()) {
|
|
2567
2565
|
try {
|
|
@@ -2894,9 +2892,9 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2894
2892
|
if (subId) {
|
|
2895
2893
|
this.nostrClient?.unsubscribe(subId);
|
|
2896
2894
|
}
|
|
2897
|
-
logger.warn("Nostr", `queryEvents timed out after
|
|
2895
|
+
logger.warn("Nostr", `queryEvents timed out after 15s, returning ${events.length} event(s)`, { kinds: filterObj.kinds, limit: filterObj.limit });
|
|
2898
2896
|
resolve(events);
|
|
2899
|
-
},
|
|
2897
|
+
}, 15e3);
|
|
2900
2898
|
const subId = this.nostrClient.subscribe(filter, {
|
|
2901
2899
|
onEvent: (event) => {
|
|
2902
2900
|
events.push({
|