@wdio/reporter 8.38.2 → 8.40.3

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
@@ -1,5 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  import type { WriteStream } from 'node:fs';
4
2
  import { EventEmitter } from 'node:events';
5
3
  import type { Reporters } from '@wdio/types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,aAAa,CAAA;AAIrD,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAEzC,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEjG,KAAK,iBAAiB,GAAG;IAAE,KAAK,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAA;CAAE,CAAA;AAE7D,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IAqB/B,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC;IApBtD,YAAY,EAAE,WAAW,GAAG,iBAAiB,CAAA;IAC7C,QAAQ,SAAI;IACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAK;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAK;IACrC,KAAK,EAAE,MAAM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IASlB,aAAa,CAAC,WAAW,EAAE,WAAW;IAGtC,eAAe,CAAC,WAAW,EAAE,iBAAiB;IAG9C,cAAc,CAAC,WAAW,EAAE,gBAAgB;IAG5C,iBAAiB,CAAC,aAAa,EAAE,OAAO;IAGxC,gBAAgB,CAAC,aAAa,EAAE,OAAO;IAGvC,YAAY,CAAC,UAAU,EAAE,UAAU;IAGnC,WAAW,CAAC,QAAQ,EAAE,SAAS;IAG/B,SAAS,CAAC,SAAS,EAAE,SAAS;IAG9B,WAAW,CAAC,SAAS,EAAE,SAAS;IAGhC,UAAU,CAAC,SAAS,EAAE,SAAS;IAG/B,UAAU,CAAC,SAAS,EAAE,SAAS;IAG/B,WAAW,CAAC,SAAS,EAAE,SAAS;IAGhC,UAAU,CAAC,SAAS,EAAE,SAAS;IAG/B,SAAS,CAAC,SAAS,EAAE,SAAS;IAG9B,UAAU,CAAC,UAAU,EAAE,UAAU;IAGjC,WAAW,CAAC,WAAW,EAAE,WAAW;CACvC;AAED,OAAO,EACH,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EACrE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAChD,CAAA"}
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.createSupportsColor = void 0;
11
+ exports.createSupportsColor = createSupportsColor;
12
12
  const node_process_1 = __importDefault(require("node:process"));
13
13
  const node_os_1 = __importDefault(require("node:os"));
14
14
  const node_tty_1 = __importDefault(require("node:tty"));
@@ -145,7 +145,6 @@ function createSupportsColor(stream, options = {}) {
145
145
  });
146
146
  return translateLevel(level);
147
147
  }
148
- exports.createSupportsColor = createSupportsColor;
149
148
  const supportsColor = {
150
149
  stdout: createSupportsColor({ isTTY: node_tty_1.default.isatty(1) }),
151
150
  stderr: createSupportsColor({ isTTY: node_tty_1.default.isatty(2) }),
package/cjs/utils.js CHANGED
@@ -3,7 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.colorLines = exports.color = exports.pad = exports.getErrorsFromEvent = exports.sanitizeCaps = exports.sanitizeString = void 0;
6
+ exports.sanitizeString = sanitizeString;
7
+ exports.sanitizeCaps = sanitizeCaps;
8
+ exports.getErrorsFromEvent = getErrorsFromEvent;
9
+ exports.pad = pad;
10
+ exports.color = color;
11
+ exports.colorLines = colorLines;
7
12
  const supportsColor_js_1 = __importDefault(require("./supportsColor.js"));
8
13
  const constants_js_1 = require("./constants.js");
9
14
  /**
@@ -21,7 +26,6 @@ function sanitizeString(str) {
21
26
  .replace(/\s/g, '')
22
27
  .toLowerCase();
23
28
  }
24
- exports.sanitizeString = sanitizeString;
25
29
  /**
26
30
  * formats capability object into sanitized string for e.g.filenames
27
31
  * @param {object} caps Selenium capabilities
@@ -50,7 +54,6 @@ function sanitizeCaps(caps) {
50
54
  result = result.filter(n => n !== undefined && n !== '');
51
55
  return result.join('.');
52
56
  }
53
- exports.sanitizeCaps = sanitizeCaps;
54
57
  /**
55
58
  * Takes a event emitted by a framework and extracts
56
59
  * an array of errors representing test or hook failures.
@@ -68,7 +71,6 @@ function getErrorsFromEvent(e) {
68
71
  }
69
72
  return [];
70
73
  }
71
- exports.getErrorsFromEvent = getErrorsFromEvent;
72
74
  /**
73
75
  * Pads the given `str` to `len`.
74
76
  *
@@ -80,14 +82,12 @@ exports.getErrorsFromEvent = getErrorsFromEvent;
80
82
  function pad(str, len) {
81
83
  return Array(len - str.length + 1).join(' ') + str;
82
84
  }
83
- exports.pad = pad;
84
85
  function color(type, content) {
85
86
  if (!supportsColor_js_1.default.stdout) {
86
87
  return String(content);
87
88
  }
88
89
  return `\u001b[${constants_js_1.COLORS[type]}m${content}\u001b[0m`;
89
90
  }
90
- exports.color = color;
91
91
  /**
92
92
  * Colors lines for `str`, using the color `name`.
93
93
  *
@@ -102,4 +102,3 @@ function colorLines(name, str) {
102
102
  .map((str) => color(name, str))
103
103
  .join('\n');
104
104
  }
105
- exports.colorLines = colorLines;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/reporter",
3
- "version": "8.38.2",
3
+ "version": "8.40.3",
4
4
  "description": "A WebdriverIO utility to help reporting all events",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter",
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "typeScriptVersion": "3.8.3",
43
43
  "dependencies": {
44
- "@types/node": "^20.1.0",
44
+ "@types/node": "^22.2.0",
45
45
  "@wdio/logger": "8.38.0",
46
- "@wdio/types": "8.38.2",
46
+ "@wdio/types": "8.40.3",
47
47
  "diff": "^5.0.0",
48
48
  "object-inspect": "^1.12.0"
49
49
  },
@@ -54,5 +54,5 @@
54
54
  "@types/tmp": "^0.2.3",
55
55
  "tmp": "^0.2.1"
56
56
  },
57
- "gitHead": "942ba6095b993a4ea5a893d4b935f5ab2ca04ab2"
57
+ "gitHead": "c25074cf89bf620cfe18909cd7dbdad8de8e722d"
58
58
  }