escover 3.5.2 → 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,8 @@
1
+ 2023.08.27, v3.6.0
2
+
3
+ feature:
4
+ - 212cf40 package: find-cache-dir v5.0.0
5
+
1
6
  2023.08.04, v3.5.2
2
7
 
3
8
  feature:
package/lib/cli/cli.js CHANGED
@@ -1,4 +1,4 @@
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';
@@ -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,4 +1,4 @@
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
4
  import {createFileEntry} from './c4.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "3.5.2",
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,7 +41,7 @@
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",