diff --git a/lib/index.js b/lib/index.js index ef30b36..1a29efb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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; diff --git a/lib/pouch-utils.js b/lib/pouch-utils.js index 196e7b1..c906677 100644 --- a/lib/pouch-utils.js +++ b/lib/pouch-utils.js @@ -1,6 +1,6 @@ 'use strict'; -var Promise = require('pouchdb/extras/promise'); +var Promise = require('pouchdb-promise'); /* istanbul ignore next */ exports.once = function (fun) { @@ -74,4 +74,4 @@ exports.toPromise = function (func) { }); }; -exports.inherits = require('inherits'); \ No newline at end of file +exports.inherits = require('inherits'); diff --git a/lib/writable-stream.js b/lib/writable-stream.js index 10c2f86..094ed74 100644 --- a/lib/writable-stream.js +++ b/lib/writable-stream.js @@ -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', diff --git a/package.json b/package.json index ee016cd..92f98e3 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/test/test.js b/test/test.js index c2892c9..0d0c228 100644 --- a/test/test.js +++ b/test/test.js @@ -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;