Update browser build

This commit is contained in:
haad
2016-04-27 09:22:42 +02:00
parent 01bdf1a80f
commit 32ed6db936
2 changed files with 30 additions and 12 deletions

21
dist/orbitdb.min.js vendored
View File

@@ -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;
});
}
}, {

View File

@@ -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;
});
}
}, {