appium-uiauto
Advanced tools
Comparing version 1.6.12 to 1.6.13
@@ -103,2 +103,3 @@ // The Command Proxy relays UIAuto message to and from Appium. It is also the | ||
var hasResult = typeof data.result !== "undefined"; | ||
var result; | ||
if (hasResult && !curCommand) { | ||
@@ -126,3 +127,8 @@ logger.debug("Got a result when we weren't expecting one! Ignoring it"); | ||
// this is the last row, unpack and respond to command | ||
var result = JSON.parse(resultBuffer); | ||
try { | ||
result = JSON.parse(resultBuffer); | ||
} catch (err) { | ||
logger.error("Couldn't parse result buffer: " + err); | ||
result = UNKNOWN_ERROR; | ||
} | ||
resultBuffer = ""; | ||
@@ -136,3 +142,9 @@ curCommand.cb(result); | ||
} else { | ||
curCommand.cb(JSON.parse(data.result)); | ||
try { | ||
result = JSON.parse(data.result); | ||
} catch (err) { | ||
logger.error("Couldn't parse result buffer: " + err); | ||
result = UNKNOWN_ERROR; | ||
} | ||
curCommand.cb(result); | ||
curCommand = null; | ||
@@ -139,0 +151,0 @@ } |
{ | ||
"name": "appium-uiauto", | ||
"version": "1.6.12", | ||
"version": "1.6.13", | ||
"description": "appium uiauto ios driver", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13514899
3514