@swimedge/metrics 1.0.7 → 1.0.8

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.
package/dist/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export interface SwimSession {
52
52
  equipment?: string[];
53
53
  avgDistancePerStroke?: number;
54
54
  routeCoordinates?: number[][];
55
+ routeMapImage?: string;
55
56
  deviceType?: string;
56
57
  osVersion?: string;
57
58
  healthKitWorkoutId?: string;
package/dist/index.js CHANGED
@@ -395,7 +395,7 @@ exports.METRICS_REGISTRY = {
395
395
  availableFrom: { watch: true, manual: true },
396
396
  swimTypes: [SwimType.INDOOR, SwimType.OPEN_WATER],
397
397
  hasChart: true,
398
- formatter: (s) => `${(0, exports.formatNumber)(s.avgStrokeRate, 1)} SPM`,
398
+ formatter: (s) => `${(0, exports.formatNumber)(s.avgStrokeRate, 0)} SPM`,
399
399
  condition: (s) => !!s.avgStrokeRate,
400
400
  },
401
401
  avgDistancePerStroke: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swimedge/metrics",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Shared metrics registry for SwimEdge (frontend, backend, watch)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",