From 1419b81ddc827881ef6ca81b5fd8a55dd75a25b8 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 29 Mar 2021 09:47:39 -0500 Subject: [PATCH] Add new fileUploadService dependency (#267) * Add new fileUploadService dependency * Update jslib --- jslib | 2 +- src/bw.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/jslib b/jslib index f80e89465f..5c961ce847 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit f80e89465ffc004705d2941301c0ffb6bfd71d1a +Subproject commit 5c961ce847dd9ba13784ff9ba268753aae3a8c2e diff --git a/src/bw.ts b/src/bw.ts index 2bc22b3f5f..4005a8ae12 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -22,6 +22,7 @@ import { ContainerService } from 'jslib/services/container.service'; import { CryptoService } from 'jslib/services/crypto.service'; import { EnvironmentService } from 'jslib/services/environment.service'; import { ExportService } from 'jslib/services/export.service'; +import { FileUploadService } from 'jslib/services/fileUpload.service'; import { FolderService } from 'jslib/services/folder.service'; import { ImportService } from 'jslib/services/import.service'; import { LowdbStorageService } from 'jslib/services/lowdbStorage.service'; @@ -83,6 +84,7 @@ export class Main { sendProgram: SendProgram; logService: ConsoleLogService; sendService: SendService; + fileUploadService: FileUploadService; constructor() { let p = null; @@ -122,16 +124,17 @@ export class Main { this.userService = new UserService(this.tokenService, this.storageService); this.containerService = new ContainerService(this.cryptoService); this.settingsService = new SettingsService(this.userService, this.storageService); + this.fileUploadService = new FileUploadService(this.logService, this.apiService); this.cipherService = new CipherService(this.cryptoService, this.userService, this.settingsService, - this.apiService, this.storageService, this.i18nService, null); + this.apiService, this.fileUploadService, this.storageService, this.i18nService, null); this.folderService = new FolderService(this.cryptoService, this.userService, this.apiService, this.storageService, this.i18nService, this.cipherService); this.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService, this.i18nService); this.searchService = new SearchService(this.cipherService, this.logService); 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.sendService = new SendService(this.cryptoService, this.userService, this.apiService, this.fileUploadService, + 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);