1- import { faro } from '@grafana/faro-core' ;
2- import type { Meta } from '@grafana/faro-core' ;
1+ import { faro } from '@grafana/faro-core' ;
2+ import type { Meta } from '@grafana/faro-core' ;
33
4- import { throttle } from '../../../utils' ;
5- import { stringifyExternalJson } from '../../../utils/json' ;
4+ import { throttle } from '../../../utils' ;
5+ import { stringifyExternalJson } from '../../../utils/json' ;
66
7- import { isSampled } from './sampling' ;
8- import { STORAGE_UPDATE_DELAY } from './sessionConstants' ;
9- import { addSessionMetadataToNextSession , createUserSessionObject , getUserSessionUpdater } from './sessionManagerUtils' ;
10- import type { FaroUserSession } from './types' ;
7+ import { isSampled } from './sampling' ;
8+ import { STORAGE_UPDATE_DELAY } from './sessionConstants' ;
9+ import { addSessionMetadataToNextSession , createUserSessionObject , getUserSessionUpdater } from './sessionManagerUtils' ;
10+ import type { FaroUserSession } from './types' ;
1111
1212export class VolatileSessionsManager {
1313 private updateUserSession : ReturnType < typeof getUserSessionUpdater > ;
14- private static storedSession : string | null = null ;
14+ private static storedSession : string | null = null ;
1515 constructor ( ) {
1616 this . updateUserSession = getUserSessionUpdater ( {
1717 fetchUserSession : VolatileSessionsManager . fetchUserSession ,
@@ -26,7 +26,7 @@ export class VolatileSessionsManager {
2626 }
2727
2828 static async storeUserSession ( session : FaroUserSession ) : Promise < void > {
29- this . storedSession = stringifyExternalJson ( session )
29+ this . storedSession = stringifyExternalJson ( session ) ;
3030 }
3131
3232 static async fetchUserSession ( ) : Promise < FaroUserSession | null > {
0 commit comments