Comparing version 1.9.0 to 1.10.0
@@ -98,3 +98,3 @@ const codecs = require('codecs') | ||
async insertKey (key, child = null, overwrite = true, cas = null, node = null) { | ||
async insertKey (key, child, overwrite, cas, node) { | ||
let s = 0 | ||
@@ -484,2 +484,7 @@ let e = this.keys.length | ||
} | ||
async getHeader (opts) { | ||
const blk = await this._feed.get(0, opts) | ||
return blk && Header.decode(blk) | ||
} | ||
} | ||
@@ -486,0 +491,0 @@ |
{ | ||
"name": "hyperbee", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "An append-only Btree running on a Hypercore.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -410,1 +410,10 @@ const tape = require('tape') | ||
}) | ||
tape('get header out', async t => { | ||
const db = create() | ||
await db.ready() | ||
await db.put('hi', 'ho') | ||
const h = await db.getHeader() | ||
t.same(h.protocol, 'hyperbee') | ||
t.end() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117345
3465