Skip to content

Commit

Permalink
Fixed dependency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gbubemismith committed Jan 20, 2025
1 parent 49cd6e0 commit c1cfcfc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion apps/browser/src/background/main.background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,11 @@ export default class MainBackground {
this.authService,
this.accountService,
);
this.totpService = new TotpService(this.cryptoFunctionService, this.logService);
this.totpService = new TotpService(
this.cryptoFunctionService,
this.logService,
this.sdkService,
);

this.scriptInjectorService = new BrowserScriptInjectorService(
this.domainSettingsService,
Expand Down
3 changes: 2 additions & 1 deletion apps/browser/src/popup/services/services.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import { LogService } from "@bitwarden/common/platform/abstractions/log.service"
import { MessagingService as MessagingServiceAbstraction } from "@bitwarden/common/platform/abstractions/messaging.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import { SdkClientFactory } from "@bitwarden/common/platform/abstractions/sdk/sdk-client-factory";
import { SdkService } from "@bitwarden/common/platform/abstractions/sdk/sdk.service";
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
import {
AbstractStorageService,
Expand Down Expand Up @@ -266,7 +267,7 @@ const safeProviders: SafeProvider[] = [
safeProvider({
provide: TotpServiceAbstraction,
useClass: TotpService,
deps: [CryptoFunctionService, LogService],
deps: [CryptoFunctionService, LogService, SdkService],
}),
safeProvider({
provide: OffscreenDocumentService,
Expand Down
6 changes: 5 additions & 1 deletion apps/cli/src/service-container/service-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,11 @@ export class ServiceContainer {
this.stateProvider,
);

this.totpService = new TotpService(this.cryptoFunctionService, this.logService);
this.totpService = new TotpService(
this.cryptoFunctionService,
this.logService,
this.sdkService,
);

this.importApiService = new ImportApiService(this.apiService);

Expand Down
2 changes: 1 addition & 1 deletion libs/angular/src/services/jslib-services.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ const safeProviders: SafeProvider[] = [
safeProvider({
provide: TotpServiceAbstraction,
useClass: TotpService,
deps: [CryptoFunctionServiceAbstraction, LogService],
deps: [CryptoFunctionServiceAbstraction, LogService, SdkService],
}),
safeProvider({
provide: TokenServiceAbstraction,
Expand Down

0 comments on commit c1cfcfc

Please sign in to comment.