Skip to content

Commit

Permalink
fix(docutils): update dependency typescript to v5.4.2 (#19876)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mykola Mokhnach <mokhnach@gmail.com>
  • Loading branch information
renovate[bot] and mykola-mokhnach committed Mar 13, 2024
1 parent e7df882 commit 2448fa0
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 184 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"through2": "4.0.2",
"ts-node": "10.9.2",
"tsd": "0.30.7",
"typescript": "5.2.2",
"typescript": "5.4.2",
"validate.js": "0.13.1",
"webdriverio": "8.33.1",
"ws": "8.16.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/appium/lib/appium.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ class AppiumDriver extends DriverCore {
// is to do the proxy and retrieve the result internally so it can be passed to the plugin
// in case it calls 'await next()'. This requires that the driver have defined
// 'proxyCommand' and not just 'proxyReqRes'.
if (!dstSession.proxyCommand) {
if (!dstSession?.proxyCommand) {
throw new NoDriverProxyCommandError();
}
return await dstSession.proxyCommand(
Expand All @@ -1106,7 +1106,7 @@ class AppiumDriver extends DriverCore {
}

// here we know that we are executing a session command, and have a valid session driver
return await dstSession.executeCommand(cmd, ...args);
return await (/** @type {any} */ (dstSession)).executeCommand(cmd, ...args);
};

// now take our default behavior, wrap it with any number of plugin behaviors, and run it
Expand Down
Loading

0 comments on commit 2448fa0

Please sign in to comment.