hyperdrive-profiler 2.2.1 → 2.2.2

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -263,7 +263,7 @@ async function printRemotesInfo (drive, remotes) {
263
263
  }
264
264
 
265
265
  console.info(' - Blobs core:')
266
- for (const p of drive.blobs.core.replicator.peers) {
266
+ for (const p of drive.blobs?.core?.replicator.peers || []) {
267
267
  const pubKey = IdEnc.normalize(p.remotePublicKey)
268
268
  if (remotes.includes(pubKey)) {
269
269
  const done = p.remoteLength > 0 && p.remoteContiguousLength === p.remoteLength
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperdrive-profiler",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Profile hyperdrive download performance",
5
5
  "main": "index.js",
6
6
  "scripts": {