diff --git a/index.js b/index.js index 9407572..886813b 100755 --- a/index.js +++ b/index.js @@ -72,7 +72,9 @@ couchmagick.get({ stream.on('error', couchmagick.error); stream.on('data', function(data) { - couchmagick.info(data.response); + if (data.response) { + couchmagick.info(data.response); + } }); stream.on('end', next); } diff --git a/package.json b/package.json index 7677c20..8b75123 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "couchmagick", - "version": "1.7.0", + "version": "1.8.0", "description": "Run ImageMagicks `convert` on CouchDB documents.", "main": "index.js", "preferGlobal": true, @@ -28,7 +28,7 @@ "homepage": "https://github.com/jo/couchmagick", "dependencies": { "async": "~0.2.9", - "couchmagick-listen": "~1.5.6", + "couchmagick-listen": "~1.6.0", "couch-daemon": "~1.2.1", "nano": "~4.2.1" },