monocart-reporter 2.8.2 → 2.8.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-reporter",
3
- "version": "2.8.2",
3
+ "version": "2.8.4",
4
4
  "description": "A playwright test reporter. Shows suites/cases/steps with tree style, markdown annotations, custom columns/formatters/data collection visitors, console logs, style tags, send email.",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -53,7 +53,6 @@
53
53
  "devDependencies": {
54
54
  "@babel/code-frame": "^7.24.7",
55
55
  "@playwright/test": "^1.47.2",
56
- "amaro": "^0.1.8",
57
56
  "ansi-to-html": "^0.7.2",
58
57
  "async-tick": "^1.0.0",
59
58
  "autolinker": "^4.0.0",
@@ -62,7 +61,7 @@
62
61
  "dotenv": "^16.4.5",
63
62
  "eslint": "^9.11.0",
64
63
  "eslint-config-plus": "^2.0.2",
65
- "eslint-plugin-html": "^8.1.1",
64
+ "eslint-plugin-html": "^8.1.2",
66
65
  "eslint-plugin-vue": "^9.28.0",
67
66
  "file-saver": "^2.0.5",
68
67
  "find-up": "^7.0.0",
package/lib/hooks.js DELETED
@@ -1,37 +0,0 @@
1
-
2
- const EC = require('eight-colors');
3
-
4
- const extensionsRegex = /\.ts$|\.mts$|\.cts$/;
5
-
6
- async function load(url, context, nextLoad) {
7
-
8
- if (extensionsRegex.test(url) && !url.includes('/node_modules/')) {
9
-
10
- const { transformSync } = await import('amaro').catch((e) => {
11
- // console.log(e.message || e);
12
- EC.logRed('The "amaro" module is required for loading ".ts" file, please run "npm i amaro"');
13
- });
14
-
15
- // Use format 'module' so it returns the source as-is, without stripping the types.
16
- // Format 'commonjs' would not return the source for historical reasons.
17
- const { source } = await nextLoad(url, {
18
- ... context,
19
- format: 'module'
20
- });
21
- if (source === null) {
22
- throw new Error('Source code cannot be null or undefined');
23
- }
24
- const { code } = transformSync(source.toString(), {
25
- mode: 'strip-only'
26
- });
27
- return {
28
- format: 'module',
29
- source: code
30
- };
31
- }
32
- return nextLoad(url, context);
33
- }
34
-
35
- module.exports = {
36
- load
37
- };