@wdio/appium-service 8.0.8 → 8.0.10
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/build/launcher.d.ts.map +1 -1
- package/build/launcher.js +11 -7
- package/package.json +6 -5
package/build/launcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGlE,OAAO,KAAK,EAAyB,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAYzE,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,QAAQ,CAAC,eAAe;IAQ/D,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO,CAAC;IATpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAe;IAC9C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;IAC7C,OAAO,CAAC,QAAQ,CAAC,CAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,CAA+C;gBAGpD,QAAQ,EAAE,mBAAmB,EAC7B,aAAa,EAAE,YAAY,CAAC,kBAAkB,EAC9C,OAAO,CAAC,gCAAoB;YAS1B,WAAW;IAqBzB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA6BlB,SAAS;IAkBf,UAAU;IAOV,OAAO,CAAC,YAAY;YA2BN,kBAAkB;mBAeX,iBAAiB;CAezC"}
|
package/build/launcher.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import fsp from 'node:fs/promises';
|
|
3
|
+
import url from 'node:url';
|
|
3
4
|
import path from 'node:path';
|
|
4
5
|
import { spawn } from 'node:child_process';
|
|
5
6
|
import { promisify } from 'node:util';
|
|
6
7
|
import logger from '@wdio/logger';
|
|
7
8
|
import { resolve } from 'import-meta-resolve';
|
|
8
9
|
import { isCloudCapability } from '@wdio/config';
|
|
10
|
+
import { SevereServiceError } from 'webdriverio';
|
|
9
11
|
import { getFilePath, formatCliArgs } from './utils.js';
|
|
10
12
|
const log = logger('@wdio/appium-service');
|
|
11
13
|
const DEFAULT_LOG_FILENAME = 'wdio-appium.log';
|
|
@@ -41,7 +43,7 @@ export default class AppiumLauncher {
|
|
|
41
43
|
*/
|
|
42
44
|
if (!command) {
|
|
43
45
|
command = 'node';
|
|
44
|
-
this._appiumCliArgs.
|
|
46
|
+
this._appiumCliArgs.unshift(await AppiumLauncher._getAppiumCommand());
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Windows needs to be started through `cmd` and the command needs to be an arg
|
|
@@ -128,14 +130,16 @@ export default class AppiumLauncher {
|
|
|
128
130
|
}
|
|
129
131
|
static async _getAppiumCommand(command = 'appium') {
|
|
130
132
|
try {
|
|
131
|
-
|
|
133
|
+
const entryPath = await resolve(command, import.meta.url);
|
|
134
|
+
return url.fileURLToPath(entryPath);
|
|
132
135
|
}
|
|
133
136
|
catch (err) {
|
|
134
|
-
|
|
135
|
-
'If you use globally installed appium please add\n' +
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
const errorMessage = ('Appium is not installed locally. Please install via e.g. `npm i --save-dev appium`.\n' +
|
|
138
|
+
'If you use globally installed appium please add: `appium: { command: \'appium\' }`\n' +
|
|
139
|
+
'to your wdio.conf.js!\n\n' +
|
|
140
|
+
err.stack);
|
|
141
|
+
log.error(errorMessage);
|
|
142
|
+
throw new SevereServiceError(errorMessage);
|
|
139
143
|
}
|
|
140
144
|
}
|
|
141
145
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/appium-service",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.10",
|
|
4
4
|
"description": "A WebdriverIO service to start & stop Appium Server",
|
|
5
5
|
"author": "Morten Bjerg Gregersen <morten@mogee.dk>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-appium-service",
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
"types": "./build/index.d.ts",
|
|
31
31
|
"typeScriptVersion": "3.8.3",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@wdio/config": "8.0.
|
|
33
|
+
"@wdio/config": "8.0.10",
|
|
34
34
|
"@wdio/logger": "8.0.0",
|
|
35
|
-
"@wdio/types": "8.0.
|
|
35
|
+
"@wdio/types": "8.0.10",
|
|
36
36
|
"import-meta-resolve": "^2.1.0",
|
|
37
|
-
"param-case": "^3.0.4"
|
|
37
|
+
"param-case": "^3.0.4",
|
|
38
|
+
"webdriverio": "8.0.2"
|
|
38
39
|
},
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "1c350a14144ecc5f1ebc598c385bae6aa80739c3"
|
|
43
44
|
}
|