mirror of https://codeberg.org/pzp/pzp-set.git
Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
|
e044ffb4c3 | |
|
7de192bc32 | |
|
1ea3f32753 |
|
@ -394,6 +394,7 @@ function initSet(peer, config) {
|
||||||
|
|
||||||
const data = { add: [value], del: [], supersedes }
|
const data = { add: [value], del: [], supersedes }
|
||||||
peer.db.feed.publish(
|
peer.db.feed.publish(
|
||||||
|
// @ts-ignore
|
||||||
{ account: loadedAccountID, domain, data },
|
{ account: loadedAccountID, domain, data },
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
(err, rec) => {
|
(err, rec) => {
|
||||||
|
@ -442,6 +443,7 @@ function initSet(peer, config) {
|
||||||
|
|
||||||
const data = { add: [], del: [value], supersedes }
|
const data = { add: [], del: [value], supersedes }
|
||||||
peer.db.feed.publish(
|
peer.db.feed.publish(
|
||||||
|
// @ts-ignore
|
||||||
{ account: loadedAccountID, domain, data },
|
{ account: loadedAccountID, domain, data },
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
(err, rec) => {
|
(err, rec) => {
|
||||||
|
@ -510,6 +512,7 @@ function initSet(peer, config) {
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
if (!tangle) return cb(null, 0)
|
if (!tangle) return cb(null, 0)
|
||||||
|
if (!tangle.root) return cb(null, 0)
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
if (!MsgV4.isMoot(tangle.root)) return cb(Error(`Tangle "${tangleID}" is not a moot`))
|
if (!MsgV4.isMoot(tangle.root)) return cb(Error(`Tangle "${tangleID}" is not a moot`))
|
||||||
const domain = tangle.root.metadata.domain
|
const domain = tangle.root.metadata.domain
|
||||||
|
@ -637,6 +640,7 @@ function initSet(peer, config) {
|
||||||
|
|
||||||
const data = { add: [...currentSet], del: [], supersedes }
|
const data = { add: [...currentSet], del: [], supersedes }
|
||||||
peer.db.feed.publish(
|
peer.db.feed.publish(
|
||||||
|
// @ts-ignore
|
||||||
{ account: loadedAccountID, domain, data },
|
{ account: loadedAccountID, domain, data },
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
(err, rec) => {
|
(err, rec) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "pzp-set",
|
"name": "pzp-set",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Set data structure over append-only logs with pruning",
|
"description": "Set data structure over append-only logs with pruning",
|
||||||
"author": "Andre Staltz <contact@staltz.com>",
|
"author": "Andre Staltz <contact@staltz.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -32,12 +32,12 @@
|
||||||
"@types/pull-stream": "^3.6.7",
|
"@types/pull-stream": "^3.6.7",
|
||||||
"bs58": "^5.0.0",
|
"bs58": "^5.0.0",
|
||||||
"c8": "7",
|
"c8": "7",
|
||||||
"pzp-db": "^1.0.1",
|
|
||||||
"pzp-caps": "^1.0.0",
|
"pzp-caps": "^1.0.0",
|
||||||
|
"pzp-db": "^1.0.3",
|
||||||
"pzp-keypair": "^1.0.0",
|
"pzp-keypair": "^1.0.0",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"secret-stack": "~8.1.0",
|
|
||||||
"secret-handshake-ext": "0.0.10",
|
"secret-handshake-ext": "0.0.10",
|
||||||
|
"secret-stack": "~8.1.0",
|
||||||
"ssb-box": "^1.0.1",
|
"ssb-box": "^1.0.1",
|
||||||
"typescript": "^5.1.3"
|
"typescript": "^5.1.3"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue