Skip to content

Commit ec42077

Browse files
authored
feat: Setup proxy for Box CLI with TS SDK (#577)
* ci: Setup proxy for box cli with ts sdk * Formatted code * Revert "Formatted code" This reverts commit 4c3a97d. * Removed new line * add spacing before the new function
1 parent 474890c commit ec42077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/box-command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ class BoxCommand extends Command {
10931093
oauth2Url: 'https://account.box.com/api/oauth2',
10941094
};
10951095
if (this.settings.enableProxy) {
1096-
// Not supported in TS SDK
1096+
client = client.withProxy(this.settings.proxy);
10971097
}
10981098
if (this.settings.apiRootURL) {
10991099
customBaseURL.baseUrl = this.settings.apiRootURL;

0 commit comments

Comments
 (0)