amqp-as-promised
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -87,3 +87,3 @@ // Generated by CoffeeScript 1.11.1 | ||
}; | ||
content = info.contentType === 'application/json' ? JSON.parse(data.content) : data.content; | ||
content = info.contentType === 'application/json' ? JSON.parse(data.content) : info.contentType === 'text/plain' ? data.content.toString() : data.content; | ||
ack = { | ||
@@ -90,0 +90,0 @@ acknowledge: function() { |
@@ -23,2 +23,6 @@ // Generated by CoffeeScript 1.11.1 | ||
} | ||
if (typeof message === 'string') { | ||
message = new Buffer(message); | ||
options.contentType = 'text/plain'; | ||
} | ||
if (typeof message === 'object' && !(message instanceof Buffer)) { | ||
@@ -25,0 +29,0 @@ message = new Buffer(JSON.stringify(message)); |
{ | ||
"name": "amqp-as-promised", | ||
"description": "A promise-based AMQP API build on node-amqp", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
107225
764