@wdio/logger 7.4.1 → 7.16.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/LICENSE-MIT ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) OpenJS Foundation and other contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -10,13 +10,13 @@ This package is used across all WebdriverIO packages to log information using th
10
10
  To install the package just call
11
11
 
12
12
  ```sh
13
- $ npm install @wdio/logger
13
+ npm install @wdio/logger
14
14
  ```
15
15
 
16
16
  or when adding it to a WebdriverIO subpackage:
17
17
 
18
18
  ```sh
19
- $ lerna add @wdio/logger --scope <subpackage>
19
+ lerna add @wdio/logger --scope <subpackage>
20
20
  ```
21
21
 
22
22
  ## Usage
package/build/node.js CHANGED
@@ -81,7 +81,7 @@ const wdioLoggerMethodFactory = function (methodName, logLevel, loggerName) {
81
81
  }
82
82
  return arg;
83
83
  });
84
- const logText = strip_ansi_1.default(`${util_1.default.format.apply(this, args)}\n`);
84
+ const logText = (0, strip_ansi_1.default)(`${util_1.default.format.apply(this, args)}\n`);
85
85
  if (logFile && logFile.writable) {
86
86
  /**
87
87
  * empty logging cache if stuff got logged before
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAIA,iBAAwB,SAAS,CAAE,SAAS,EAAE,MAAM,WAanD;kBAbuB,SAAS;;;;;;eAAT,SAAS"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAIA,iBAAwB,SAAS,CAAE,SAAS,EAAE,MAAM,WAcnD;kBAduB,SAAS;;;;;;eAAT,SAAS"}
package/build/web.js CHANGED
@@ -10,6 +10,7 @@ function getLogger(component) {
10
10
  // eslint-disable-next-line no-console
11
11
  if (console[prop]) {
12
12
  // eslint-disable-next-line no-console
13
+ // @ts-ignore
13
14
  acc[prop] = console[prop].bind(console, `${component}:`);
14
15
  }
15
16
  return acc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/logger",
3
- "version": "7.4.1",
3
+ "version": "7.16.0",
4
4
  "description": "A helper utility for logging of WebdriverIO packages",
5
5
  "author": "Christian Bromann <christian@saucelabs.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-logger",
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "1637ea94efc30a7ff835183bc64748af6ee8d6ad"
35
+ "gitHead": "2b650b1def58bc7a6c22cb093548c19e63b75f80"
36
36
  }