Compare commits

...

3 Commits

Author SHA1 Message Date
Jacob Karlsson 5a3444baea 1.0.1 2024-06-01 18:34:41 +02:00
Jacob Karlsson 7efeaeaadc Don't throw on missing tangle root 2024-06-01 18:34:32 +02:00
Jacob Karlsson 0d8152e359 Add description to readme 2024-05-05 16:56:11 +02:00
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# pzp-dict
Dictionary data structure over append-only logs with pruning
## Installation
```js

View File

@ -358,6 +358,7 @@ function initDict(peer, config) {
// prettier-ignore
if (!tangle) return cb(null, 0)
if (!tangle.root) return cb(null, 0)
// prettier-ignore
if (!MsgV4.isMoot(tangle.root)) return cb(Error(`Tangle "${tangleID}" is not a moot`))
const domain = tangle.root.metadata.domain

View File

@ -1,6 +1,6 @@
{
"name": "pzp-dict",
"version": "1.0.0",
"version": "1.0.1",
"description": "Dictionary data structure over append-only logs with pruning",
"author": "Andre Staltz <contact@staltz.com>",
"license": "MIT",
@ -32,7 +32,7 @@
"bs58": "^5.0.0",
"c8": "7",
"pzp-caps": "^1.0.0",
"pzp-db": "^1.0.1",
"pzp-db": "^1.0.3",
"pzp-keypair": "^1.0.0",
"rimraf": "^4.4.0",
"secret-handshake-ext": "0.0.10",