@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
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({
|
|
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,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
|
|
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, (
|
|
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++;
|