Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Scripts/build-webdriveragent.mjs
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -78,7 +77,10 @@
}

if (isMainModule) {
asyncify(buildWebDriverAgent);
buildWebDriverAgent().catch((e) => {

Check warning on line 80 in Scripts/build-webdriveragent.mjs

View workflow job for this annotation

GitHub Actions / node_test (22)

Prefer await to then()/catch()/finally()

Check warning on line 80 in Scripts/build-webdriveragent.mjs

View workflow job for this annotation

GitHub Actions / node_test (24)

Prefer await to then()/catch()/finally()

Check warning on line 80 in Scripts/build-webdriveragent.mjs

View workflow job for this annotation

GitHub Actions / node_test (20)

Prefer await to then()/catch()/finally()

Check warning on line 80 in Scripts/build-webdriveragent.mjs

View workflow job for this annotation

GitHub Actions / node_test (20)

Prefer await to then()/catch()/finally()

Check warning on line 80 in Scripts/build-webdriveragent.mjs

View workflow job for this annotation

GitHub Actions / node_test (24)

Prefer await to then()/catch()/finally()

Check warning on line 80 in Scripts/build-webdriveragent.mjs

View workflow job for this annotation

GitHub Actions / node_test (22)

Prefer await to then()/catch()/finally()
LOG.error(e);
process.exit(1);
});
}

export default buildWebDriverAgent;
Expand Down
6 changes: 4 additions & 2 deletions Scripts/fetch-prebuilt-wda.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
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';
Expand Down Expand Up @@ -62,7 +61,10 @@
}

if (isMainModule) {
asyncify(fetchPrebuiltWebDriverAgentAssets);
fetchPrebuiltWebDriverAgentAssets().catch((e) => {

Check warning on line 64 in Scripts/fetch-prebuilt-wda.mjs

View workflow job for this annotation

GitHub Actions / node_test (22)

Prefer await to then()/catch()/finally()

Check warning on line 64 in Scripts/fetch-prebuilt-wda.mjs

View workflow job for this annotation

GitHub Actions / node_test (24)

Prefer await to then()/catch()/finally()

Check warning on line 64 in Scripts/fetch-prebuilt-wda.mjs

View workflow job for this annotation

GitHub Actions / node_test (20)

Prefer await to then()/catch()/finally()

Check warning on line 64 in Scripts/fetch-prebuilt-wda.mjs

View workflow job for this annotation

GitHub Actions / node_test (20)

Prefer await to then()/catch()/finally()

Check warning on line 64 in Scripts/fetch-prebuilt-wda.mjs

View workflow job for this annotation

GitHub Actions / node_test (24)

Prefer await to then()/catch()/finally()

Check warning on line 64 in Scripts/fetch-prebuilt-wda.mjs

View workflow job for this annotation

GitHub Actions / node_test (22)

Prefer await to then()/catch()/finally()
log.error(e);
process.exit(1);
});
}

export default fetchPrebuiltWebDriverAgentAssets;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading