From 2afe4ecd61279d6de643adc15d93aa0ec07b76b2 Mon Sep 17 00:00:00 2001 From: Hinton Date: Mon, 23 Nov 2020 21:56:40 +0100 Subject: [PATCH] Update jslib --- jslib | 2 +- src/bw.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index 85faee21ee..0a73b6fca8 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 85faee21eec7602eecc3a5368be4c8fb7bab1e67 +Subproject commit 0a73b6fca83b33573cf6ea0a41899ead34c23c46 diff --git a/src/bw.ts b/src/bw.ts index e0e48538fb..988912392e 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -30,6 +30,7 @@ import { NoopMessagingService } from 'jslib/services/noopMessaging.service'; import { PasswordGenerationService } from 'jslib/services/passwordGeneration.service'; import { PolicyService } from 'jslib/services/policy.service'; import { SearchService } from 'jslib/services/search.service'; +import { SendService } from 'jslib/services/send.service'; import { SettingsService } from 'jslib/services/settings.service'; import { SyncService } from 'jslib/services/sync.service'; import { TokenService } from 'jslib/services/token.service'; @@ -76,6 +77,7 @@ export class Main { policyService: PolicyService; program: Program; logService: ConsoleLogService; + sendService: SendService; constructor() { let p = null; @@ -102,7 +104,7 @@ export class Main { this.storageService = new LowdbStorageService(this.logService, null, p, true); this.secureStorageService = new NodeEnvSecureStorageService(this.storageService, () => this.cryptoService); this.cryptoService = new CryptoService(this.storageService, this.secureStorageService, - this.cryptoFunctionService); + this.cryptoFunctionService, this.platformUtilsService); this.appIdService = new AppIdService(this.storageService); this.tokenService = new TokenService(this.storageService); this.messagingService = new NoopMessagingService(); @@ -122,12 +124,14 @@ export class Main { this.i18nService); this.searchService = new SearchService(this.cipherService); this.policyService = new PolicyService(this.userService, this.storageService); + this.sendService = new SendService(this.cryptoService, this.userService, this.apiService, this.storageService, + this.i18nService, this.cryptoFunctionService); this.vaultTimeoutService = new VaultTimeoutService(this.cipherService, this.folderService, this.collectionService, this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService, this.searchService, this.userService, this.tokenService, null, null); this.syncService = new SyncService(this.userService, this.apiService, this.settingsService, this.folderService, this.cipherService, this.cryptoService, this.collectionService, - this.storageService, this.messagingService, this.policyService, + this.storageService, this.messagingService, this.policyService, this.sendService, async (expired: boolean) => await this.logout()); this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService, this.policyService);