augnitoambientsdk
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -1616,7 +1616,10 @@ /****************************************************************************** | ||
onErrorCallback(errorMessage) { | ||
var error = JSON.parse(errorMessage); | ||
if (error.Data === "Timeout exceeded") { | ||
this.stopListening(); | ||
Logger_2.error("Recording time limit exceeded", this._logTag); | ||
try { | ||
var error = JSON.parse(errorMessage); | ||
if (error.Data === "Timeout exceeded") { | ||
this.stopListening(); | ||
Logger_2.error("Recording time limit exceeded", this._logTag); | ||
} | ||
} | ||
catch (ex) { } | ||
if (this.onError) { | ||
@@ -1623,0 +1626,0 @@ this.onError(errorMessage); |
{ | ||
"name": "augnitoambientsdk", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Use this typescript SDK to integrate Augnito’s Ambient Tech within your EMR. To get access credentials or know more about how Augnito Ambient can benefit you, please visit our website and connect with our sales team: https://augnito.ai/", | ||
@@ -5,0 +5,0 @@ "main": "dist/augnitoambientsdk.js", |
@@ -189,7 +189,9 @@ import AmbientConfig from "./config/AmbientConfig"; | ||
private onErrorCallback(errorMessage: string): void { | ||
var error = JSON.parse(errorMessage); | ||
if (error.Data === "Timeout exceeded") { | ||
this.stopListening(); | ||
Logger.error("Recording time limit exceeded", this._logTag); | ||
} | ||
try { | ||
var error = JSON.parse(errorMessage); | ||
if (error.Data === "Timeout exceeded") { | ||
this.stopListening(); | ||
Logger.error("Recording time limit exceeded", this._logTag); | ||
} | ||
} catch (ex) {} | ||
if (this.onError) { | ||
@@ -196,0 +198,0 @@ this.onError(errorMessage); |
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
221552
2289