fit-file-parser 6.1.1 → 6.2.0
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/CHANGELOG.md +48 -0
- package/PROFILE.md +39 -8
- package/README.md +49 -10
- package/dist/binary.js +25 -12
- package/dist/cjs/binary.js +25 -12
- package/dist/cjs/fit-parser.d.ts +8 -0
- package/dist/cjs/fit-parser.js +84 -0
- package/dist/cjs/fit_types.d.ts +23 -1
- package/dist/cjs/profile-lookup-data.d.ts +12 -0
- package/dist/cjs/profile-lookup-data.js +990 -0
- package/dist/cjs/profile-lookup.js +8 -13
- package/dist/cjs/profile.js +172 -981
- package/dist/cjs/type_generator.js +1 -0
- package/dist/fit-parser.d.ts +8 -0
- package/dist/fit-parser.js +84 -0
- package/dist/fit_types.d.ts +23 -1
- package/dist/profile-lookup-data.d.ts +12 -0
- package/dist/profile-lookup-data.js +987 -0
- package/dist/profile-lookup.js +1 -6
- package/dist/profile.js +172 -981
- package/dist/type_generator.js +1 -0
- package/package.json +18 -7
package/dist/type_generator.js
CHANGED
|
@@ -240,6 +240,7 @@ export function generateFitType() {
|
|
|
240
240
|
time_in_zone: 'parsed_time_in_zone',
|
|
241
241
|
activity_metrics: 'parsed_activity_metrics',
|
|
242
242
|
user_metrics: 'parsed_user_metrics',
|
|
243
|
+
batteries: 'parsed_battery',
|
|
243
244
|
};
|
|
244
245
|
const referenceProperties = {
|
|
245
246
|
file_creator: 'parsed_file_creator',
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fit-file-parser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.2.0",
|
|
5
5
|
"private": false,
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "JavaScript and TypeScript library for parsing and encoding FIT files, with developer-field support, raw message access, and ESM/CommonJS builds.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "jimmykane"
|
|
9
9
|
},
|
|
@@ -24,13 +24,22 @@
|
|
|
24
24
|
"url": "git+ssh://git@github.com/jimmykane/fit-parser.git"
|
|
25
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/jimmykane/fit-parser"
|
|
27
|
+
"url": "https://github.com/jimmykane/fit-parser/issues"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"fit",
|
|
31
|
-
"
|
|
31
|
+
"fit-file",
|
|
32
|
+
"fit-parser",
|
|
33
|
+
"fit-file-parsing",
|
|
34
|
+
"fit-encoder",
|
|
35
|
+
"javascript",
|
|
36
|
+
"typescript",
|
|
37
|
+
"nodejs",
|
|
38
|
+
"fitness",
|
|
32
39
|
"garmin",
|
|
33
|
-
"
|
|
40
|
+
"polar",
|
|
41
|
+
"suunto",
|
|
42
|
+
"binary-parser"
|
|
34
43
|
],
|
|
35
44
|
"exports": {
|
|
36
45
|
".": {
|
|
@@ -83,10 +92,11 @@
|
|
|
83
92
|
}
|
|
84
93
|
],
|
|
85
94
|
"scripts": {
|
|
86
|
-
"dev": "tsx --watch --watch-path=src/type_generator.ts --watch-path=src/fit.ts --watch-path=src/profile.ts codegen/codegen.ts",
|
|
95
|
+
"dev": "tsx --watch --watch-path=src/type_generator.ts --watch-path=src/fit.ts --watch-path=src/profile.ts --watch-path=src/profile-lookup-data.ts codegen/codegen.ts",
|
|
87
96
|
"codegen": "tsx codegen/codegen.ts",
|
|
88
97
|
"codegen:check": "tsx codegen/codegen.ts --check",
|
|
89
|
-
"profile:
|
|
98
|
+
"profile:budget": "tsx scripts/profile-lookup-budget.ts",
|
|
99
|
+
"profile:check": "npm run codegen:check && tsx scripts/profile-check.ts && npm run profile:budget",
|
|
90
100
|
"compatibility:check": "npm run build && tsx scripts/compatibility-check.ts",
|
|
91
101
|
"corpus:check": "tsx scripts/corpus-check.ts",
|
|
92
102
|
"check": "npm run profile:check && npm run lint && npm run type-check && npm test -- --run && npm run build",
|
|
@@ -112,6 +122,7 @@
|
|
|
112
122
|
"@antfu/eslint-config": "^6.2.0",
|
|
113
123
|
"@types/node": "^24.10.1",
|
|
114
124
|
"@vitest/coverage-v8": "^4.0.13",
|
|
125
|
+
"esbuild": "^0.25.12",
|
|
115
126
|
"eslint": "^9.10.0",
|
|
116
127
|
"eslint-plugin-format": "^1.1.0",
|
|
117
128
|
"tsx": "^4.21.0",
|