From 2306e54cdfc92ca4ca03a2c8afcdd887131f74b4 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Thu, 8 Aug 2024 10:20:49 +0200 Subject: [PATCH] chore: Bump remote debugger --- lib/commands/context.js | 7 +++---- package.json | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/commands/context.js b/lib/commands/context.js index 54eede2a2..b91ef8c21 100644 --- a/lib/commands/context.js +++ b/lib/commands/context.js @@ -439,10 +439,9 @@ const helpers = { * @returns {Promise} */ async getNewRemoteDebugger() { - let socketPath; - if (!this.isRealDevice()) { - socketPath = await /** @type {import('../driver').Simulator} */ (this.device).getWebInspectorSocket(); - } + const socketPath = this.isRealDevice() + ? undefined + : (await /** @type {import('../driver').Simulator} */ (this.device).getWebInspectorSocket() ?? undefined); return createRemoteDebugger( { bundleId: this.opts.bundleId, diff --git a/package.json b/package.json index da3876be6..0f3ab8b70 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "appium-idb": "^1.6.13", "appium-ios-device": "^2.5.4", "appium-ios-simulator": "^6.1.7", - "appium-remote-debugger": "^12.0.1", + "appium-remote-debugger": "^12.0.3", "appium-webdriveragent": "^8.9.0", "appium-xcode": "^5.1.4", "async-lock": "^1.4.0",