hyperdrive-profiler 1.0.0 → 2.0.0

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 (3) hide show
  1. package/README.md +2 -0
  2. package/bin.js +1 -1
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Profile [Hyperdrive](https://github.com/holepunchto/hyperdrive) download performance.
4
4
 
5
+ The current major (v2) works for Hyperdrive v13. The old major (v1) works for Hyperdrive v11.
6
+
5
7
  ## Install
6
8
 
7
9
  ```
package/bin.js CHANGED
@@ -97,7 +97,7 @@ const cmd = command('hyperdrive-profiler',
97
97
 
98
98
  console.info(`Downloading drive version ${drive.version}`)
99
99
  console.log(`\n${'-'.repeat(50)}\n`)
100
- await drive.download('/', { wait: true })
100
+ await drive.download('/', { wait: true }).done()
101
101
 
102
102
  secTillFullyDownload = (performance.now() - tStart) / 1000
103
103
  cancelling = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperdrive-profiler",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "Profile hyperdrive download performance",
5
5
  "main": "bin.js",
6
6
  "scripts": {
@@ -35,13 +35,13 @@
35
35
  "bare-fs": "^4.0.1",
36
36
  "bare-os": "^3.4.0",
37
37
  "bare-path": "^3.0.0",
38
- "corestore": "^6.18.4",
38
+ "corestore": "^7.0.0",
39
39
  "graceful-goodbye": "^1.3.3",
40
40
  "hypercore-id-encoding": "^1.3.0",
41
- "hypercore-stats": "^1.3.1",
42
- "hyperdrive": "^11.13.4",
41
+ "hypercore-stats": "^2.1.0",
42
+ "hyperdrive": "^13.0.1",
43
43
  "hyperswarm": "^4.8.4",
44
- "hyperswarm-stats": "^1.1.4",
44
+ "hyperswarm-stats": "^1.2.0",
45
45
  "paparam": "^1.8.0",
46
46
  "tiny-byte-size": "^1.1.0"
47
47
  },