escover 2.4.0 → 2.5.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,14 @@
1
+ 2022.10.20, v2.5.1
2
+
3
+ feature:
4
+ - package: putout v28.0.0
5
+ - package: supertape v8.0.1
6
+
7
+ 2022.07.30, v2.5.0
8
+
9
+ feature:
10
+ - escover: add ability to handle multiple load
11
+
1
12
  2022.07.30, v2.4.0
2
13
 
3
14
  feature:
package/README.md CHANGED
@@ -118,7 +118,7 @@ If you want to disable coverage on status code without erroring, use `ESCOVER_SU
118
118
  import {SKIPED} from 'supertape/exit-codes';
119
119
 
120
120
  const env = {
121
- ESCOVER_SUCCESS_EXIT_CODE: SKIPPED,
121
+ ESCOVER_SUCCESS_EXIT_CODE: SKIPED,
122
122
  };
123
123
 
124
124
  export default {
package/lib/escover.js CHANGED
@@ -1,4 +1,3 @@
1
- import montag from 'montag';
2
1
  import process from 'process';
3
2
 
4
3
  import {instrument} from './instrument/index.js';
@@ -45,7 +44,13 @@ export async function load(url, context, defaultLoad) {
45
44
  source: rawSource,
46
45
  };
47
46
 
48
- const source = montag`
47
+ if (rawSource.includes('const __c4'))
48
+ return {
49
+ format,
50
+ source: rawSource,
51
+ };
52
+
53
+ const source = `
49
54
  const __c4 = global.__createC4('${url}');
50
55
  ${instrument(url, rawSource)}
51
56
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "2.4.0",
3
+ "version": "2.5.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",
@@ -47,7 +47,7 @@
47
47
  "montag": "^1.2.1",
48
48
  "once": "^1.4.0",
49
49
  "picomatch": "^2.3.1",
50
- "putout": "^27.0.1",
50
+ "putout": "^28.0.0",
51
51
  "strip-ansi": "^7.0.1",
52
52
  "table": "^6.8.0",
53
53
  "try-catch": "^3.0.0",
@@ -66,6 +66,6 @@
66
66
  "eslint-plugin-n": "^15.2.4",
67
67
  "eslint-plugin-putout": "^16.0.0",
68
68
  "madrun": "^9.0.0",
69
- "supertape": "^7.0.0"
69
+ "supertape": "^8.0.1"
70
70
  }
71
71
  }