@testomatio/reporter 2.3.0 → 2.3.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.
@@ -409,7 +409,7 @@ function readLatestRunId() {
409
409
  return fs_1.default.readFileSync(filePath)?.toString()?.trim() ?? null;
410
410
  }
411
411
  catch (e) {
412
- console.warn('Could not read latest run ID from file: ', e);
412
+ debug('Could not read latest run ID from file: ', e);
413
413
  return null;
414
414
  }
415
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -361,7 +361,7 @@ function readLatestRunId() {
361
361
  try {
362
362
  const filePath = path.join(os.tmpdir(), `testomatio.latest.run`);
363
363
  if (!fs.existsSync(filePath)) return null;
364
-
364
+
365
365
  const stats = fs.statSync(filePath);
366
366
  const diff = +new Date() - +stats.mtime;
367
367
  const diffHours = diff / 1000 / 60 / 60;
@@ -369,7 +369,7 @@ function readLatestRunId() {
369
369
 
370
370
  return fs.readFileSync(filePath)?.toString()?.trim() ?? null;
371
371
  } catch (e) {
372
- console.warn('Could not read latest run ID from file: ', e);
372
+ debug('Could not read latest run ID from file: ', e);
373
373
  return null;
374
374
  }
375
375
  }