incyclist-services 1.8.6 → 1.8.7

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.
@@ -88,6 +88,8 @@ class Segment extends Step_1.Step {
88
88
  if (part === this.getStart() && segTime > 0 && segTime < stepDuration)
89
89
  part += stepDuration;
90
90
  const res = step.getLimits(part, includeStepInfo);
91
+ if (res === undefined)
92
+ return undefined;
91
93
  const stepStart = res.start;
92
94
  res.start = Math.floor(segTime / stepDuration) * stepDuration + stepStart;
93
95
  return res;
@@ -85,6 +85,8 @@ export class Segment extends Step {
85
85
  if (part === this.getStart() && segTime > 0 && segTime < stepDuration)
86
86
  part += stepDuration;
87
87
  const res = step.getLimits(part, includeStepInfo);
88
+ if (res === undefined)
89
+ return undefined;
88
90
  const stepStart = res.start;
89
91
  res.start = Math.floor(segTime / stepDuration) * stepDuration + stepStart;
90
92
  return res;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "incyclist-services",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "peerDependencies": {
5
5
  "gd-eventlog": "^0.1.27"
6
6
  },
7
7
  "dependencies": {
8
8
  "@garmin/fitsdk": "^21.213.0",
9
- "axios": "^1.19.0",
10
- "incyclist-devices": "^3.0.38",
9
+ "axios": "^1.20.0",
10
+ "incyclist-devices": "^3.0.40",
11
11
  "promise.any": "^2.0.6",
12
12
  "semver": "^7.7.4",
13
13
  "tcx-builder": "^1.1.1",
@@ -19,14 +19,14 @@
19
19
  "@serialport/binding-mock": "^10.2.2",
20
20
  "@serialport/bindings-interface": "^1.2.2",
21
21
  "@types/jest": "^30.0.0",
22
- "@types/node": "^26.2.0",
23
- "@typescript-eslint/eslint-plugin": "^8.65.0",
24
- "@typescript-eslint/parser": "^8.69.0",
22
+ "@types/node": "^26.6.4",
23
+ "@typescript-eslint/eslint-plugin": "^8.70.1",
24
+ "@typescript-eslint/parser": "^8.71.0",
25
25
  "dotenv": "^17.4.2",
26
26
  "eslint": "^10.9.1",
27
27
  "formdata-node": "^6.0.3",
28
28
  "globals": "^17.12.0",
29
- "jest": "^30.5.0",
29
+ "jest": "^30.5.2",
30
30
  "jsdoc": "^4.0.5",
31
31
  "ts-jest": "^29.4.12",
32
32
  "typedoc": "^0.28.20",