@teamscale/lib-instrument 0.1.0-beta.2 → 0.1.0-beta.3

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.
Files changed (2) hide show
  1. package/lib/visitor.js +4 -4
  2. package/package.json +11 -19
package/lib/visitor.js CHANGED
@@ -413,9 +413,9 @@ function coverLogicalExpression(path) {
413
413
  const codeVisitor = {
414
414
  ArrowFunctionExpression: entries(convertArrowExpression, coverFunction),
415
415
  AssignmentPattern: entries(coverAssignmentPattern),
416
- BlockStatement: entries(),
417
- ExportDefaultDeclaration: entries(),
418
- ExportNamedDeclaration: entries(),
416
+ BlockStatement: entries(), // ignore processing only
417
+ ExportDefaultDeclaration: entries(), // ignore processing only
418
+ ExportNamedDeclaration: entries(), // ignore processing only
419
419
  ClassMethod: entries(coverFunction),
420
420
  ClassDeclaration: entries(parenthesizedExpressionProp('superClass')),
421
421
  ClassProperty: entries(coverClassPropDeclarator),
@@ -428,7 +428,7 @@ const codeVisitor = {
428
428
  ReturnStatement: entries(coverStatement),
429
429
  ThrowStatement: entries(coverStatement),
430
430
  TryStatement: entries(coverStatement),
431
- VariableDeclaration: entries(),
431
+ VariableDeclaration: entries(), // ignore processing only
432
432
  VariableDeclarator: entries(coverVariableDeclarator),
433
433
  IfStatement: entries(blockProp('consequent'), blockProp('alternate'), coverStatement, coverIfBranches),
434
434
  ForStatement: entries(blockProp('body'), coverStatement),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamscale/lib-instrument",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "Library for adding coverage statements to JS code; forked from istanbul-lib-coverage",
5
5
  "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",
6
6
  "maintainers": [
@@ -14,33 +14,25 @@
14
14
  "lib"
15
15
  ],
16
16
  "dependencies": {
17
- "@babel/core": "^7.23.2",
18
- "@babel/parser": "^7.23.0",
19
- "@babel/traverse": "^7.23.2",
20
- "@types/node": "^20.8.10",
21
- "semver": "^7.5.4",
17
+ "@babel/core": "^7.23.7",
18
+ "@babel/parser": "^7.23.6",
19
+ "@babel/traverse": "^7.23.7",
20
+ "@types/node": "^20.11.0",
22
21
  "source-map": "^0.7.4",
23
- "typescript": "^5.2.2"
22
+ "typescript": "^5.3.3"
24
23
  },
25
24
  "devDependencies": {
26
- "@babel/cli": "^7.23.0",
27
- "@babel/types": "^7.23.0",
28
- "@types/babel__core": "^7.20.3",
29
- "@types/babel__parser": "^7.1.1",
30
- "@types/chai": "^4.3.9",
31
- "@types/clone": "^2.1.3",
25
+ "@babel/cli": "^7.23.4",
26
+ "@babel/types": "^7.23.6",
27
+ "@types/babel__core": "^7.20.5",
28
+ "@types/clone": "^2.1.4",
32
29
  "@types/js-yaml": "^4.0.9",
33
- "@types/jest": "^29.5.6",
30
+ "@types/jest": "^29.5.11",
34
31
  "babel-jest": "^29.7.0",
35
- "chai": "^4.2.0",
36
32
  "clone": "^2.1.2",
37
- "debug": "^4.3.4",
38
- "documentation": "^14.0.2",
39
33
  "js-yaml": "^4.1.0",
40
34
  "ts-jest": "^29.1.1",
41
35
  "jest": "^29.7.0",
42
- "nopt": "^4.0.1",
43
- "nyc": "^15.1.0",
44
36
  "rimraf": "^5.0.5"
45
37
  },
46
38
  "license": "BSD-3-Clause",