hypercore 11.18.1 → 11.18.2

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.
@@ -101,13 +101,11 @@ async function verify(storage, buffer, { referrer = null } = {}) {
101
101
  }
102
102
 
103
103
  async function proof(sender, { index, block = null } = {}) {
104
- const treeProof = await sender.proof({
104
+ const proof = await sender.proof({
105
105
  block: block ? { index, nodes: 0 } : null,
106
106
  upgrade: { start: 0, length: sender.length }
107
107
  })
108
108
 
109
- const proof = await treeProof.settle()
110
-
111
109
  if (block) proof.block.value = block
112
110
  proof.manifest = sender.core.header.manifest
113
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.18.1",
3
+ "version": "11.18.2",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {