1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

[PM-5214] [CLI] Add proxy support for file uploads (#7342)

* Add proxy support for file uploads

Instead of using node's native fetch we extend ApiService with NodeApiService to add support for proxies using `node-fetch`

* Fix constructors for FileUploadService in browser

* Fix dependency on ApiService within jslib-services.module

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2024-12-10 13:17:00 +01:00
committed by GitHub
parent b046c4965d
commit 161a358c49
5 changed files with 17 additions and 9 deletions

View File

@@ -447,7 +447,7 @@ const safeProviders: SafeProvider[] = [
safeProvider({
provide: FileUploadServiceAbstraction,
useClass: FileUploadService,
deps: [LogService],
deps: [LogService, ApiServiceAbstraction],
}),
safeProvider({
provide: CipherFileUploadServiceAbstraction,