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.
|
@@ -17,7 +17,7 @@ const loadSourceMap = async (url = '') => {
|
|
|
17
17
|
Util.logDebug(EC.red(`failed to load sourcemap ${p}`));
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return Util.jsonParse(content);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const [err, res] = await Util.request(url);
|
|
@@ -31,7 +31,7 @@ const loadSourceMap = async (url = '') => {
|
|
|
31
31
|
|
|
32
32
|
// could be string not json, if Content-Type is application/octet-stream
|
|
33
33
|
if (typeof content === 'string') {
|
|
34
|
-
return
|
|
34
|
+
return Util.jsonParse(content);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
return content;
|