@wdio/logger 10.0.0 → 10.1.0-alpha.19
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.cjs +4 -1
- 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.
|
|
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.
|
|
3
|
+
"version": "10.1.0-alpha.19+d561b5065",
|
|
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": "
|
|
49
|
+
"gitHead": "d561b5065a75db66abbd55b46e48076463e45330"
|
|
50
50
|
}
|