appium-uiautomator2-driver 6.7.12 → 6.7.14

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/driver.ts CHANGED
@@ -525,7 +525,7 @@ class AndroidUiautomator2Driver
525
525
  }
526
526
  }
527
527
 
528
- async performSessionPreExecSetup(): Promise<StringRecord|undefined> {
528
+ async performSessionPreExecSetup(): Promise<StringRecord | undefined> {
529
529
  const apiLevel = await this.adb.getApiLevel();
530
530
  if (apiLevel < MIN_SUPPORTED_API_LEVEL) {
531
531
  throw this.log.errorWithException('UIAutomator2 only supports Android 8.0 (Oreo) and above');
@@ -679,7 +679,7 @@ class AndroidUiautomator2Driver
679
679
 
680
680
  await this.performSessionExecution(capsWithSessionInfo);
681
681
 
682
- const deviceInfoPromise: Promise<Uiautomator2DeviceDetails|EmptyObject> = (async () => {
682
+ const deviceInfoPromise: Promise<Uiautomator2DeviceDetails | EmptyObject> = (async () => {
683
683
  try {
684
684
  return await this.getDeviceDetails();
685
685
  } catch (e) {
package/lib/helpers.ts CHANGED
@@ -1,4 +1,4 @@
1
- import path from 'path';
1
+ import path from 'node:path';
2
2
  import type {ADB} from 'appium-adb';
3
3
  import {fs, system} from 'appium/support';
4
4