escover 3.2.3 → 3.3.0

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/ChangeLog CHANGED
@@ -1,3 +1,16 @@
1
+ 2023.05.26, v3.3.0
2
+
3
+ fix:
4
+ - 18db2ed escover: cli
5
+
6
+ feature:
7
+ - 5409caa package: eslint-plugin-n v16.0.0
8
+
9
+ 2023.05.10, v3.2.4
10
+
11
+ fix:
12
+ - 74c5607 escover: cli: add quotes to NODE_OPTIONS
13
+
1
14
  2023.05.07, v3.2.3
2
15
 
3
16
  fix:
package/bin/escover.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+
2
3
  import {cli} from '../lib/cli/cli.js';
3
4
  import {readCoverage} from '../lib/coverage-file/coverage-file.js';
4
5
  import {readConfig} from '../lib/config.js';
package/lib/cli/cli.js CHANGED
@@ -5,11 +5,11 @@ import {version} from './version.js';
5
5
  import reportLines from '../formatters/lines.js';
6
6
  import reportFiles from '../formatters/files.js';
7
7
 
8
- const {
9
- ESCOVER_FORMAT,
10
- NODE_OPTIONS = '',
11
- } = process.env;
8
+ const {ESCOVER_FORMAT} = process.env;
12
9
 
10
+ export const ESCOVER_NODE_OPTIONS = '--no-warnings --loader zenload';
11
+
12
+ // ${NODE_OPTIONS}'`;
13
13
  export const cli = ({argv, exit, readCoverage}) => {
14
14
  const args = yargsParser(argv.slice(2), {
15
15
  string: [
@@ -58,7 +58,7 @@ function execute(cmd, exit) {
58
58
  env: {
59
59
  ZENLOAD: 'escover,mock-import',
60
60
  ...process.env,
61
- NODE_OPTIONS: `--no-warnings --loader zenload ${NODE_OPTIONS}`,
61
+ NODE_OPTIONS: ESCOVER_NODE_OPTIONS,
62
62
  },
63
63
  });
64
64
 
package/lib/escover.js CHANGED
@@ -8,9 +8,10 @@ import {
8
8
  isExclude,
9
9
  } from './config.js';
10
10
 
11
+ !global.__createC4 && process.once('exit', exit);
12
+
11
13
  global.__createC4 = createFileEntry;
12
14
 
13
- process.once('exit', exit);
14
15
  const CWD = process.cwd();
15
16
 
16
17
  const {exclude} = readConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "3.2.3",
3
+ "version": "3.3.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "Coverage for EcmaScript Modules",
6
6
  "main": "lib/escover.js",
@@ -64,7 +64,7 @@
64
64
  "c8": "^7.8.0",
65
65
  "escover": "^3.2.0",
66
66
  "eslint": "^8.3.0",
67
- "eslint-plugin-n": "^15.2.4",
67
+ "eslint-plugin-n": "^16.0.0",
68
68
  "eslint-plugin-putout": "^17.5.1",
69
69
  "madrun": "^9.0.0",
70
70
  "supertape": "^8.0.1"