@elevated-libs/cuss2
Advanced tools
Comparing version 1.3.82-RC-36 to 1.3.82-RC-37
@@ -161,2 +161,3 @@ import { LogMessage } from "./helper"; | ||
language?: string; | ||
availablePending: boolean; | ||
/** | ||
@@ -163,0 +164,0 @@ * @typeof {StateChange.current} state Get the current application state from the CUSS 2 platform |
@@ -151,2 +151,3 @@ "use strict"; | ||
this.onAccessibleModeChange = new rxjs_1.Subject(); | ||
this.availablePending = false; | ||
this.api = { | ||
@@ -520,3 +521,4 @@ // | ||
return; // initial value is an empty value | ||
if (this.state === AppState.AVAILABLE && message.statusCode == statusCodes_1.StatusCodes.ALAPPLICATIONREQUEST && message.currentApplicationState === AppState.AVAILABLE) { | ||
if (this.state === AppState.ACTIVE && this.availablePending && message.statusCode == statusCodes_1.StatusCodes.ALAPPLICATIONREQUEST) { | ||
this.availablePending = false; | ||
return; | ||
@@ -620,2 +622,3 @@ } | ||
this.stateChange.next(new stateChange_1.StateChange(this.state, AppState.AVAILABLE)); | ||
this.availablePending = true; | ||
return this.api.staterequest(AppState.AVAILABLE); | ||
@@ -622,0 +625,0 @@ } |
{ | ||
"name": "@elevated-libs/cuss2", | ||
"version": "1.3.82-RC-36", | ||
"version": "1.3.82-RC-37", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -254,2 +254,3 @@ | ||
language?: string; | ||
availablePending: boolean = false; | ||
@@ -289,3 +290,4 @@ /** | ||
if (this.state === AppState.AVAILABLE && message.statusCode == StatusCodes.ALAPPLICATIONREQUEST && message.currentApplicationState as any === AppState.AVAILABLE) { | ||
if (this.state === AppState.ACTIVE && this.availablePending && message.statusCode == StatusCodes.ALAPPLICATIONREQUEST) { | ||
this.availablePending = false; | ||
return; | ||
@@ -664,2 +666,3 @@ } | ||
this.stateChange.next(new StateChange(this.state, AppState.AVAILABLE)); | ||
this.availablePending = true; | ||
return this.api.staterequest(AppState.AVAILABLE); | ||
@@ -666,0 +669,0 @@ } else { |
Sorry, the diff of this file is not supported yet
3190676
20371