escover 1.17.2 → 1.18.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,9 @@
1
+ 2022.01.30, v1.18.0
2
+
3
+ feature:
4
+ - escover: improve generation of SequenceExpressions
5
+
6
+
1
7
  2022.01.27, v1.17.2
2
8
 
3
9
  fix:
@@ -1,4 +1,8 @@
1
- import putout from 'putout';
1
+ import {
2
+ parse,
3
+ generate,
4
+ transform,
5
+ } from 'putout';
2
6
  import * as mark from './plugin-mark/index.js';
3
7
 
4
8
  export const instrument = (url, source) => {
@@ -14,7 +18,10 @@ export const instrument = (url, source) => {
14
18
  ],
15
19
  };
16
20
 
17
- const {code} = putout(source, options);
21
+ const ast = parse(source);
22
+ transform(ast, source, options);
23
+ const {code} = generate(ast);
24
+
18
25
  return code;
19
26
  };
20
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "1.17.2",
3
+ "version": "1.18.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",