monocart-coverage-reports 2.11.4 → 2.11.5
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/platform/share.js
CHANGED
|
@@ -402,6 +402,30 @@ const Util = {
|
|
|
402
402
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
403
403
|
},
|
|
404
404
|
|
|
405
|
+
jsonParse: function(str) {
|
|
406
|
+
|
|
407
|
+
if (typeof str !== 'string') {
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
if (!str) {
|
|
412
|
+
return null;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
let json = null;
|
|
416
|
+
|
|
417
|
+
// remove BOM \ufeff
|
|
418
|
+
// str = str.replace(/^\uFEFF/, '');
|
|
419
|
+
|
|
420
|
+
try {
|
|
421
|
+
json = JSON.parse(str);
|
|
422
|
+
} catch (e) {
|
|
423
|
+
// console.log(e);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
return json;
|
|
427
|
+
},
|
|
428
|
+
|
|
405
429
|
// =============================================================================
|
|
406
430
|
// formatter
|
|
407
431
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monocart-coverage-reports",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.5",
|
|
4
4
|
"description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -90,13 +90,12 @@
|
|
|
90
90
|
"monocart-locator": "^1.0.2"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@bcoe/v8-coverage": "^0.2.3",
|
|
94
93
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
95
94
|
"async-tick": "^1.0.0",
|
|
96
95
|
"convert-source-map": "^2.0.0",
|
|
97
96
|
"diff-sequences": "^29.6.3",
|
|
98
97
|
"esbuild": "^0.24.0",
|
|
99
|
-
"eslint": "~9.
|
|
98
|
+
"eslint": "~9.17.0",
|
|
100
99
|
"eslint-config-plus": "^2.0.2",
|
|
101
100
|
"eslint-plugin-html": "^8.1.2",
|
|
102
101
|
"eslint-plugin-vue": "^9.32.0",
|
|
@@ -108,7 +107,7 @@
|
|
|
108
107
|
"node-stream-zip": "^1.15.0",
|
|
109
108
|
"postcss": "^8.4.49",
|
|
110
109
|
"starfall-cli": "^2.0.20",
|
|
111
|
-
"stylelint": "^16.
|
|
110
|
+
"stylelint": "^16.12.0",
|
|
112
111
|
"stylelint-config-plus": "^1.1.3",
|
|
113
112
|
"supports-color": "^9.4.0",
|
|
114
113
|
"tsx": "^4.19.2",
|