Comparing version 0.1.2 to 0.1.3
@@ -52,3 +52,7 @@ var http = require("http"); | ||
} else if (response.statusCode == 422) { | ||
throw("Incorrect or Malformed JSON message: "+JSON.parse(body["Message"])) | ||
var body = ""; | ||
response.on("data", function (i) { body += i; }) | ||
response.on("end", function () { | ||
throw("Incorrect or Malformed JSON message: "+JSON.parse(body)["Message"]); | ||
}) | ||
} else if (response.statusCode == 200) { | ||
@@ -55,0 +59,0 @@ return true; |
{ "name" : "postmark" | ||
, "description" : "Ridiculously Simple Email Sending From Node.js using http://www.postmarkapp.com" | ||
, "tags" : ["email", "utility"] | ||
, "version" : "0.1.2" | ||
, "version" : "0.1.3" | ||
, "author" : "Chris Williams <voodootikigod@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "main" : "./lib/postmark" |
253
15323
9