diff --git a/index.js b/index.js index 5bb302c..69b9495 100644 --- a/index.js +++ b/index.js @@ -135,6 +135,8 @@ module.exports = function push (db, source, options, callback) { } function compileDoc (done) { + if (typeof source === 'object') return getDoc(source, [], done) + compile(source, options, function (err, doc, attachments) { if (err) { return done(err) diff --git a/package.json b/package.json index 7f0de20..1c62f15 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "description": "Deploy CouchDB documents from directory, JSON or module.", "main": "index.js", "bin": "cli.js", + "version": "0.0.0-development", "scripts": { "pretest": "standard", "test": "tap --coverage test/*.js",