diff --git a/Scripts/build-webdriveragent.mjs b/Scripts/build-webdriveragent.mjs index 3e1f6e2c7..7fd864385 100644 --- a/Scripts/build-webdriveragent.mjs +++ b/Scripts/build-webdriveragent.mjs @@ -1,6 +1,5 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; -import { asyncify } from 'asyncbox'; import { logger, fs } from '@appium/support'; import { exec } from 'teen_process'; import * as xcode from 'appium-xcode'; @@ -78,7 +77,10 @@ async function buildWebDriverAgent (xcodeVersion) { } if (isMainModule) { - asyncify(buildWebDriverAgent); + buildWebDriverAgent().catch((e) => { + LOG.error(e); + process.exit(1); + }); } export default buildWebDriverAgent; diff --git a/Scripts/fetch-prebuilt-wda.mjs b/Scripts/fetch-prebuilt-wda.mjs index 850e71757..0fa1df409 100644 --- a/Scripts/fetch-prebuilt-wda.mjs +++ b/Scripts/fetch-prebuilt-wda.mjs @@ -2,7 +2,6 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { readFileSync } from 'node:fs'; import axios from 'axios'; -import { asyncify } from 'asyncbox'; import { logger, fs, mkdirp, net } from '@appium/support'; import _ from 'lodash'; import B from 'bluebird'; @@ -62,7 +61,10 @@ async function fetchPrebuiltWebDriverAgentAssets () { } if (isMainModule) { - asyncify(fetchPrebuiltWebDriverAgentAssets); + fetchPrebuiltWebDriverAgentAssets().catch((e) => { + log.error(e); + process.exit(1); + }); } export default fetchPrebuiltWebDriverAgentAssets; diff --git a/package.json b/package.json index 76b4db496..069d515f1 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "appium-ios-device": "^3.0.0", "appium-ios-simulator": "^8.0.0", "async-lock": "^1.0.0", - "asyncbox": "^4.0.1", + "asyncbox": "^6.1.0", "axios": "^1.4.0", "bluebird": "^3.5.5", "lodash": "^4.17.11",