@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.
@@ -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
- const speedracerPath = path.resolve(
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "4.25.0",
3
+ "version": "4.25.1",
4
4
  "description": "Node.js security instrumentation by Contrast Security",
5
5
  "keywords": [
6
6
  "security",