@@ -401,7 +401,7 @@ function isLocalStorageSupported() /*: boolean*/{
401401|}*/
402402var Globals = {
403403 namespace : "adjust-sdk" || 0 ,
404- version : "5.7.0 " || 0 ,
404+ version : "5.7.2 " || 0 ,
405405 env : "production"
406406} ;
407407/* harmony default export */ const globals = ( Globals ) ;
@@ -5291,7 +5291,9 @@ function _continue(result /*: HttpSuccessResponseT | HttpErrorResponseT*/, finis
52915291 return storage . getFirst ( queue_storeName ) . then ( function ( pending ) {
52925292 return pending ? storage . deleteItem ( queue_storeName , pending . timestamp ) : null ;
52935293 } ) . then ( function ( ) {
5294- finish ( ) ;
5294+ var _result$response ;
5295+ var isError = result . status === 'error' || ( ( _result$response = result . response ) === null || _result$response === void 0 ? void 0 : _result$response . error ) ;
5296+ finish ( isError ) ;
52955297 _current . running = false ;
52965298 return run ( {
52975299 wait : wait
@@ -5836,8 +5838,9 @@ function _handleSessionRequestFinish(e /*: string*/, result /*: HttpSuccessRespo
58365838 return ;
58375839 }
58385840 activity_state . updateInstalled ( ) ;
5839- publish ( 'sdk:installed' ) ;
5840- return persist ( ) ;
5841+ return persist ( ) . then ( function ( ) {
5842+ return publish ( 'sdk:installed' ) ;
5843+ } ) ;
58415844}
58425845
58435846/**
@@ -6572,6 +6575,7 @@ var _isStarted /*: boolean*/ = false;
65726575 * @private
65736576 */
65746577var _isInstalled /*: boolean*/ = false ;
6578+ var _installationCallbackId /*: string*/ = null ;
65756579
65766580/**
65776581 * Initiate the instance with parameters
@@ -6952,7 +6956,7 @@ function main_continue(activityState /*: ActivityStateMapT*/) /*: Promise<void>*
69526956function _handleSdkInstalled ( ) {
69536957 _isInstalled = true ;
69546958 flush ( ) ;
6955- unsubscribe ( 'sdk:installed' ) ;
6959+ unsubscribe ( _installationCallbackId ) ;
69566960}
69576961
69586962/**
@@ -7001,7 +7005,7 @@ function _start(options /*: InitOptionsT*/) /*: void*/{
70017005 }
70027006 sdk_config . set ( options ) ;
70037007 register ( ) ;
7004- subscribe ( 'sdk:installed' , _handleSdkInstalled ) ;
7008+ _installationCallbackId = subscribe ( 'sdk:installed' , _handleSdkInstalled ) ;
70057009 subscribe ( 'sdk:shutdown' , function ( ) {
70067010 return _shutdown ( true ) ;
70077011 } ) ;
0 commit comments