@contrast/agent 4.25.0 → 4.25.1
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.
|
File without changes
|
package/lib/list-installed.js
CHANGED
|
@@ -38,6 +38,7 @@ const execFile = util.promisify(require('child_process').execFile);
|
|
|
38
38
|
* @param {*} logger
|
|
39
39
|
* @returns {Promise<Result>}
|
|
40
40
|
*/
|
|
41
|
+
// eslint-disable-next-line complexity
|
|
41
42
|
module.exports = async function listInstalled(cwd, logger) {
|
|
42
43
|
const execFileOpts = {
|
|
43
44
|
cwd,
|
|
@@ -169,7 +169,7 @@ class Speedracer {
|
|
|
169
169
|
this.logger.info('starting contrast-service');
|
|
170
170
|
this.startTime = Date.now();
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
let speedracerPath = path.resolve(
|
|
173
173
|
__dirname,
|
|
174
174
|
'..',
|
|
175
175
|
'..',
|
|
@@ -179,6 +179,10 @@ class Speedracer {
|
|
|
179
179
|
`contrast-service-${process.platform}-${process.arch}`
|
|
180
180
|
);
|
|
181
181
|
|
|
182
|
+
if (process.platform === 'win32') {
|
|
183
|
+
speedracerPath = `${speedracerPath}.exe`;
|
|
184
|
+
}
|
|
185
|
+
|
|
182
186
|
try {
|
|
183
187
|
fs.statSync(speedracerPath);
|
|
184
188
|
} catch (error) {
|