fix service dep

This commit is contained in:
rr-bw 2024-05-01 17:20:23 -07:00
parent dec5a561e2
commit ef479398ab
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import {
CLIENT_TYPE, CLIENT_TYPE,
} from "@bitwarden/angular/services/injection-tokens"; } from "@bitwarden/angular/services/injection-tokens";
import { JslibServicesModule } from "@bitwarden/angular/services/jslib-services.module"; import { JslibServicesModule } from "@bitwarden/angular/services/jslib-services.module";
import { AuthRequestServiceAbstraction } from "@bitwarden/auth/common"; import { AuthRequestServiceAbstraction, PinServiceAbstraction } from "@bitwarden/auth/common";
import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service"; import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service";
import { NotificationsService } from "@bitwarden/common/abstractions/notifications.service"; import { NotificationsService } from "@bitwarden/common/abstractions/notifications.service";
import { SearchService as SearchServiceAbstraction } from "@bitwarden/common/abstractions/search.service"; import { SearchService as SearchServiceAbstraction } from "@bitwarden/common/abstractions/search.service";
@ -225,6 +225,7 @@ const safeProviders: SafeProvider[] = [
safeProvider({ safeProvider({
provide: CryptoService, provide: CryptoService,
useFactory: ( useFactory: (
pinService: PinServiceAbstraction,
masterPasswordService: InternalMasterPasswordServiceAbstraction, masterPasswordService: InternalMasterPasswordServiceAbstraction,
keyGenerationService: KeyGenerationService, keyGenerationService: KeyGenerationService,
cryptoFunctionService: CryptoFunctionService, cryptoFunctionService: CryptoFunctionService,
@ -238,6 +239,7 @@ const safeProviders: SafeProvider[] = [
kdfConfigService: KdfConfigService, kdfConfigService: KdfConfigService,
) => { ) => {
const cryptoService = new BrowserCryptoService( const cryptoService = new BrowserCryptoService(
pinService,
masterPasswordService, masterPasswordService,
keyGenerationService, keyGenerationService,
cryptoFunctionService, cryptoFunctionService,
@ -254,6 +256,7 @@ const safeProviders: SafeProvider[] = [
return cryptoService; return cryptoService;
}, },
deps: [ deps: [
PinServiceAbstraction,
InternalMasterPasswordServiceAbstraction, InternalMasterPasswordServiceAbstraction,
KeyGenerationService, KeyGenerationService,
CryptoFunctionService, CryptoFunctionService,