appium-webdriveragent 11.4.1 → 11.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/xcodebuild.ts CHANGED
@@ -461,18 +461,18 @@ export class XcodeBuild {
461
461
  }
462
462
 
463
463
  const proxyTimeout = noSessionProxy.timeout;
464
- noSessionProxy.timeout = 1000;
464
+ (noSessionProxy as any).timeout = 1000;
465
465
  try {
466
466
  currentStatus = (await noSessionProxy.command('/status', 'GET')) as StringRecord;
467
- if (currentStatus && currentStatus.ios && (currentStatus.ios as any).ip) {
468
- this.agentUrl = (currentStatus.ios as any).ip;
467
+ if (currentStatus?.ios?.ip) {
468
+ this.agentUrl = currentStatus.ios.ip as string;
469
469
  }
470
470
  this.log.debug(`WebDriverAgent information:`);
471
471
  this.log.debug(JSON.stringify(currentStatus, null, 2));
472
472
  } catch (err: any) {
473
473
  throw new Error(`Unable to connect to running WebDriverAgent: ${err.message}`);
474
474
  } finally {
475
- noSessionProxy.timeout = proxyTimeout;
475
+ (noSessionProxy as any).timeout = proxyTimeout;
476
476
  }
477
477
  });
478
478
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "11.4.1",
3
+ "version": "11.4.2",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",