nostr-tools
Advanced tools
Comparing version 2.10.2 to 2.10.3
@@ -88,2 +88,4 @@ "use strict"; | ||
[result.reply, result.root].forEach((ref) => { | ||
if (!ref) | ||
return; | ||
let idx = result.mentions.indexOf(ref); | ||
@@ -100,3 +102,3 @@ if (idx !== -1) { | ||
author.relays.forEach((url) => { | ||
if (ref?.relays?.indexOf(url) === -1) | ||
if (ref.relays?.indexOf(url) === -1) | ||
ref.relays.push(url); | ||
@@ -103,0 +105,0 @@ }); |
@@ -64,2 +64,4 @@ // nip10.ts | ||
[result.reply, result.root].forEach((ref) => { | ||
if (!ref) | ||
return; | ||
let idx = result.mentions.indexOf(ref); | ||
@@ -76,3 +78,3 @@ if (idx !== -1) { | ||
author.relays.forEach((url) => { | ||
if (ref?.relays?.indexOf(url) === -1) | ||
if (ref.relays?.indexOf(url) === -1) | ||
ref.relays.push(url); | ||
@@ -79,0 +81,0 @@ }); |
{ | ||
"type": "module", | ||
"name": "nostr-tools", | ||
"version": "2.10.2", | ||
"version": "2.10.3", | ||
"description": "Tools for making a Nostr client.", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3365918
30002