@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
package/dist/core/index.cjs
CHANGED
|
@@ -2181,9 +2181,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
try {
|
|
2183
2183
|
const pm = import_nostr_js_sdk.NIP17.unwrap(event, this.keyManager);
|
|
2184
|
-
|
|
2185
|
-
this.updateLastDmEventTimestamp(event.created_at);
|
|
2186
|
-
}
|
|
2184
|
+
this.updateLastDmEventTimestamp(Math.floor(Date.now() / 1e3));
|
|
2187
2185
|
logger.debug("Nostr", "Gift wrap unwrapped, sender:", pm.senderPubkey?.slice(0, 16), "kind:", pm.kind);
|
|
2188
2186
|
if (pm.senderPubkey === this.keyManager.getPublicKeyHex()) {
|
|
2189
2187
|
try {
|
|
@@ -2516,9 +2514,9 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2516
2514
|
if (subId) {
|
|
2517
2515
|
this.nostrClient?.unsubscribe(subId);
|
|
2518
2516
|
}
|
|
2519
|
-
logger.warn("Nostr", `queryEvents timed out after
|
|
2517
|
+
logger.warn("Nostr", `queryEvents timed out after 15s, returning ${events.length} event(s)`, { kinds: filterObj.kinds, limit: filterObj.limit });
|
|
2520
2518
|
resolve(events);
|
|
2521
|
-
},
|
|
2519
|
+
}, 15e3);
|
|
2522
2520
|
const subId = this.nostrClient.subscribe(filter, {
|
|
2523
2521
|
onEvent: (event) => {
|
|
2524
2522
|
events.push({
|
|
@@ -3256,9 +3254,7 @@ var MultiAddressTransportMux = class {
|
|
|
3256
3254
|
for (const entry of this.addresses.values()) {
|
|
3257
3255
|
try {
|
|
3258
3256
|
const pm = import_nostr_js_sdk2.NIP17.unwrap(event, entry.keyManager);
|
|
3259
|
-
|
|
3260
|
-
this.updateLastDmEventTimestamp(entry, event.created_at);
|
|
3261
|
-
}
|
|
3257
|
+
this.updateLastDmEventTimestamp(entry, Math.floor(Date.now() / 1e3));
|
|
3262
3258
|
logger.debug("Mux", `Gift wrap decrypted by address ${entry.index}, sender: ${pm.senderPubkey?.slice(0, 16)}`);
|
|
3263
3259
|
if (pm.senderPubkey === entry.nostrPubkey) {
|
|
3264
3260
|
try {
|