@wdio/logger 10.0.0 → 10.1.0-alpha.18

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.
Files changed (2) hide show
  1. package/build/index.cjs +4 -1
  2. package/package.json +2 -2
package/build/index.cjs CHANGED
@@ -599,12 +599,15 @@ function ansiRegex({ onlyFirst = false } = {}) {
599
599
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
600
600
  }
601
601
 
602
- // ../../node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
602
+ // ../../node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
603
603
  var regex = ansiRegex();
604
604
  function stripAnsi(string) {
605
605
  if (typeof string !== "string") {
606
606
  throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
607
607
  }
608
+ if (!string.includes("\x1B") && !string.includes("\x9B")) {
609
+ return string;
610
+ }
608
611
  return string.replace(regex, "");
609
612
  }
610
613
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/logger",
3
- "version": "10.0.0",
3
+ "version": "10.1.0-alpha.18+3cc4ca692",
4
4
  "description": "A helper utility for logging of WebdriverIO packages",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-logger",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "38bd5ff4dccfaadccce4bd678286f00594623da2"
49
+ "gitHead": "3cc4ca6920c360c783cf85bcafcf385dd8c6a2d4"
50
50
  }