mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
fixing error from cleanup
This commit is contained in:
parent
d64353e238
commit
1a8e99aeae
@ -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",
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user