hypercore 10.0.0-alpha.40 → 10.0.0-alpha.41

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -195,10 +195,10 @@ module.exports = class Hypercore extends EventEmitter {
195
195
  // Only override the block encryption if its either not already set or if
196
196
  // the caller provided a different key.
197
197
  if (
198
- !this.encryption ||
199
- !b4a.equals(this.encryption.key, opts.encryptionKey)
198
+ !s.encryption ||
199
+ !b4a.equals(s.encryption.key, opts.encryptionKey)
200
200
  ) {
201
- this.encryption = new BlockEncryption(opts.encryptionKey, this.key)
201
+ s.encryption = new BlockEncryption(opts.encryptionKey, s.key)
202
202
  }
203
203
  }
204
204
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.0.0-alpha.40",
3
+ "version": "10.0.0-alpha.41",
4
4
  "description": "Hypercore 10",
5
5
  "main": "index.js",
6
6
  "scripts": {