diff --git a/packages/node_modules/pouchdb-wrappers/lib/index.js b/packages/node_modules/pouchdb-wrappers/lib/index.js index f4e5a34a..dd52871d 100644 --- a/packages/node_modules/pouchdb-wrappers/lib/index.js +++ b/packages/node_modules/pouchdb-wrappers/lib/index.js @@ -181,7 +181,7 @@ wrapperBuilders.bulkDocs = function (db, bulkDocs, handlers) { return function (docs, options, callback) { var args = parseBaseArgs(db, this, options, callback); //support the deprecated signature. - if ('new_edits' in docs) { + if (typeof(docs) === 'object' && 'new_edits' in docs) { args.options.new_edits = docs.new_edits; } args.docs = docs.docs || docs;