marionette-client
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -406,2 +406,11 @@ (function(module, ns) { | ||
/** | ||
* This function will be invoked whenever the remote throws a | ||
* ScriptTimeout error. The motivation is that client consumers | ||
* can use this opportunity to log some useful state for debugging. | ||
* | ||
* @type {Function} | ||
*/ | ||
onScriptTimeout: null, | ||
/** | ||
* Sends a command to the server. | ||
@@ -464,3 +473,8 @@ * Adds additional information like actor and session | ||
if (args[0]) { | ||
args[0] = new Exception(args[0]); | ||
var err = new Exception(args[0]); | ||
if (err.type === 'ScriptTimeout') { | ||
this.onScriptTimeout && this.onScriptTimeout(err); | ||
} | ||
args[0] = err; | ||
} | ||
@@ -467,0 +481,0 @@ |
{ | ||
"name": "marionette-client", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "lib/marionette/index", | ||
@@ -5,0 +5,0 @@ "description": "Marionette Javascript Client", |
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
92556
3027