@testomatio/reporter 2.1.3-beta.2-multi-links → 2.1.3-beta.3-multi-links

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.
@@ -45,6 +45,7 @@ const os_1 = __importDefault(require("os"));
45
45
  const constants_js_1 = require("./constants.js");
46
46
  const utils_js_1 = require("./utils/utils.js");
47
47
  const crypto_1 = __importDefault(require("crypto"));
48
+ const startTime = Date.now();
48
49
  const debug = (0, debug_1.default)('@testomatio/reporter:storage');
49
50
  class DataStorage {
50
51
  static #instance;
@@ -222,7 +223,7 @@ function stringToMD5Hash(str) {
222
223
  const md5 = crypto_1.default.createHash('md5');
223
224
  md5.update(str);
224
225
  const hash = md5.digest('hex');
225
- return hash;
226
+ return `${startTime}_${hash}`;
226
227
  }
227
228
  exports.dataStorage = DataStorage.getInstance();
228
229
  // TODO: consider using fs promises instead of writeSync/appendFileSync to