1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[PM-686] [CLI] Add proxy support for file downloads (#7345)

* Add proxy support for file downloads

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

* Add comments to the DownloadCommand

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2024-12-10 15:36:53 +01:00
committed by GitHub
parent 99008267e6
commit 065725df7a
6 changed files with 35 additions and 8 deletions

View File

@@ -108,6 +108,7 @@ export class SendProgram extends BaseProgram {
this.serviceContainer.platformUtilsService,
this.serviceContainer.environmentService,
this.serviceContainer.sendApiService,
this.serviceContainer.apiService,
);
const response = await cmd.run(url, options);
this.processResponse(response);
@@ -190,6 +191,7 @@ export class SendProgram extends BaseProgram {
this.serviceContainer.environmentService,
this.serviceContainer.searchService,
this.serviceContainer.encryptService,
this.serviceContainer.apiService,
);
const response = await cmd.run(id, options);
this.processResponse(response);
@@ -249,6 +251,7 @@ export class SendProgram extends BaseProgram {
this.serviceContainer.environmentService,
this.serviceContainer.searchService,
this.serviceContainer.encryptService,
this.serviceContainer.apiService,
);
const cmd = new SendEditCommand(
this.serviceContainer.sendService,