monocart-reporter 2.9.21 → 2.9.23

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.
@@ -147,7 +147,7 @@ const Util = {
147
147
 
148
148
  // \ to /
149
149
  formatPath: function(str) {
150
- if (str) {
150
+ if (typeof str === 'string') {
151
151
  str = str.replace(/\\/g, '/');
152
152
  }
153
153
  return str;
package/lib/utils/util.js CHANGED
@@ -395,7 +395,7 @@ const Util = {
395
395
 
396
396
  addTimezoneOffset: (timestamp, offset = 0) => {
397
397
  // in minutes
398
- return timestamp + offset * 60 * 1000;
398
+ return Util.toNum(timestamp) + Util.toNum(offset) * 60 * 1000;
399
399
  },
400
400
 
401
401
  mergeOption: function(... args) {
package/lib/visitor.js CHANGED
@@ -731,7 +731,7 @@ class Visitor {
731
731
  return;
732
732
  }
733
733
 
734
- const excludes = ['_prompt-', '_error-context-'];
734
+ const excludes = ['_prompt-', '_error-context-', 'error-context'];
735
735
  if (item.name) {
736
736
  const prefix = excludes.find((it) => item.name.startsWith(it));
737
737
  if (prefix) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-reporter",
3
- "version": "2.9.21",
3
+ "version": "2.9.23",
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": {
@@ -44,32 +44,32 @@
44
44
  "dependencies": {
45
45
  "console-grid": "^2.2.3",
46
46
  "eight-colors": "^1.3.1",
47
- "koa": "^3.0.0",
47
+ "koa": "^3.0.1",
48
48
  "koa-static-resolver": "^1.0.6",
49
49
  "lz-utils": "^2.1.0",
50
- "monocart-coverage-reports": "^2.12.6",
50
+ "monocart-coverage-reports": "^2.12.9",
51
51
  "monocart-locator": "^1.0.2",
52
- "nodemailer": "^7.0.3"
52
+ "nodemailer": "^7.0.6"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@babel/code-frame": "^7.27.1",
56
- "@playwright/test": "^1.53.0",
56
+ "@playwright/test": "^1.55.1",
57
57
  "ansi-to-html": "^0.7.2",
58
58
  "async-tick": "^1.0.0",
59
59
  "autolinker": "^4.1.5",
60
- "axios": "^1.10.0",
61
- "commander": "^14.0.0",
62
- "dotenv": "^16.5.0",
63
- "eslint": "^9.29.0",
64
- "eslint-config-plus": "^2.0.2",
60
+ "axios": "^1.12.2",
61
+ "commander": "^14.0.1",
62
+ "dotenv": "^17.2.2",
63
+ "eslint": "^9.36.0",
64
+ "eslint-config-plus": "^2.0.3",
65
65
  "eslint-plugin-html": "^8.1.3",
66
- "eslint-plugin-vue": "^10.2.0",
66
+ "eslint-plugin-vue": "^10.5.0",
67
67
  "file-saver": "^2.0.5",
68
- "find-up": "^7.0.0",
68
+ "find-up": "^8.0.0",
69
69
  "github-markdown-css": "^5.8.1",
70
70
  "glob": "^11.0.3",
71
- "marked": "^15.0.12",
72
- "mermaid": "^11.6.0",
71
+ "marked": "^16.3.0",
72
+ "mermaid": "^11.12.0",
73
73
  "mitt": "^3.0.1",
74
74
  "monocart-code-viewer": "^1.1.5",
75
75
  "monocart-formatter": "^3.0.1",
@@ -78,12 +78,12 @@
78
78
  "open": "8.4.2",
79
79
  "sanitize-filename": "^1.6.3",
80
80
  "stack-utils": "^2.0.6",
81
- "stylelint": "^16.20.0",
82
- "stylelint-config-plus": "^1.1.3",
83
- "supports-color": "^10.0.0",
84
- "turbogrid": "^3.2.0",
85
- "vine-ui": "^3.1.16",
86
- "ws": "^8.18.2",
81
+ "stylelint": "^16.24.0",
82
+ "stylelint-config-plus": "^1.1.4",
83
+ "supports-color": "^10.2.2",
84
+ "turbogrid": "^3.2.1",
85
+ "vine-ui": "^3.1.18",
86
+ "ws": "^8.18.3",
87
87
  "yazl": "^3.3.1"
88
88
  }
89
89
  }