diff --git a/src/HashCacheItem.js b/src/HashCacheItem.js index 838091f..e202c20 100644 --- a/src/HashCacheItem.js +++ b/src/HashCacheItem.js @@ -1,6 +1,6 @@ 'use strict'; -const Encryption = require('orbit-common/lib/Encryption'); +// const Encryption = require('orbit-common/lib/Encryption'); class OrbitDBItem { constructor(operation, key, value, metaInfo) { @@ -11,6 +11,7 @@ class OrbitDBItem { } } +/* class HashCacheItem { constructor(operation, key, sequenceNumber, targetHash, metaInfo, next) { this.op = operation; @@ -62,9 +63,9 @@ class EncryptedHashCacheItem extends HashCacheItem { return item; } } - +*/ module.exports = { OrbitDBItem: OrbitDBItem, - HashCacheItem: HashCacheItem, - EncryptedHashCacheItem: EncryptedHashCacheItem + // HashCacheItem: HashCacheItem, + // EncryptedHashCacheItem: EncryptedHashCacheItem }; diff --git a/src/OrbitClient.js b/src/OrbitClient.js index c34649f..ae30acb 100644 --- a/src/OrbitClient.js +++ b/src/OrbitClient.js @@ -34,9 +34,8 @@ class OrbitClient { })); return { - delete: () => this._deleteChannel(hash, password), iterator: (options) => this._iterator(hash, password, options), - setMode: (mode) => this._setMode(hash, password, mode), + delete: () => this._deleteChannel(hash, password), add: (data) => this._add(hash, password, data), del: (key) => this._remove(hash, password, key), put: (key, data) => this._put(hash, password, key, data),