browserstack-cypress-cli 1.32.5 → 1.32.6

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.
@@ -2,7 +2,7 @@ const path = require('path');
2
2
  const fs = require('fs');
3
3
  const { consoleHolder } = require('../testObservability/helper/constants');
4
4
  const HttpsProxyAgent = require('https-proxy-agent');
5
-
5
+ const { v4: uuidv4 } = require('uuid');
6
6
  const axios = require('axios'),
7
7
  logger = require('./logger').winstonLogger,
8
8
  utils = require('./utils'),
@@ -108,7 +108,9 @@ exports.patchCypressConfigFileContent = (bsConfig) => {
108
108
 
109
109
  let confPath = bsConfig.run_settings.cypress_config_file;
110
110
  let patchedConfPathList = confPath.split(path.sep);
111
- patchedConfPathList[patchedConfPathList.length - 1] = 'patched_ats_config_file.js'
111
+ const uniqueNamePatchFileName = `patched_ats_config_file_${uuidv4()}.js`;
112
+ patchedConfPathList[patchedConfPathList.length - 1] = uniqueNamePatchFileName;
113
+ logger.debug("Patch file name is " + uniqueNamePatchFileName);
112
114
  const patchedConfPath = patchedConfPathList.join(path.sep);
113
115
 
114
116
  bsConfig.run_settings.patched_cypress_config_file = patchedConfPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browserstack-cypress-cli",
3
- "version": "1.32.5",
3
+ "version": "1.32.6",
4
4
  "description": "BrowserStack Cypress CLI for Cypress integration with BrowserStack's remote devices.",
5
5
  "main": "index.js",
6
6
  "scripts": {