monocart-coverage-reports 2.11.4 → 2.11.6
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
CHANGED
|
@@ -206,6 +206,7 @@ program
|
|
|
206
206
|
.version(version, '-v, --version', 'output the current version')
|
|
207
207
|
.argument('[command]', 'command to execute')
|
|
208
208
|
.allowUnknownOption()
|
|
209
|
+
.allowExcessArguments()
|
|
209
210
|
.option('-c, --config <path>', 'custom config file path')
|
|
210
211
|
.option('-l, --logging <logging>', 'off, error, info, debug')
|
|
211
212
|
|
|
@@ -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;
|
package/lib/index.d.ts
CHANGED
|
@@ -544,6 +544,8 @@ declare namespace MCR {
|
|
|
544
544
|
* @param coverageKey defaults to `__coverage__`
|
|
545
545
|
*/
|
|
546
546
|
getIstanbulCoverage: (coverageKey?: string) => Promise<any>;
|
|
547
|
+
|
|
548
|
+
close: () => Promise<void>
|
|
547
549
|
}
|
|
548
550
|
|
|
549
551
|
/** Adapt to the CDPSession of Playwright or Puppeteer */
|