@rasifix/orienteering-utils 2.0.19 → 2.0.20

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.
@@ -355,7 +355,7 @@ function defineLegProperties(legs) {
355
355
  if (selected.length > 0) {
356
356
  leg.idealSplit = Math.round(selected.reduce(sum, 0) / selected.length);
357
357
  if (leg.idealSplit < 0 || isNaN(leg.idealSplit)) {
358
- console.log("invalid ideal split calculated for leg " + code, leg.idealSplit);
358
+ console.log("invalid ideal split calculated for leg " + code, leg.idealSplit, selected);
359
359
  leg.idealSplit = 30;
360
360
  }
361
361
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasifix/orienteering-utils",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "utility functions for orienteering result analyzis",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",