fixing error from cleanup

This commit is contained in:
balzack 2025-03-03 14:55:38 -08:00
parent d64353e238
commit 1a8e99aeae
3 changed files with 3 additions and 7 deletions

View File

@ -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",

View File

@ -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<string, Map<string, { item: ChannelItem; channel: Channel }>>;
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;

View File

@ -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);