Merge pull request #717 from hazae41/patch-2

Expose modules in OrbitDB object
This commit is contained in:
shamb0t 2019-11-07 15:17:40 +00:00 committed by GitHub
commit 1bd9989420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,20 @@ class OrbitDB {
AccessControllers = options.AccessControllers || AccessControllers
}
static get Pubsub () { return Pubsub }
static get Cache () { return Cache }
static get Keystore () { return Keystore }
static get Identities () { return Identities }
static get AccessControllers () { return AccessControllers }
static get Storage () { return Storage }
static get OrbitDBAddress () { return OrbitDBAddress }
static get EventStore () { return EventStore }
static get FeedStore () { return FeedStore }
static get KeyValueStore () { return KeyValueStore }
static get CounterStore () { return CounterStore }
static get DocumentStore () { return DocumentStore }
get cache () { return this.caches[this.directory].cache }
static async createInstance (ipfs, options = {}) {