mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Update browser build
This commit is contained in:
21
dist/orbitdb.min.js
vendored
21
dist/orbitdb.min.js
vendored
@@ -10904,13 +10904,22 @@ var OrbitDB =
|
||||
}
|
||||
};
|
||||
|
||||
var opHash = void 0,
|
||||
logHash = void 0;
|
||||
return this._log.add(entry).then(function (op) {
|
||||
return Log.getIpfsHash(_this2._ipfs, _this2._log).then(function (hash) {
|
||||
_this2._lastWrite = hash;
|
||||
Cache.set(_this2.dbname, hash);
|
||||
_this2.events.emit('data', _this2.dbname, hash);
|
||||
return op.hash;
|
||||
});
|
||||
return opHash = op.hash;
|
||||
}).then(function () {
|
||||
return Log.getIpfsHash(_this2._ipfs, _this2._log);
|
||||
}).then(function (hash) {
|
||||
return logHash = hash;
|
||||
}).then(function () {
|
||||
return _this2._lastWrite = logHash;
|
||||
}).then(function () {
|
||||
return Cache.set(_this2.dbname, logHash);
|
||||
}).then(function () {
|
||||
return _this2.events.emit('data', _this2.dbname, logHash);
|
||||
}).then(function () {
|
||||
return opHash;
|
||||
});
|
||||
}
|
||||
}, {
|
||||
|
||||
@@ -35717,13 +35717,22 @@
|
||||
}
|
||||
};
|
||||
|
||||
var opHash = void 0,
|
||||
logHash = void 0;
|
||||
return this._log.add(entry).then(function (op) {
|
||||
return Log.getIpfsHash(_this2._ipfs, _this2._log).then(function (hash) {
|
||||
_this2._lastWrite = hash;
|
||||
Cache.set(_this2.dbname, hash);
|
||||
_this2.events.emit('data', _this2.dbname, hash);
|
||||
return op.hash;
|
||||
});
|
||||
return opHash = op.hash;
|
||||
}).then(function () {
|
||||
return Log.getIpfsHash(_this2._ipfs, _this2._log);
|
||||
}).then(function (hash) {
|
||||
return logHash = hash;
|
||||
}).then(function () {
|
||||
return _this2._lastWrite = logHash;
|
||||
}).then(function () {
|
||||
return Cache.set(_this2.dbname, logHash);
|
||||
}).then(function () {
|
||||
return _this2.events.emit('data', _this2.dbname, logHash);
|
||||
}).then(function () {
|
||||
return opHash;
|
||||
});
|
||||
}
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user