hypercore 10.32.0 → 10.32.1

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/verifier.js +1 -1
  2. package/package.json +1 -1
package/lib/verifier.js CHANGED
@@ -177,7 +177,7 @@ module.exports = class Verifier {
177
177
  if (inp.hash && inp.hash !== 'blake2b') throw BAD_ARGUMENT('Only Blake2b hashes are supported')
178
178
 
179
179
  if (inp.prologue) {
180
- if (!(b4a.isBuffer(inp.prologue.hash) && inp.prologue.hash.byteLength === 32) || !inp.prologue.length) {
180
+ if (!(b4a.isBuffer(inp.prologue.hash) && inp.prologue.hash.byteLength === 32) || !(inp.prologue.length >= 0)) {
181
181
  throw BAD_ARGUMENT('Invalid prologue')
182
182
  }
183
183
  manifest.prologue = inp.prologue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.32.0",
3
+ "version": "10.32.1",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {