mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
move audit service to background service
This commit is contained in:
@@ -3,6 +3,7 @@ import { CipherType } from 'jslib/enums';
|
|||||||
import {
|
import {
|
||||||
ApiService,
|
ApiService,
|
||||||
AppIdService,
|
AppIdService,
|
||||||
|
AuditService,
|
||||||
CipherService,
|
CipherService,
|
||||||
CollectionService,
|
CollectionService,
|
||||||
ConstantsService,
|
ConstantsService,
|
||||||
@@ -23,6 +24,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
ApiService as ApiServiceAbstraction,
|
ApiService as ApiServiceAbstraction,
|
||||||
AppIdService as AppIdServiceAbstraction,
|
AppIdService as AppIdServiceAbstraction,
|
||||||
|
AuditService as AuditServiceAbstraction,
|
||||||
CipherService as CipherServiceAbstraction,
|
CipherService as CipherServiceAbstraction,
|
||||||
CollectionService as CollectionServiceAbstraction,
|
CollectionService as CollectionServiceAbstraction,
|
||||||
CryptoService as CryptoServiceAbstraction,
|
CryptoService as CryptoServiceAbstraction,
|
||||||
@@ -88,6 +90,7 @@ export default class MainBackground {
|
|||||||
totpService: TotpServiceAbstraction;
|
totpService: TotpServiceAbstraction;
|
||||||
autofillService: AutofillServiceAbstraction;
|
autofillService: AutofillServiceAbstraction;
|
||||||
containerService: ContainerService;
|
containerService: ContainerService;
|
||||||
|
auditService: AuditServiceAbstraction;
|
||||||
analytics: Analytics;
|
analytics: Analytics;
|
||||||
|
|
||||||
onUpdatedRan: boolean;
|
onUpdatedRan: boolean;
|
||||||
@@ -147,6 +150,7 @@ export default class MainBackground {
|
|||||||
this.autofillService = new AutofillService(this.cipherService, this.tokenService,
|
this.autofillService = new AutofillService(this.cipherService, this.tokenService,
|
||||||
this.totpService, this.utilsService, this.platformUtilsService);
|
this.totpService, this.utilsService, this.platformUtilsService);
|
||||||
this.containerService = new ContainerService(this.cryptoService, this.platformUtilsService);
|
this.containerService = new ContainerService(this.cryptoService, this.platformUtilsService);
|
||||||
|
this.auditService = new AuditService(this.cryptoService);
|
||||||
this.analytics = new Analytics(window, () => BrowserApi.gaFilter(), this.platformUtilsService,
|
this.analytics = new Analytics(window, () => BrowserApi.gaFilter(), this.platformUtilsService,
|
||||||
this.storageService, this.appIdService);
|
this.storageService, this.appIdService);
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { ConstantsService } from 'jslib/services/constants.service';
|
|||||||
|
|
||||||
import { ApiService } from 'jslib/abstractions/api.service';
|
import { ApiService } from 'jslib/abstractions/api.service';
|
||||||
import { AppIdService } from 'jslib/abstractions/appId.service';
|
import { AppIdService } from 'jslib/abstractions/appId.service';
|
||||||
|
import { AuditService } from 'jslib/abstractions/audit.service';
|
||||||
import { CipherService } from 'jslib/abstractions/cipher.service';
|
import { CipherService } from 'jslib/abstractions/cipher.service';
|
||||||
import { CollectionService } from 'jslib/abstractions/collection.service';
|
import { CollectionService } from 'jslib/abstractions/collection.service';
|
||||||
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||||
@@ -51,3 +52,4 @@ export const lockService = getBackgroundService<LockService>('lockService');
|
|||||||
export const totpService = getBackgroundService<TotpService>('totpService');
|
export const totpService = getBackgroundService<TotpService>('totpService');
|
||||||
export const environmentService = getBackgroundService<EnvironmentService>('environmentService');
|
export const environmentService = getBackgroundService<EnvironmentService>('environmentService');
|
||||||
export const collectionService = getBackgroundService<CollectionService>('collectionService');
|
export const collectionService = getBackgroundService<CollectionService>('collectionService');
|
||||||
|
export const auditService = getBackgroundService<CollectionService>('auditService');
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { PopupUtilsService } from './popupUtils.service';
|
|||||||
import { StateService } from './state.service';
|
import { StateService } from './state.service';
|
||||||
import { ValidationService } from './validation.service';
|
import { ValidationService } from './validation.service';
|
||||||
|
|
||||||
import { AuditService } from 'jslib/services/audit.service';
|
|
||||||
import { AuthService } from 'jslib/services/auth.service';
|
import { AuthService } from 'jslib/services/auth.service';
|
||||||
|
|
||||||
import BrowserMessagingService from '../../../services/browserMessaging.service';
|
import BrowserMessagingService from '../../../services/browserMessaging.service';
|
||||||
@@ -44,6 +43,6 @@ export default angular
|
|||||||
.factory('totpService', backgroundServices.totpService)
|
.factory('totpService', backgroundServices.totpService)
|
||||||
.factory('environmentService', backgroundServices.environmentService)
|
.factory('environmentService', backgroundServices.environmentService)
|
||||||
.factory('collectionService', backgroundServices.collectionService)
|
.factory('collectionService', backgroundServices.collectionService)
|
||||||
.factory('auditService', AuditService)
|
.factory('auditService', backgroundServices.auditService)
|
||||||
|
|
||||||
.name;
|
.name;
|
||||||
|
|||||||
Reference in New Issue
Block a user