Comparing version 0.4.1 to 0.4.2
@@ -117,3 +117,3 @@ /*! | ||
function documentPOST(me, method, data, document, opts) { | ||
function documentPOST(me, method, data, document) { | ||
var r = req | ||
@@ -123,6 +123,4 @@ .post(me.address + method) | ||
.field(data); | ||
if (document) { | ||
console.log('Attach', opts); | ||
r.attach('document', document, opts); | ||
} | ||
if (document) | ||
r.attach('document', document); | ||
return Q.resolve(r | ||
@@ -129,0 +127,0 @@ ).fail(function (err) { |
{ | ||
"name": "tdoc-api", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Wrapper around tDoc REST-ful APIs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
18773
358