helia-coord 1.5.3 → 1.5.4
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.
|
@@ -287,7 +287,7 @@ class PeerUseCases {
|
|
|
287
287
|
isFreshPeer (announceObj) {
|
|
288
288
|
try {
|
|
289
289
|
// Ignore announcements that do not have a broadcastedAt timestamp.
|
|
290
|
-
if (!announceObj.data.broadcastedAt) return false
|
|
290
|
+
if (!announceObj.data || !announceObj.data.broadcastedAt) return false
|
|
291
291
|
|
|
292
292
|
// Ignore items that are older than 10 minutes.
|
|
293
293
|
const now = new Date()
|
package/package.json
CHANGED