Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

@ -394,7 +394,6 @@ 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) => {
@ -443,7 +442,6 @@ 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) => {
@ -512,7 +510,6 @@ 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
@ -640,7 +637,6 @@ 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) => {

View File

@ -1,6 +1,6 @@
{ {
"name": "pzp-set", "name": "pzp-set",
"version": "1.0.1", "version": "1.0.0",
"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-handshake-ext": "0.0.10",
"secret-stack": "~8.1.0", "secret-stack": "~8.1.0",
"secret-handshake-ext": "0.0.10",
"ssb-box": "^1.0.1", "ssb-box": "^1.0.1",
"typescript": "^5.1.3" "typescript": "^5.1.3"
}, },