Skip to content

Commit a9ada85

Browse files
fix typing
1 parent 2fd7e80 commit a9ada85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/winappdriver.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export class WinAppDriver {
165165
});
166166
await this.process.start();
167167

168+
/** @type {import('@appium/types').ProxyOptions} */
168169
const proxyOpts = {
169170
log: this.log,
170171
base: this.process.base,
@@ -230,11 +231,12 @@ export class WinAppDriver {
230231
`Cannot parse the provided WinAppDriver URL '${url}'. Original error: ${e.message}`
231232
);
232233
}
234+
/** @type {import('@appium/types').ProxyOptions} */
233235
const proxyOpts = {
234236
log: this.log,
235237
base: parsedUrl.pathname,
236238
server: parsedUrl.hostname,
237-
port: parsedUrl.port,
239+
port: parseInt(parsedUrl.port, 10),
238240
scheme: _.trimEnd(parsedUrl.protocol, ':'),
239241
};
240242
if (this.opts.reqBasePath) {

0 commit comments

Comments
 (0)