monocart-coverage-reports 2.0.9 → 2.0.10

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/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  [![](https://img.shields.io/npm/v/monocart-coverage-reports)](https://www.npmjs.com/package/monocart-coverage-reports)
4
4
  [![](https://badgen.net/npm/dw/monocart-coverage-reports)](https://www.npmjs.com/package/monocart-coverage-reports)
5
5
  ![](https://img.shields.io/github/license/cenfun/monocart-coverage-reports)
6
+ ![](https://img.shields.io/github/actions/workflow/status/cenfun/monocart-coverage-reports/static.yml)
7
+
6
8
 
7
9
  > Code coverage tool to generate native [V8](https://v8.dev/blog/javascript-code-coverage) reports or [Istanbul](https://istanbul.js.org/) reports.
8
10
 
@@ -221,9 +223,6 @@ const coverageOptions = {
221
223
  - example:
222
224
  > cross-env NODE_V8_COVERAGE=`.temp/v8-coverage-api` node [./test/test-node-api.js](./test/test-node-api.js)
223
225
 
224
- - Using [foreground-child](https://github.com/tapjs/foreground-child) + NODE_V8_COVERAGE
225
- - example: [./test/test-node-fgc.js](./test/test-node-fgc.js)
226
-
227
226
  - Using [Inspector](https://nodejs.org/docs/latest/api/inspector.html) API (or module [collect-v8-coverage](https://github.com/SimenB/collect-v8-coverage))
228
227
  - Connecting to the V8 inspector and enable V8 coverage.
229
228
  - Taking coverage data and adding to the report after your application runs.
@@ -326,7 +325,7 @@ const os = platform === 'wind32' ? 'Windows' : 'Other';
326
325
 
327
326
  const os = platform === 'wind32' ? 'Windows' /* v8 ignore next */ : 'Other';
328
327
 
329
- /* v8 ignore next 3 */
328
+ // v8 ignore next 3
330
329
  if (platform === 'linux') {
331
330
  console.info('hello linux');
332
331
  }
@@ -379,7 +378,7 @@ export interface ScriptCoverage {
379
378
 
380
379
  export type V8CoverageData = ScriptCoverage[];
381
380
  ```
382
- see devtools-protocol [ScriptCoverage](https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-ScriptCoverage)
381
+ see devtools-protocol [ScriptCoverage](https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-ScriptCoverage) and [v8-coverage](https://github.com/bcoe/v8-coverage)
383
382
 
384
383
 
385
384
  ## Istanbul Introduction
@@ -24,7 +24,7 @@ const Util = require('../utils/util.js');
24
24
  const decodeMappings = require('../utils/decode-mappings.js');
25
25
 
26
26
  // position mapping for conversion between offset and line/column
27
- const { Locator } = require('monocart-formatter/node');
27
+ const { Locator } = require('monocart-formatter');
28
28
  const findOriginalRange = require('./find-original-range.js');
29
29
  const { getJsAstInfo, getCssAstInfo } = require('./ast.js');
30
30
  const { getIgnoredRanges } = require('./ignore.js');