@rasifix/orienteering-utils 2.0.54 → 2.0.56

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,6 +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
96
  category.runners.push(runner);
96
97
  });
97
98
  return {
@@ -379,6 +379,10 @@ function defineLegProperties(legs) {
379
379
  leg.idealSplit = 30;
380
380
  }
381
381
  }
382
+ else {
383
+ console.log("no valid splits for leg " + code + " found, setting ideal split to 30s");
384
+ leg.idealSplit = 30;
385
+ }
382
386
  // only if there are valid splits for this leg
383
387
  if (leg.runners.length > 0) {
384
388
  var fastestSplit_1 = leg.runners[0].split;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasifix/orienteering-utils",
3
- "version": "2.0.54",
3
+ "version": "2.0.56",
4
4
  "description": "utility functions for orienteering result analyzis",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",