hypercore-storage 0.0.35 → 0.0.36

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
@@ -585,7 +585,7 @@ class HypercoreStorage {
585
585
  assert(this.destroyed === false)
586
586
  const s = new HypercoreStorage(this.root, this.discoveryKey, this.corePointer, this.dataPointer, this.db.snapshot())
587
587
 
588
- for (const dep of this.dependencies) s.dependencies.push(dep)
588
+ for (const { data, length } of this.dependencies) s.dependencies.push({ data, length })
589
589
 
590
590
  return s
591
591
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",