Skip to content

Commit

Permalink
fix db.name for backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Sep 12, 2016
1 parent ce46d63 commit af2cab3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ exports.plugin.dump = utils.toPromise(function (writableStream, opts, callback)

var PouchDB = self.constructor;

var output = new PouchDB(self.name, {
// db.name replaced db._db_name in pouch 6.0.0
/* istanbul ignore next */
var dbName = self.name || self._db_name;
var output = new PouchDB(dbName, {
adapter: 'writableStream'
});
output.setupStream(writableStream);
Expand Down

0 comments on commit af2cab3

Please sign in to comment.