@teamscale/coverage-collector 0.0.1-beta.34 → 0.0.1-beta.35

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamscale/coverage-collector",
3
- "version": "0.0.1-beta.34",
3
+ "version": "0.0.1-beta.35",
4
4
  "description": "Collector for JavaScript code coverage information",
5
5
  "main": "dist/src/main.js",
6
6
  "bin": "dist/src/main.js",
package/dist/src/main.js CHANGED
@@ -122,7 +122,8 @@ class Main {
122
122
  const logfilePath = config.log_to_file.trim();
123
123
  mkdirp_1.default.sync(path_1.default.dirname(logfilePath));
124
124
  const logLevel = config.log_level;
125
- return bunyan_1.default.createLogger({ name: "Instrumenter",
125
+ return bunyan_1.default.createLogger({
126
+ name: 'Instrumenter',
126
127
  streams: [
127
128
  {
128
129
  level: logLevel,
@@ -137,7 +138,8 @@ class Main {
137
138
  level: logLevel,
138
139
  path: logfilePath
139
140
  }
140
- ] });
141
+ ]
142
+ });
141
143
  }
142
144
  /**
143
145
  * Entry point of the Teamscale JavaScript Profiler.
@@ -1,5 +1,5 @@
1
1
  import { IDataStorage } from '../storage/DataStorage';
2
- import Logger from "bunyan";
2
+ import Logger from 'bunyan';
3
3
  /**
4
4
  * Various constants that are used to exchange data between
5
5
  * the instrumented application and the coverage collector.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { Socket } from 'net';
3
3
  import { IDataStorage } from '../storage/DataStorage';
4
- import Logger from "bunyan";
4
+ import Logger from 'bunyan';
5
5
  /**
6
6
  * The session maintains the relevant information for a client.
7
7
  * One session is created for each client.
@@ -94,7 +94,7 @@ class Session {
94
94
  // Step to the next column to map back to the original.
95
95
  // `originalPosition.name` is the token on the position, that is, if it is present
96
96
  // we increment the column by its length.
97
- column = column + Math.max(1, ((_b = (_a = originalPosition.name) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1));
97
+ column = column + Math.max(1, (_b = (_a = originalPosition.name) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1);
98
98
  }
99
99
  // And the next line
100
100
  line++;
@@ -1,4 +1,4 @@
1
- import Logger from "bunyan";
1
+ import Logger from 'bunyan';
2
2
  /**
3
3
  * Lines covered for the specified file.
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamscale/coverage-collector",
3
- "version": "0.0.1-beta.34",
3
+ "version": "0.0.1-beta.35",
4
4
  "description": "Collector for JavaScript code coverage information",
5
5
  "main": "dist/src/main.js",
6
6
  "bin": "dist/src/main.js",