From 1a8e99aeaeb0da1ab7db2b0c778285edfc6b1f8c Mon Sep 17 00:00:00 2001 From: balzack Date: Mon, 3 Mar 2025 14:55:38 -0800 Subject: [PATCH] fixing error from cleanup --- app/sdk/package.json | 2 +- app/sdk/src/contact.ts | 4 +--- app/sdk/src/session.ts | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/sdk/package.json b/app/sdk/package.json index e05e4eb9..051ef920 100644 --- a/app/sdk/package.json +++ b/app/sdk/package.json @@ -1,6 +1,6 @@ { "name": "databag-client-sdk", - "version": "0.0.27", + "version": "0.0.28", "description": "an SDK for developing Databag applications", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/app/sdk/src/contact.ts b/app/sdk/src/contact.ts index 1fa3b58a..c070df3a 100644 --- a/app/sdk/src/contact.ts +++ b/app/sdk/src/contact.ts @@ -49,7 +49,6 @@ export class ContactModule implements Contact { private secure: boolean; private loaded: boolean; private emitter: EventEmitter; - private articleTypes: string[]; private channelTypes: string[]; private seal: { privateKey: string; publicKey: string } | null; private unsealAll: boolean; @@ -84,7 +83,7 @@ export class ContactModule implements Contact { // view of channels private channelEntries: Map>; - constructor(log: Logging, store: Store, crypto: Crypto | null, staging: Staging | null, guid: string, token: string, node: string, secure: boolean, articleTypes: string[], channelTypes: string[]) { + constructor(log: Logging, store: Store, crypto: Crypto | null, staging: Staging | null, guid: string, token: string, node: string, secure: boolean, channelTypes: string[]) { this.guid = guid; this.token = token; this.node = node; @@ -94,7 +93,6 @@ export class ContactModule implements Contact { this.crypto = crypto; this.staging = staging; this.emitter = new EventEmitter(); - this.articleTypes = articleTypes; this.channelTypes = channelTypes; this.unsealAll = false; this.loaded = false; diff --git a/app/sdk/src/session.ts b/app/sdk/src/session.ts index 50f80974..a0a2e5ea 100644 --- a/app/sdk/src/session.ts +++ b/app/sdk/src/session.ts @@ -42,7 +42,6 @@ export class SessionModule implements Session { private ring: RingModule; private connection: Connection; private channelTypes: string[]; - private articleTypes: string[]; constructor(store: Store, crypto: Crypto | null, log: Logging, staging: Staging | null, guid: string, token: string, node: string, secure: boolean, loginTimestamp: number, channelTypes: string[]) { log.info('new databag session'); @@ -56,14 +55,13 @@ export class SessionModule implements Session { this.node = node; this.secure = secure; this.channelTypes = channelTypes; - this.articleTypes = []; this.loginTimestamp = loginTimestamp; this.status = 'connecting'; this.emitter = new EventEmitter(); this.identity = new IdentityModule(log, this.store, guid, token, node, secure); this.settings = new SettingsModule(log, this.store, this.crypto, guid, token, node, secure); - this.contact = new ContactModule(log, this.store, this.crypto, this.staging, guid, token, node, secure, articleTypes, channelTypes); + this.contact = new ContactModule(log, this.store, this.crypto, this.staging, guid, token, node, secure, channelTypes); this.alias = new AliasModule(log, this.settings, this.store, guid, token, node, secure); this.attribute = new AttributeModule(log, this.settings, this.store, guid, token, node, secure); this.stream = new StreamModule(log, this.store, this.crypto, this.staging, guid, token, node, secure, channelTypes);