Comparing version 0.0.7 to 0.0.8
@@ -137,3 +137,10 @@ var http = require("http"); | ||
res.on('end', function() { | ||
if (cb){ cb(JSON.parse(strip(data)).value); } | ||
if (cb) { | ||
try { | ||
cb(JSON.parse(strip(data)).value); | ||
} catch(err) { | ||
cb(data); | ||
throw err; | ||
} | ||
} | ||
}); | ||
@@ -156,3 +163,10 @@ }); | ||
res.on('end', function() { | ||
if (cb){ cb(JSON.parse(strip(data)).value); } | ||
if (cb) { | ||
try { | ||
cb(JSON.parse(strip(data)).value); | ||
} catch(err) { | ||
cb(data); | ||
throw err; | ||
} | ||
} | ||
}); | ||
@@ -159,0 +173,0 @@ }); |
{ "name" : "wd" | ||
, "description" : "WebDriver/Selenium 2 node.js client" | ||
, "tags" : ["web", "automation", "browser", "javascript"] | ||
, "version" : "0.0.7" | ||
, "version" : "0.0.8" | ||
, "author" : "Adam Christian <adam.christian@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "repository" : |
8530
244