hypercore 10.33.3 → 10.33.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.
Files changed (2) hide show
  1. package/lib/core.js +2 -2
  2. package/package.json +1 -1
package/lib/core.js CHANGED
@@ -224,7 +224,7 @@ module.exports = class Core {
224
224
  return false
225
225
  }
226
226
 
227
- async copyFrom (src, signature, { length = src.tree.length, additional = [] } = {}) {
227
+ async copyFrom (src, signature, { length = src.tree.length, fork = src.tree.fork, additional = [] } = {}) {
228
228
  await this._mutex.lock()
229
229
 
230
230
  try {
@@ -334,7 +334,7 @@ module.exports = class Core {
334
334
 
335
335
  await batch.commit()
336
336
 
337
- this.tree.fork = src.tree.fork
337
+ this.tree.fork = fork
338
338
 
339
339
  this.header.tree.length = this.tree.length
340
340
  this.header.tree.rootHash = this.tree.hash()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.33.3",
3
+ "version": "10.33.4",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {