escover 3.1.2 → 3.2.1
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 +11 -0
- package/lib/escover.js +7 -0
- package/package.json +2 -4
package/ChangeLog
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
2023.05.05, v3.2.1
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 0c86858 escover: rm unused deps
|
|
5
|
+
- 98ff5ae package: escover v3.2.0
|
|
6
|
+
|
|
7
|
+
2023.05.05, v3.2.0
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- e483c58 escover: add suport of node v20 (https://nodejs.org/dist/latest-v20.x/docs/api/esm.html#globalpreload)
|
|
11
|
+
|
|
1
12
|
2023.05.05, v3.1.2
|
|
2
13
|
|
|
3
14
|
feature:
|
package/lib/escover.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import process from 'process';
|
|
2
|
+
import montag from 'montag';
|
|
2
3
|
import {instrument} from './instrument/index.js';
|
|
3
4
|
import {exit} from './exit.js';
|
|
4
5
|
import {createFileEntry} from './c4.js';
|
|
@@ -23,6 +24,12 @@ const EXCLUDE = [
|
|
|
23
24
|
...exclude,
|
|
24
25
|
];
|
|
25
26
|
|
|
27
|
+
export function globalPreload({port}) {
|
|
28
|
+
port.onmessage = createFileEntry;
|
|
29
|
+
return montag`
|
|
30
|
+
global.__createC4 = port.postMessage.bind(port);
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
26
33
|
export async function load(url, context, defaultLoad) {
|
|
27
34
|
const {
|
|
28
35
|
format,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "escover",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
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",
|
|
@@ -39,8 +39,6 @@
|
|
|
39
39
|
"prewisdom": "madrun prewisdom"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@babel/parser": "^7.21.8",
|
|
43
|
-
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
44
42
|
"@putout/plugin-convert-optional-to-logical": "^1.0.0",
|
|
45
43
|
"@putout/printer": "^1.80.3",
|
|
46
44
|
"chalk": "^5.0.0",
|
|
@@ -64,7 +62,7 @@
|
|
|
64
62
|
"devDependencies": {
|
|
65
63
|
"@putout/test": "^6.4.0",
|
|
66
64
|
"c8": "^7.8.0",
|
|
67
|
-
"escover": "^2.0
|
|
65
|
+
"escover": "^3.2.0",
|
|
68
66
|
"eslint": "^8.3.0",
|
|
69
67
|
"eslint-plugin-n": "^15.2.4",
|
|
70
68
|
"eslint-plugin-putout": "^17.5.1",
|