kappa-core
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -18,3 +18,3 @@ var hypercore = require('hypercore') | ||
Kappa.prototype.use = function (name, view) { | ||
this._indexes[name] = indexer({ | ||
var idx = indexer({ | ||
log: this._logs, | ||
@@ -24,3 +24,5 @@ maxBatch: 10, | ||
}) | ||
this._indexes[name] = idx | ||
this.api[name] = {} | ||
this.api[name].ready = idx.ready.bind(idx) | ||
for (var key in view.api) { | ||
@@ -36,3 +38,3 @@ this.api[name][key] = view.api[key].bind(this._indexes[name], this) | ||
Kappa.prototype.replicate = function (opts) { | ||
return this._logs.createReplicationStream(opts) | ||
return this._logs.replicate(opts) | ||
} |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/kappa-core.git" |
10235
58