@rasifix/orienteering-utils 2.0.71 → 2.0.73

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.
@@ -92,7 +92,7 @@ var SolvFormat = /** @class */ (function () {
92
92
  }
93
93
  runner.splits.push({ code: tokens[i_1], time: time });
94
94
  }
95
- runner.splits.push({ code: "Zi", time: runner.time });
95
+ runner.splits.push({ code: "Zi", time: (0, time_1.parseTime)(runner.time) ? runner.time : undefined });
96
96
  category.runners.push(runner);
97
97
  });
98
98
  return {
@@ -253,7 +253,7 @@ function parseRanking(runners) {
253
253
  if (currentSplit.overall.behind !== undefined && prevSplit.overall.behind !== undefined && currentSplit.splitTime !== undefined) {
254
254
  var behindDiff = currentSplit.overall.behind - prevSplit.overall.behind;
255
255
  if (behindDiff < -currentSplit.splitTime) {
256
- console.warn("Anomaly detected for runner ".concat(runner.team, " (ID: ").concat(runner.id, ") on split ").concat(currentSplit.legCode, ": overall behind decreased by ").concat(-behindDiff, "s, but split time is ").concat(currentSplit.splitTime, "s"));
256
+ console.debug("Anomaly detected for runner ".concat(runner.team, " (ID: ").concat(runner.id, ") on split ").concat(currentSplit.legCode, ": overall behind decreased by ").concat(-behindDiff, "s, but split time is ").concat(currentSplit.splitTime, "s"));
257
257
  }
258
258
  }
259
259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasifix/orienteering-utils",
3
- "version": "2.0.71",
3
+ "version": "2.0.73",
4
4
  "description": "utility functions for orienteering result analyzis",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",