mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-05 18:47:52 +01:00
update jslib and construct policy service
This commit is contained in:
parent
71ed24b83b
commit
05a03acd3f
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit e1d42f95d9c662bd4ffc8221bc4e5b9b96a095a6
|
Subproject commit 3d2e2cb1741be8b7b2916574f62f7ba2193c7123
|
@ -25,6 +25,7 @@ import { NodeApiService } from 'jslib/services/nodeApi.service';
|
|||||||
import { NodeCryptoFunctionService } from 'jslib/services/nodeCryptoFunction.service';
|
import { NodeCryptoFunctionService } from 'jslib/services/nodeCryptoFunction.service';
|
||||||
import { NoopMessagingService } from 'jslib/services/noopMessaging.service';
|
import { NoopMessagingService } from 'jslib/services/noopMessaging.service';
|
||||||
import { PasswordGenerationService } from 'jslib/services/passwordGeneration.service';
|
import { PasswordGenerationService } from 'jslib/services/passwordGeneration.service';
|
||||||
|
import { PolicyService } from 'jslib/services/policy.service';
|
||||||
import { SearchService } from 'jslib/services/search.service';
|
import { SearchService } from 'jslib/services/search.service';
|
||||||
import { SettingsService } from 'jslib/services/settings.service';
|
import { SettingsService } from 'jslib/services/settings.service';
|
||||||
import { SyncService } from 'jslib/services/sync.service';
|
import { SyncService } from 'jslib/services/sync.service';
|
||||||
@ -68,6 +69,7 @@ export class Main {
|
|||||||
searchService: SearchService;
|
searchService: SearchService;
|
||||||
cryptoFunctionService: NodeCryptoFunctionService;
|
cryptoFunctionService: NodeCryptoFunctionService;
|
||||||
authService: AuthService;
|
authService: AuthService;
|
||||||
|
policyService: PolicyService;
|
||||||
program: Program;
|
program: Program;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -109,12 +111,14 @@ export class Main {
|
|||||||
this.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService,
|
this.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService,
|
||||||
this.i18nService);
|
this.i18nService);
|
||||||
this.searchService = new SearchService(this.cipherService, this.platformUtilsService);
|
this.searchService = new SearchService(this.cipherService, this.platformUtilsService);
|
||||||
|
this.policyService = new PolicyService(this.userService, this.storageService);
|
||||||
this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService,
|
this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService,
|
||||||
this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService,
|
this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService,
|
||||||
this.searchService, this.userService, null);
|
this.searchService, this.userService, null);
|
||||||
this.syncService = new SyncService(this.userService, this.apiService, this.settingsService,
|
this.syncService = new SyncService(this.userService, this.apiService, this.settingsService,
|
||||||
this.folderService, this.cipherService, this.cryptoService, this.collectionService,
|
this.folderService, this.cipherService, this.cryptoService, this.collectionService,
|
||||||
this.storageService, this.messagingService, async (expired: boolean) => await this.logout());
|
this.storageService, this.messagingService, this.policyService,
|
||||||
|
async (expired: boolean) => await this.logout());
|
||||||
this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService);
|
this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService);
|
||||||
this.totpService = new TotpService(this.storageService, this.cryptoFunctionService);
|
this.totpService = new TotpService(this.storageService, this.cryptoFunctionService);
|
||||||
this.importService = new ImportService(this.cipherService, this.folderService, this.apiService,
|
this.importService = new ImportService(this.cipherService, this.folderService, this.apiService,
|
||||||
@ -142,6 +146,7 @@ export class Main {
|
|||||||
this.cipherService.clear(userId),
|
this.cipherService.clear(userId),
|
||||||
this.folderService.clear(userId),
|
this.folderService.clear(userId),
|
||||||
this.collectionService.clear(userId),
|
this.collectionService.clear(userId),
|
||||||
|
this.policyService.clear(userId),
|
||||||
this.passwordGenerationService.clear(),
|
this.passwordGenerationService.clear(),
|
||||||
]);
|
]);
|
||||||
process.env.BW_SESSION = null;
|
process.env.BW_SESSION = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user