@wdio/appium-service 8.0.13 → 8.1.0

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/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export default class AppiumService {
3
3
  }
4
4
  export declare const launcher: typeof AppiumLauncher;
5
5
  export * from './types.js';
6
- import type { AppiumServiceConfig } from './types';
6
+ import type { AppiumServiceConfig } from './types.js';
7
7
  declare global {
8
8
  namespace WebdriverIO {
9
9
  interface ServiceOption extends AppiumServiceConfig {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,eAAe,CAAA;AAE1C,MAAM,CAAC,OAAO,OAAO,aAAa;CAAG;AACrC,eAAO,MAAM,QAAQ,uBAAiB,CAAA;AAEtC,cAAc,YAAY,CAAA;AAC1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,mBAAmB;SAAG;KACzD;CACJ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,eAAe,CAAA;AAE1C,MAAM,CAAC,OAAO,OAAO,aAAa;CAAG;AACrC,eAAO,MAAM,QAAQ,uBAAiB,CAAA;AAEtC,cAAc,YAAY,CAAA;AAC1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,mBAAmB;SAAG;KACzD;CACJ"}
@@ -1,5 +1,5 @@
1
1
  import type { Services, Capabilities, Options } from '@wdio/types';
2
- import type { AppiumServiceConfig } from './types';
2
+ import type { AppiumServiceConfig } from './types.js';
3
3
  export default class AppiumLauncher implements Services.ServiceInstance {
4
4
  private _options;
5
5
  private _capabilities;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGlE,OAAO,KAAK,EAAyB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAY5E,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
@@ -95,7 +95,7 @@ export default class AppiumLauncher {
95
95
  }
96
96
  _startAppium(command, args, callback) {
97
97
  log.debug(`Will spawn Appium process: ${command} ${args.join(' ')}`);
98
- let process = spawn(command, args, { stdio: ['ignore', 'pipe', 'pipe'] });
98
+ const process = spawn(command, args, { stdio: ['ignore', 'pipe', 'pipe'] });
99
99
  let error;
100
100
  process.stdout.on('data', (data) => {
101
101
  if (data.includes('Appium REST http interface listener started')) {
@@ -109,7 +109,7 @@ export default class AppiumLauncher {
109
109
  process.stderr.once('data', err => { error = err; });
110
110
  process.once('exit', exitCode => {
111
111
  let errorMessage = `Appium exited before timeout (exit code: ${exitCode})`;
112
- if (exitCode == 2) {
112
+ if (exitCode === 2) {
113
113
  errorMessage += '\n' + (error || 'Check that you don\'t already have a running Appium service.');
114
114
  log.error(errorMessage);
115
115
  }
package/build/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ArgValue, KeyValueArgs } from './types';
1
+ import type { ArgValue, KeyValueArgs } from './types.js';
2
2
  /**
3
3
  * Resolves the given path into a absolute path and appends the default filename as fallback when the provided path is a directory.
4
4
  * @param {String} filePath relative file or directory path
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAIrD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAU9E;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,CAoBvE;AAED,wBAAgB,sBAAsB,CAAE,KAAK,EAAE,QAAQ,UAItD;AAED,wBAAgB,SAAS,IAAI,OAAO,CAEnC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAIxD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAU9E;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,CAoBvE;AAED,wBAAgB,sBAAsB,CAAE,KAAK,EAAE,QAAQ,UAItD;AAED,wBAAgB,SAAS,IAAI,OAAO,CAEnC"}
package/build/utils.js CHANGED
@@ -22,7 +22,7 @@ export function formatCliArgs(args) {
22
22
  }
23
23
  const cliArgs = [];
24
24
  for (const key in args) {
25
- let value = args[key];
25
+ const value = args[key];
26
26
  // If the value is false or null the argument is discarded
27
27
  if ((typeof value === 'boolean' && !value) || value === null) {
28
28
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/appium-service",
3
- "version": "8.0.13",
3
+ "version": "8.1.0",
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,9 +30,9 @@
30
30
  "types": "./build/index.d.ts",
31
31
  "typeScriptVersion": "3.8.3",
32
32
  "dependencies": {
33
- "@wdio/config": "8.0.13",
34
- "@wdio/logger": "8.0.0",
35
- "@wdio/types": "8.0.11",
33
+ "@wdio/config": "8.1.0",
34
+ "@wdio/logger": "8.1.0",
35
+ "@wdio/types": "8.1.0",
36
36
  "import-meta-resolve": "^2.1.0",
37
37
  "param-case": "^3.0.4",
38
38
  "webdriverio": "8.0.2"
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "912db21d2cd4552a02b776ba74cae05440b076de"
43
+ "gitHead": "f505134606f99129c816acb00f22e39032e60820"
44
44
  }