Skip to content

Commit

Permalink
(#52) - update to pouchdb-promise
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Jul 28, 2016
1 parent d273096 commit 75c93a9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var utils = require('./pouch-utils');
var version = require('./version');
var ldj = require('ldjson-stream');
var through = require('through2').obj;
var pick = require('lodash/object/pick');
var pick = require('lodash.pick');
var toBufferStream = require('./to-buffer-stream');
var DEFAULT_BATCH_SIZE = 50;

Expand Down
4 changes: 2 additions & 2 deletions lib/pouch-utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var Promise = require('pouchdb/extras/promise');
var Promise = require('pouchdb-promise');

/* istanbul ignore next */
exports.once = function (fun) {
Expand Down Expand Up @@ -74,4 +74,4 @@ exports.toPromise = function (func) {
});
};

exports.inherits = require('inherits');
exports.inherits = require('inherits');
2 changes: 1 addition & 1 deletion lib/writable-stream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var utils = require('./pouch-utils');
var Promise = require('pouchdb/extras/promise');
var Promise = require('pouchdb-promise');
var ERROR_REV_CONFLICT = {
status: 409,
name: 'conflict',
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"argsarray": "0.0.1",
"inherits": "~2.0.1",
"ldjson-stream": "^1.2.1",
"lie": "^2.6.0",
"lodash": "^3.3.0",
"lodash.pick": "^4.0.0",
"pouchdb-promise": "^5.4.4",
"pouch-stream": "^0.4.0",
"through2": "^0.6.1"
"through2": "^2.0.0"
},
"devDependencies": {
"bluebird": "^1.0.7",
Expand All @@ -52,12 +52,13 @@
"http-server": "~0.8.5",
"istanbul": "^0.2.7",
"jshint": "^2.3.0",
"lie": "^3.1.0",
"memorystream": "^0.3.0",
"mkdirp": "^0.5.0",
"mocha": "~1.18",
"noms": "0.0.0",
"phantomjs": "^1.9.7-5",
"pouchdb": "^5.0.0",
"pouchdb-memory": "^1.0.0",
"random-document-stream": "0.0.0",
"request": "^2.36.0",
"sauce-connect-launcher": "^0.4.2",
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var Pouch = require('pouchdb');
var Pouch = require('pouchdb-memory');
//var Readable = require('stream').Readable;
//var Writable = require('stream').Writable;

Expand Down

1 comment on commit 75c93a9

@schamp
Copy link

@schamp schamp commented on 75c93a9 Jul 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick response!

Please sign in to comment.