escover 1.17.1 → 1.17.2

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.27, v1.17.2
2
+
3
+ fix:
4
+ - mark: StringLiteral
5
+
6
+
1
7
  2022.01.27, v1.17.1
2
8
 
3
9
  fix:
@@ -53,16 +53,6 @@ export const fix = (path, {options}) => {
53
53
  return;
54
54
  }
55
55
 
56
- if (path.isIdentifier()) {
57
- const {node} = path;
58
-
59
- replaceWith(path, SequenceExpression([
60
- lineNode.expression,
61
- node,
62
- ]));
63
- return;
64
- }
65
-
66
56
  if (path.isCallExpression() || path.isNewExpression()) {
67
57
  const {node} = path;
68
58
 
@@ -100,6 +90,16 @@ export const fix = (path, {options}) => {
100
90
  ]);
101
91
  }
102
92
 
93
+ if (path.isExpression()) {
94
+ const {node} = path;
95
+
96
+ replaceWith(path, SequenceExpression([
97
+ lineNode.expression,
98
+ node,
99
+ ]));
100
+ return;
101
+ }
102
+
103
103
  replaceWith(path, BlockStatement([
104
104
  node,
105
105
  ]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
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",