Rename Client to OrbitDB
This commit is contained in:
parent
3c0907e0ed
commit
86a88019e6
12
dist/orbitdb.min.js
vendored
12
dist/orbitdb.min.js
vendored
@ -68,9 +68,9 @@ var OrbitDB =
|
||||
var KeyValueStore = __webpack_require__(171);
|
||||
var EventStore = __webpack_require__(173);
|
||||
|
||||
var Client = function () {
|
||||
function Client(ipfs, options) {
|
||||
(0, _classCallCheck3.default)(this, Client);
|
||||
var OrbitDB = function () {
|
||||
function OrbitDB(ipfs, options) {
|
||||
(0, _classCallCheck3.default)(this, OrbitDB);
|
||||
|
||||
this._ipfs = ipfs;
|
||||
this._pubsub = null;
|
||||
@ -82,7 +82,7 @@ var OrbitDB =
|
||||
this.counterStore = new CounterStore(this._ipfs, options);
|
||||
}
|
||||
|
||||
(0, _createClass3.default)(Client, [{
|
||||
(0, _createClass3.default)(OrbitDB, [{
|
||||
key: 'eventlog',
|
||||
value: function eventlog(dbname, subscribe) {
|
||||
var _this = this;
|
||||
@ -248,7 +248,7 @@ var OrbitDB =
|
||||
});
|
||||
}
|
||||
}]);
|
||||
return Client;
|
||||
return OrbitDB;
|
||||
}();
|
||||
|
||||
var OrbitClientFactory = function () {
|
||||
@ -261,7 +261,7 @@ var OrbitDB =
|
||||
value: function connect(host, port, username, password, ipfs, options) {
|
||||
var createClient = function createClient(ipfs) {
|
||||
return new _promise2.default(function (resolve, reject) {
|
||||
var client = new Client(ipfs, options);
|
||||
var client = new OrbitDB(ipfs, options);
|
||||
client._connect(host, port, username, password, options.allowOffline).then(function () {
|
||||
return resolve(client);
|
||||
}).catch(reject);
|
||||
|
@ -26524,9 +26524,9 @@
|
||||
var KeyValueStore = __webpack_require__(397);
|
||||
var EventStore = __webpack_require__(399);
|
||||
|
||||
var Client = function () {
|
||||
function Client(ipfs, options) {
|
||||
(0, _classCallCheck3.default)(this, Client);
|
||||
var OrbitDB = function () {
|
||||
function OrbitDB(ipfs, options) {
|
||||
(0, _classCallCheck3.default)(this, OrbitDB);
|
||||
|
||||
this._ipfs = ipfs;
|
||||
this._pubsub = null;
|
||||
@ -26538,7 +26538,7 @@
|
||||
this.counterStore = new CounterStore(this._ipfs, options);
|
||||
}
|
||||
|
||||
(0, _createClass3.default)(Client, [{
|
||||
(0, _createClass3.default)(OrbitDB, [{
|
||||
key: 'eventlog',
|
||||
value: function eventlog(dbname, subscribe) {
|
||||
var _this = this;
|
||||
@ -26704,7 +26704,7 @@
|
||||
});
|
||||
}
|
||||
}]);
|
||||
return Client;
|
||||
return OrbitDB;
|
||||
}();
|
||||
|
||||
var OrbitClientFactory = function () {
|
||||
@ -26717,7 +26717,7 @@
|
||||
value: function connect(host, port, username, password, ipfs, options) {
|
||||
var createClient = function createClient(ipfs) {
|
||||
return new _promise2.default(function (resolve, reject) {
|
||||
var client = new Client(ipfs, options);
|
||||
var client = new OrbitDB(ipfs, options);
|
||||
client._connect(host, port, username, password, options.allowOffline).then(function () {
|
||||
return resolve(client);
|
||||
}).catch(reject);
|
||||
|
@ -7,7 +7,7 @@ const CounterStore = require('./stores/counters/CounterStore');
|
||||
const KeyValueStore = require('./stores/kvstore/KeyValueStore');
|
||||
const EventStore = require('./stores/eventlog/EventStore');
|
||||
|
||||
class Client {
|
||||
class OrbitDB {
|
||||
constructor(ipfs, options) {
|
||||
this._ipfs = ipfs;
|
||||
this._pubsub = null;
|
||||
@ -130,7 +130,7 @@ class OrbitClientFactory {
|
||||
static connect(host, port, username, password, ipfs, options) {
|
||||
const createClient =(ipfs) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const client = new Client(ipfs, options);
|
||||
const client = new OrbitDB(ipfs, options);
|
||||
client._connect(host, port, username, password, options.allowOffline)
|
||||
.then(() => resolve(client))
|
||||
.catch(reject);
|
||||
|
Loading…
x
Reference in New Issue
Block a user