Skip to content

Commit a3467a1

Browse files
authored
Merge pull request #427 from LambdaTest/stage
Stage
2 parents 71867b0 + 615b284 commit a3467a1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.1.41",
3+
"version": "4.1.42-beta.0",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/lib/httpClient.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ export default class httpClient {
4545
baseURL: SMARTUI_CLIENT_API_URL,
4646
proxy: proxyUrl ? {
4747
host: proxyUrl.hostname,
48-
port: proxyUrl.port ? Number(proxyUrl.port) : 80
48+
port: proxyUrl.port ? Number(proxyUrl.port) : 80,
49+
...(proxyUrl.username && proxyUrl.password ? {
50+
auth: {
51+
username: proxyUrl.username,
52+
password: proxyUrl.password
53+
}
54+
} : {})
4955
} : false
5056
};
5157

0 commit comments

Comments
 (0)