escover 3.5.1 → 3.6.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,14 @@
1
+ 2023.08.27, v3.6.0
2
+
3
+ feature:
4
+ - 212cf40 package: find-cache-dir v5.0.0
5
+
6
+ 2023.08.04, v3.5.2
7
+
8
+ feature:
9
+ - 95cc7a5 package: eslint-plugin-putout v19.0.0
10
+ - a2d2857 package: putout v31.0.0
11
+
1
12
  2023.07.31, v3.5.1
2
13
 
3
14
  fix:
package/lib/cli/cli.js CHANGED
@@ -1,10 +1,11 @@
1
- import {execSync} from 'child_process';
1
+ import {execSync} from 'node:child_process';
2
2
  import tryCatch from 'try-catch';
3
3
  import yargsParser from 'yargs-parser';
4
4
  import {version} from './version.js';
5
5
  import reportLines from '../formatters/lines.js';
6
6
  import reportFiles from '../formatters/files.js';
7
- import {exit as mainExit} from '../exit.js';
7
+
8
+ const noop = () => {};
8
9
 
9
10
  const {ESCOVER_FORMAT} = process.env;
10
11
 
@@ -31,7 +32,7 @@ export const cli = ({argv, exit, readCoverage}) => {
31
32
  const cmd = argv.slice(2);
32
33
 
33
34
  if (cmd.length) {
34
- execute(`"${cmd.join('" "')}"`, () => {});
35
+ execute(`"${cmd.join('" "')}"`, noop);
35
36
  }
36
37
 
37
38
  const coverage = readCoverage();
@@ -1,4 +1,4 @@
1
- import {readFileSync} from 'fs';
1
+ import {readFileSync} from 'node:fs';
2
2
 
3
3
  const {parse} = JSON;
4
4
  const packageJson = new URL('../../package.json', import.meta.url);
package/lib/config.js CHANGED
@@ -1,4 +1,4 @@
1
- import {readFileSync} from 'fs';
1
+ import {readFileSync} from 'node:fs';
2
2
  import picomatch from 'picomatch';
3
3
  import {findUpSync} from 'find-up';
4
4
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  writeFileSync,
3
3
  readFileSync,
4
- } from 'fs';
4
+ } from 'node:fs';
5
5
  import tryCatch from 'try-catch';
6
- import {join} from 'path';
6
+ import {join} from 'node:path';
7
7
  import {getFileEntries} from '../c4.js';
8
8
  import {transform} from '../transform.js';
9
9
  import {merge} from '../merge.js';
@@ -1,6 +1,6 @@
1
- import {join} from 'path';
2
- import {cwd} from 'process';
3
- import {mkdirSync} from 'fs';
1
+ import {join} from 'node:path';
2
+ import {cwd} from 'node:process';
3
+ import {mkdirSync} from 'node:fs';
4
4
 
5
5
  export function findCacheDir() {
6
6
  const name = join(cwd(), 'coverage');
package/lib/escover.js CHANGED
@@ -1,7 +1,6 @@
1
- import process from 'process';
1
+ import process from 'node:process';
2
2
  import montag from 'montag';
3
3
  import {instrument} from './instrument/index.js';
4
- import {exit} from './exit.js';
5
4
  import {createFileEntry} from './c4.js';
6
5
  import {
7
6
  readConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "3.5.1",
3
+ "version": "3.6.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",
@@ -41,13 +41,13 @@
41
41
  "dependencies": {
42
42
  "@putout/plugin-convert-optional-to-logical": "^1.0.0",
43
43
  "chalk": "^5.0.0",
44
- "find-cache-dir": "^4.0.0",
44
+ "find-cache-dir": "^5.0.0",
45
45
  "find-up": "^6.2.0",
46
46
  "mock-import": "^3.0.1",
47
47
  "montag": "^1.2.1",
48
48
  "once": "^1.4.0",
49
49
  "picomatch": "^2.3.1",
50
- "putout": "^30.7.0",
50
+ "putout": "^31.0.0",
51
51
  "strip-ansi": "^7.0.1",
52
52
  "table": "^6.8.0",
53
53
  "try-catch": "^3.0.0",
@@ -64,7 +64,7 @@
64
64
  "escover": "^3.2.0",
65
65
  "eslint": "^8.3.0",
66
66
  "eslint-plugin-n": "^16.0.0",
67
- "eslint-plugin-putout": "^18.2.0",
67
+ "eslint-plugin-putout": "^19.0.0",
68
68
  "madrun": "^9.0.0",
69
69
  "supertape": "^8.0.1"
70
70
  }