hypercore 11.18.3 → 11.18.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/bitfield.js +1 -1
  2. package/package.json +1 -1
package/lib/bitfield.js CHANGED
@@ -350,7 +350,7 @@ module.exports = class Bitfield {
350
350
  p = this._pages.set(i, new BitfieldPage(i, s))
351
351
  }
352
352
 
353
- const offset = p.index * BITS_PER_PAGE
353
+ const offset = i * BITS_PER_PAGE
354
354
  const last = Math.min(end - offset, BITS_PER_PAGE)
355
355
  const range = last - j
356
356
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.18.3",
3
+ "version": "11.18.4",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {