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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "helia-coord",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "A JS library for helping IPFS peers coordinate, find a common interest, and stay connected around that interest.",
5
5
  "main": "./index.js",
6
6
  "type": "module",