fit-file-parser 6.1.1 → 6.1.2
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 +16 -0
- package/PROFILE.md +16 -8
- package/README.md +7 -5
- 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 +6 -981
- 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 +6 -981
- package/package.json +5 -3
package/dist/profile-lookup.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FIT_PROFILE_COURSE_POINTS, FIT_PROFILE_GARMIN_PRODUCTS, FIT_PROFILE_MANUFACTURERS, FIT_PROFILE_SPORTS, FIT_PROFILE_SUB_SPORTS, } from './profile-lookup-data.js';
|
|
2
2
|
function normalizeProfileName(value) {
|
|
3
3
|
return value.trim().toLowerCase().replace(/[\s_-]/g, '');
|
|
4
4
|
}
|
|
5
|
-
const FIT_PROFILE_MANUFACTURERS = PROFILE_TYPES.manufacturer;
|
|
6
|
-
const FIT_PROFILE_GARMIN_PRODUCTS = PROFILE_TYPES.garmin_product;
|
|
7
|
-
const FIT_PROFILE_SPORTS = PROFILE_TYPES.sport;
|
|
8
|
-
const FIT_PROFILE_SUB_SPORTS = PROFILE_TYPES.sub_sport;
|
|
9
|
-
const FIT_PROFILE_COURSE_POINTS = PROFILE_TYPES.course_point;
|
|
10
5
|
function createProfileIdMap(mapping) {
|
|
11
6
|
return new Map(Object.entries(mapping)
|
|
12
7
|
.filter((entry) => typeof entry[1] === 'string')
|