fit-file-parser 3.1.0 → 3.1.3
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/binary.js +1 -0
- package/dist/cjs/binary.js +1 -0
- package/dist/cjs/fit.js +7 -0
- package/dist/cjs/fit_types.d.ts +2 -0
- package/dist/fit.js +7 -0
- package/dist/fit_types.d.ts +2 -0
- package/package.json +10 -9
package/dist/binary.js
CHANGED
|
@@ -254,6 +254,7 @@ function applyOptions(data, field, options, fields) {
|
|
|
254
254
|
case 'gps_accuracy':
|
|
255
255
|
return convertTo(data, 'lengthUnits', options.lengthUnit);
|
|
256
256
|
case 'temperature':
|
|
257
|
+
case 'min_temperature':
|
|
257
258
|
case 'avg_temperature':
|
|
258
259
|
case 'max_temperature':
|
|
259
260
|
return convertTo(data, 'temperatureUnits', options.temperatureUnit);
|
package/dist/cjs/binary.js
CHANGED
|
@@ -260,6 +260,7 @@ function applyOptions(data, field, options, fields) {
|
|
|
260
260
|
case 'gps_accuracy':
|
|
261
261
|
return convertTo(data, 'lengthUnits', options.lengthUnit);
|
|
262
262
|
case 'temperature':
|
|
263
|
+
case 'min_temperature':
|
|
263
264
|
case 'avg_temperature':
|
|
264
265
|
case 'max_temperature':
|
|
265
266
|
return convertTo(data, 'temperatureUnits', options.temperatureUnit);
|
package/dist/cjs/fit.js
CHANGED
|
@@ -2554,6 +2554,13 @@ exports.FIT = {
|
|
|
2554
2554
|
},
|
|
2555
2555
|
20: {
|
|
2556
2556
|
name: 'record',
|
|
2557
|
+
90: {
|
|
2558
|
+
field: 'garmin_performance_condition',
|
|
2559
|
+
type: 'sint8',
|
|
2560
|
+
scale: null,
|
|
2561
|
+
offset: 0,
|
|
2562
|
+
units: '',
|
|
2563
|
+
},
|
|
2557
2564
|
253: {
|
|
2558
2565
|
field: 'timestamp',
|
|
2559
2566
|
type: 'date_time',
|
package/dist/cjs/fit_types.d.ts
CHANGED
|
@@ -642,6 +642,7 @@ export interface ParsedRecord {
|
|
|
642
642
|
vertical_ratio?: number;
|
|
643
643
|
stance_time_balance?: number;
|
|
644
644
|
step_length?: number;
|
|
645
|
+
garmin_performance_condition?: number;
|
|
645
646
|
absolute_pressure?: number;
|
|
646
647
|
depth?: number;
|
|
647
648
|
next_stop_depth?: number;
|
|
@@ -729,6 +730,7 @@ export interface ParsedCourse {
|
|
|
729
730
|
sport?: Sport;
|
|
730
731
|
name?: string;
|
|
731
732
|
capabilities?: CourseCapabilities;
|
|
733
|
+
sub_sport?: SubSport;
|
|
732
734
|
}
|
|
733
735
|
export interface ParsedCoursePoint {
|
|
734
736
|
timestamp: string;
|
package/dist/fit.js
CHANGED
|
@@ -2551,6 +2551,13 @@ export const FIT = {
|
|
|
2551
2551
|
},
|
|
2552
2552
|
20: {
|
|
2553
2553
|
name: 'record',
|
|
2554
|
+
90: {
|
|
2555
|
+
field: 'garmin_performance_condition',
|
|
2556
|
+
type: 'sint8',
|
|
2557
|
+
scale: null,
|
|
2558
|
+
offset: 0,
|
|
2559
|
+
units: '',
|
|
2560
|
+
},
|
|
2554
2561
|
253: {
|
|
2555
2562
|
field: 'timestamp',
|
|
2556
2563
|
type: 'date_time',
|
package/dist/fit_types.d.ts
CHANGED
|
@@ -642,6 +642,7 @@ export interface ParsedRecord {
|
|
|
642
642
|
vertical_ratio?: number;
|
|
643
643
|
stance_time_balance?: number;
|
|
644
644
|
step_length?: number;
|
|
645
|
+
garmin_performance_condition?: number;
|
|
645
646
|
absolute_pressure?: number;
|
|
646
647
|
depth?: number;
|
|
647
648
|
next_stop_depth?: number;
|
|
@@ -729,6 +730,7 @@ export interface ParsedCourse {
|
|
|
729
730
|
sport?: Sport;
|
|
730
731
|
name?: string;
|
|
731
732
|
capabilities?: CourseCapabilities;
|
|
733
|
+
sub_sport?: SubSport;
|
|
732
734
|
}
|
|
733
735
|
export interface ParsedCoursePoint {
|
|
734
736
|
timestamp: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fit-file-parser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Parse your .FIT files easily, directly from JS (Garmin, Polar, Suunto)",
|
|
7
7
|
"author": {
|
|
@@ -32,13 +32,6 @@
|
|
|
32
32
|
"garmin",
|
|
33
33
|
"parse"
|
|
34
34
|
],
|
|
35
|
-
"files": [
|
|
36
|
-
"dist/",
|
|
37
|
-
"README.md",
|
|
38
|
-
"LICENSE",
|
|
39
|
-
"CHANGELOG.md",
|
|
40
|
-
"CONTRIBUTORS.md"
|
|
41
|
-
],
|
|
42
35
|
"exports": {
|
|
43
36
|
".": {
|
|
44
37
|
"types": "./dist/fit-parser.d.ts",
|
|
@@ -47,6 +40,13 @@
|
|
|
47
40
|
}
|
|
48
41
|
},
|
|
49
42
|
"main": "dist/cjs/fit-parser.js",
|
|
43
|
+
"files": [
|
|
44
|
+
"CHANGELOG.md",
|
|
45
|
+
"CONTRIBUTORS.md",
|
|
46
|
+
"LICENSE",
|
|
47
|
+
"README.md",
|
|
48
|
+
"dist/"
|
|
49
|
+
],
|
|
50
50
|
"maintainers": [
|
|
51
51
|
{
|
|
52
52
|
"email": "jimmykane9@gmail.com",
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
"lint": "eslint .",
|
|
67
67
|
"fmt": "eslint --fix .",
|
|
68
68
|
"type-check": "tsc --noEmit",
|
|
69
|
-
"build": "tsc --noCheck && tsc --project tsconfig.cjs.json --noCheck && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json"
|
|
69
|
+
"build": "tsc --noCheck && tsc --project tsconfig.cjs.json --noCheck && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
|
|
70
|
+
"prepack": "npm run build"
|
|
70
71
|
},
|
|
71
72
|
"test": "vitest",
|
|
72
73
|
"dependencies": {
|