monocart-reporter 2.8.1 → 2.8.2
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/lib/cli.js +37 -1
- package/lib/hooks.js +37 -0
- package/lib/packages/monocart-reporter-assets.js +2 -2
- package/lib/utils/util.js +15 -0
- package/package.json +5 -4
package/lib/utils/util.js
CHANGED
|
@@ -319,6 +319,21 @@ const Util = {
|
|
|
319
319
|
return option;
|
|
320
320
|
},
|
|
321
321
|
|
|
322
|
+
cmpVersion: (v1, v2) => {
|
|
323
|
+
const [strMajor1, strMinor1, strPatch1] = `${v1}`.split('.');
|
|
324
|
+
const [strMajor2, strMinor2, strPatch2] = `${v2}`.split('.');
|
|
325
|
+
const strList = [strMajor1, strMinor1, strPatch1, strMajor2, strMinor2, strPatch2];
|
|
326
|
+
const list = strList.map((str) => Util.toNum(parseInt(str)));
|
|
327
|
+
const [major1, minor1, patch1, major2, minor2, patch2] = list;
|
|
328
|
+
if (major1 === major2) {
|
|
329
|
+
if (minor1 === minor2) {
|
|
330
|
+
return patch1 - patch2;
|
|
331
|
+
}
|
|
332
|
+
return minor1 - minor2;
|
|
333
|
+
}
|
|
334
|
+
return major1 - major2;
|
|
335
|
+
},
|
|
336
|
+
|
|
322
337
|
// ==========================================================================================
|
|
323
338
|
|
|
324
339
|
loggingLevels: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monocart-reporter",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
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": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"console-grid": "^2.2.2",
|
|
45
|
-
"eight-colors": "^1.3.
|
|
45
|
+
"eight-colors": "^1.3.1",
|
|
46
46
|
"koa": "^2.15.3",
|
|
47
47
|
"koa-static-resolver": "^1.0.6",
|
|
48
48
|
"lz-utils": "^2.1.0",
|
|
@@ -52,14 +52,15 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/code-frame": "^7.24.7",
|
|
55
|
-
"@playwright/test": "^1.47.
|
|
55
|
+
"@playwright/test": "^1.47.2",
|
|
56
|
+
"amaro": "^0.1.8",
|
|
56
57
|
"ansi-to-html": "^0.7.2",
|
|
57
58
|
"async-tick": "^1.0.0",
|
|
58
59
|
"autolinker": "^4.0.0",
|
|
59
60
|
"axios": "^1.7.7",
|
|
60
61
|
"commander": "^12.1.0",
|
|
61
62
|
"dotenv": "^16.4.5",
|
|
62
|
-
"eslint": "^9.
|
|
63
|
+
"eslint": "^9.11.0",
|
|
63
64
|
"eslint-config-plus": "^2.0.2",
|
|
64
65
|
"eslint-plugin-html": "^8.1.1",
|
|
65
66
|
"eslint-plugin-vue": "^9.28.0",
|