hypercore 10.2.0 → 10.2.1

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 +2 -2
package/index.js CHANGED
@@ -148,7 +148,7 @@ module.exports = class Hypercore extends EventEmitter {
148
148
  if (!noiseStream) throw BAD_ARGUMENT('Invalid stream')
149
149
 
150
150
  if (!noiseStream.userData) {
151
- const protocol = new Protomux(noiseStream)
151
+ const protocol = Protomux.from(noiseStream)
152
152
 
153
153
  if (opts.ondiscoverykey) {
154
154
  protocol.pair({ protocol: 'hypercore/alpha' }, opts.ondiscoverykey)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.2.0",
3
+ "version": "10.2.1",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -43,7 +43,7 @@
43
43
  "flat-tree": "^1.9.0",
44
44
  "hypercore-crypto": "^3.2.1",
45
45
  "is-options": "^1.0.1",
46
- "protomux": "^3.2.0",
46
+ "protomux": "^3.4.0",
47
47
  "random-access-file": "^3.2.2",
48
48
  "random-array-iterator": "^1.0.0",
49
49
  "safety-catch": "^1.0.1",