hypercore 10.2.1 → 10.2.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.
package/lib/bitfield.js CHANGED
@@ -42,11 +42,7 @@ module.exports = class Bitfield {
42
42
  this.resumed = !!(buf && buf.byteLength >= 4)
43
43
 
44
44
  const all = this.resumed
45
- ? new Uint32Array(
46
- buf.buffer,
47
- buf.byteOffset,
48
- Math.floor(buf.byteLength / 4)
49
- )
45
+ ? new Uint32Array(buf.buffer, buf.byteOffset, Math.floor(buf.byteLength / 4))
50
46
  : new Uint32Array(1024)
51
47
 
52
48
  for (let i = 0; i < all.length; i += 1024) {
package/lib/core.js CHANGED
@@ -451,7 +451,7 @@ module.exports = class Core {
451
451
  const op = {
452
452
  batch,
453
453
  bitfield: value && { drop: false, start: proof.block.index, length: 1 },
454
- value: value,
454
+ value,
455
455
  from
456
456
  }
457
457
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.2.1",
3
+ "version": "10.2.2",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -44,7 +44,7 @@
44
44
  "hypercore-crypto": "^3.2.1",
45
45
  "is-options": "^1.0.1",
46
46
  "protomux": "^3.4.0",
47
- "random-access-file": "^3.2.2",
47
+ "random-access-file": "^4.0.0",
48
48
  "random-array-iterator": "^1.0.0",
49
49
  "safety-catch": "^1.0.1",
50
50
  "sodium-universal": "^3.0.4",
@@ -54,10 +54,10 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "brittle": "^3.0.0",
57
- "hyperswarm": "^4.1.1",
58
- "random-access-memory": "^5.0.1",
59
- "random-access-memory-overlay": "^2.0.0",
60
- "standard": "^16.0.3",
57
+ "hyperswarm": "^4.3.0",
58
+ "random-access-memory": "^6.0.0",
59
+ "random-access-memory-overlay": "^3.0.0",
60
+ "standard": "^17.0.0",
61
61
  "tmp-promise": "^3.0.2"
62
62
  }
63
63
  }