@wdio/appium-service 9.20.0 → 9.21.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.js CHANGED
@@ -206,11 +206,22 @@ var AppiumLauncher = class _AppiumLauncher {
206
206
  }
207
207
  };
208
208
  const onErrorMessage = (data) => {
209
- error = data.toString() || "Appium exited without unknown error message";
210
- if (!data.toString().includes("Debugger attached")) {
209
+ const message = data.toString();
210
+ const isDebuggerMessage = message.includes("Debugger attached") || message.includes("Debugger listening on") || message.includes("For help, see: https://nodejs.org/en/docs/inspector");
211
+ if (isDebuggerMessage) {
212
+ return;
213
+ }
214
+ appiumProcess.stderr.off("data", onErrorMessage);
215
+ error = message || "Appium exited without unknown error message";
216
+ const isWarning = message.trim().startsWith("WARN");
217
+ if (isWarning) {
218
+ log.warn(error);
219
+ } else {
211
220
  log.error(error);
212
221
  }
213
- rejectOnce(new Error(error));
222
+ if (!isWarning) {
223
+ rejectOnce(new Error(error));
224
+ }
214
225
  };
215
226
  const onStdout = (data) => {
216
227
  outputBuffer += data.toString();
@@ -224,7 +235,7 @@ var AppiumLauncher = class _AppiumLauncher {
224
235
  }
225
236
  };
226
237
  appiumProcess.stdout.on("data", onStdout);
227
- appiumProcess.stderr.once("data", onErrorMessage);
238
+ appiumProcess.stderr.on("data", onErrorMessage);
228
239
  appiumProcess.once("exit", (exitCode) => {
229
240
  if (this._isShuttingDown) {
230
241
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAIlE,OAAO,KAAK,EAAyB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAa5E,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,QAAQ,CAAC,eAAe;;IAQ/D,OAAO,CAAC,QAAQ;IAChB,OAAO,CA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AA;YAS1B,WAAW;IAqBzB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAyDlB,SAAS;IAqDf,OAAO,CAAC,mBAAmB,CAAsC;IAC3D,UAAU;IAmChB,OAAO,CAAC,YAAY;YA2GN,kBAAkB;mBAeX,iBAAiB;CAezC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/appium-service",
3
- "version": "9.20.0",
3
+ "version": "9.21.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",
@@ -35,18 +35,18 @@
35
35
  },
36
36
  "typeScriptVersion": "3.8.3",
37
37
  "dependencies": {
38
- "@wdio/config": "9.20.0",
38
+ "@wdio/config": "9.21.0",
39
39
  "@wdio/logger": "9.18.0",
40
40
  "@wdio/types": "9.20.0",
41
- "@wdio/utils": "9.20.0",
41
+ "@wdio/utils": "9.21.0",
42
42
  "change-case": "^5.4.3",
43
43
  "get-port": "^7.0.0",
44
44
  "import-meta-resolve": "^4.0.0",
45
45
  "tree-kill": "^1.2.2",
46
- "webdriverio": "9.20.0"
46
+ "webdriverio": "9.21.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "6c8694a72b8e173ecdd20dacae5d49d089b2877c"
51
+ "gitHead": "cfbd795427524c3add91b2c980e6866477875332"
52
52
  }