escover 1.1.4 → 1.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 CHANGED
@@ -1,3 +1,30 @@
1
+ 2022.01.14, v1.2.1
2
+
3
+ feature:
4
+ - escover: exclude .spec.mjs
5
+
6
+
7
+ 2022.01.14, v1.2.0
8
+
9
+ fix:
10
+ - feature: escover: exclude fixture, .madrun.js
11
+
12
+ feature:
13
+ - escover: exclude fixture, .madrun.js
14
+
15
+
16
+ 2022.01.14, v1.1.6
17
+
18
+ fix:
19
+ - npmignore: add fixture
20
+
21
+
22
+ 2022.01.14, v1.1.5
23
+
24
+ fix:
25
+ - escover: set zenload as dependency
26
+
27
+
1
28
  2022.01.13, v1.1.4
2
29
 
3
30
  feature:
package/lib/escover.js CHANGED
@@ -18,7 +18,7 @@ export async function load(url, context, defaultLoad) {
18
18
  format,
19
19
  };
20
20
 
21
- if (exclude(url, ['.spec.js', 'node_modules']))
21
+ if (exclude(url, ['.spec.', 'node_modules', '/fixture/', '.madrun.']))
22
22
  return {
23
23
  format,
24
24
  source: rawSource,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "1.1.4",
3
+ "version": "1.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",
@@ -43,7 +43,8 @@
43
43
  "once": "^1.4.0",
44
44
  "putout": "^24.0.2",
45
45
  "try-catch": "^3.0.0",
46
- "yargs-parser": "^21.0.0"
46
+ "yargs-parser": "^21.0.0",
47
+ "zenload": "^1.4.0"
47
48
  },
48
49
  "engines": {
49
50
  "node": ">=14"
@@ -58,7 +59,6 @@
58
59
  "eslint-plugin-putout": "^13.0.1",
59
60
  "madrun": "^8.8.1",
60
61
  "mock-import": "^2.0.0",
61
- "supertape": "^6.0.5",
62
- "zenload": "^1.0.0"
62
+ "supertape": "^6.0.5"
63
63
  }
64
64
  }
@@ -1,9 +0,0 @@
1
- const {__c4} = global;
2
- __c4.mark(1, 0), cli({
3
- stdout,
4
- stderr,
5
- exit,
6
- cwd: (__c4.mark(5, 9), process.cwd()),
7
- argv: (__c4.mark(6, 10), process.argv.slice(2))
8
- });
9
-
@@ -1,8 +0,0 @@
1
- cli({
2
- stdout,
3
- stderr,
4
- exit,
5
- cwd: process.cwd(),
6
- argv: process.argv.slice(2)
7
- })
8
-
@@ -1,6 +0,0 @@
1
- export const nothing = (a, b) => {
2
- return __c4['🧨'](2, 4);
3
- };
4
- export const sum = (a, b) => {
5
- return __c4['🧨'](5, 4), a + b;
6
- };
@@ -1,6 +0,0 @@
1
- export const nothing = (a, b) => {
2
- return;
3
- };
4
- export const sum = (a, b) => {
5
- return a + b;
6
- };
@@ -1,2 +0,0 @@
1
- const [error, {packageJson} = (__c4['🧨'](1, 14), {})] = (__c4['🧨'](1, 36), tryCatch(readPackageUpSync));
2
- data += (__c4['🧨'](2, 0), 'fix:' + '\n');
@@ -1,2 +0,0 @@
1
- const [error, {packageJson} = {}] = tryCatch(readPackageUpSync);
2
- data += 'fix:' + '\n';
@@ -1,6 +0,0 @@
1
- if (error) {
2
- throw (__c4['🧨'](2, 4), `error reading package.json: ${error.message}`);
3
- }
4
-
5
- if (error)
6
- throw (__c4['🧨'](6, 4), (__c4.mark(11, 8), `error reading package.json: ${error.message}`));
@@ -1,6 +0,0 @@
1
- if (error) {
2
- throw `error reading package.json: ${error.message}`;
3
- }
4
-
5
- if (error)
6
- throw (__c4.mark(11, 8), `error reading package.json: ${error.message}`);
@@ -1,3 +0,0 @@
1
- if ((__c4['🧨'](1, 4), a) || (__c4['🧨'](1, 9), b)) {
2
- __c4['🧨'](1, 12);
3
- }
@@ -1,2 +0,0 @@
1
- if (a || b) {
2
- }
@@ -1,30 +0,0 @@
1
- const a = () => {
2
- a = (__c4['🧨'](2, 4), 5);
3
- __c4['🧨'](3, 4), console.log(5);
4
- };
5
-
6
-
7
- function x() {
8
-
9
- if (a > 2) {
10
- __c4['🧨'](9, 14), a();
11
- } else {
12
- __c4['🧨'](10, 9), b();
13
- }
14
- }
15
-
16
- for (const x of y) {
17
- __c4['🧨'](13, 19);
18
- }
19
-
20
- const ax = ((__c4['🧨'](16, 12), a()), (__c4['🧨'](16, 17), b()));
21
- const bx = (c, (__c4['🧨'](17, 15), d()));
22
-
23
- if ((__c4['🧨'](19, 4), a) || (__c4['🧨'](19, 9), b)) {
24
- __c4['🧨'](19, 12);
25
- }
26
-
27
-
28
- function x1(a, b = (__c4['🧨'](23, 15), 5)) {
29
- __c4['🧨'](23, 22);
30
- }
@@ -1,24 +0,0 @@
1
- const a = () => {
2
- a = 5;
3
- console.log(5);
4
- };
5
-
6
-
7
- function x() {
8
-
9
- if (a > 2)a()
10
- else b();
11
- }
12
-
13
- for (const x of y) {
14
- }
15
-
16
- const ax = (a(), b());
17
- const bx = (c, d());
18
-
19
- if (a || b) {
20
- }
21
-
22
-
23
- function x1(a, b = 5) {
24
- }
@@ -1 +0,0 @@
1
- const files = (__c4['🧨'](1, 14), new Map());
@@ -1 +0,0 @@
1
- const files = new Map();
@@ -1,8 +0,0 @@
1
- __c4['🧨'](1, 0), cli({
2
- stdout,
3
- stderr,
4
- exit,
5
- cwd: (__c4['🧨'](5, 9), process.cwd()),
6
- argv: (__c4['🧨'](6, 10), process.argv.slice(2))
7
- });
8
-
@@ -1,8 +0,0 @@
1
- cli({
2
- stdout,
3
- stderr,
4
- exit,
5
- cwd: process.cwd(),
6
- argv: process.argv.slice(2)
7
- })
8
-