trackswap 0.2.4 → 0.2.6
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/activity/converters.d.ts +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +12 -12
- package/dist/types.d.ts +1 -1
- package/package.json +3 -2
package/dist/types.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export interface UserProfileType {
|
|
|
80
80
|
* tcx -> Activity
|
|
81
81
|
* 对应 gpx 的 trk , fit 的 sessions, tcx 的 Activity
|
|
82
82
|
*/
|
|
83
|
-
export interface ActivityType extends SessionMesgType {
|
|
83
|
+
export interface ActivityType extends Partial<SessionMesgType> {
|
|
84
84
|
/**
|
|
85
85
|
* 活动索引
|
|
86
86
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trackswap",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "A typed, adapter-based toolkit for decoding, normalizing and transcoding FIT, GPX and TCX data.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"test:fit-coords": "npm run build:dev && node scripts/verify-fit-coordinates.mjs",
|
|
43
43
|
"test:tcx-course": "npm run build:dev && node scripts/tcx-course-smoke.mjs",
|
|
44
44
|
"test:routes-fit": "npm run build:dev && node scripts/routes-only-fit-smoke.mjs",
|
|
45
|
-
"test": "npm run test:architecture && npm run test:health && npm run test:garmin-parity && npm run test:fit-structure",
|
|
45
|
+
"test": "npm run test:architecture && npm run test:health && npm run test:garmin-parity && npm run test:fit-structure && npm run test:tcx-activity",
|
|
46
|
+
"test:tcx-activity": "esbuild test/tcx-activity.test.ts --bundle --platform=node --target=node18 --format=esm --outfile=/tmp/trackswap-tcx-activity.test.mjs && node /tmp/trackswap-tcx-activity.test.mjs",
|
|
46
47
|
"test:architecture": "esbuild test/architecture.test.ts --bundle --platform=node --target=node18 --format=esm --outfile=/tmp/trackswap-architecture.test.mjs && node /tmp/trackswap-architecture.test.mjs",
|
|
47
48
|
"test:health": "esbuild test/health-fit.test.ts --bundle --platform=node --target=node18 --format=esm --outfile=/tmp/trackswap-health-fit.test.mjs && node /tmp/trackswap-health-fit.test.mjs",
|
|
48
49
|
"test:garmin-parity": "esbuild test/garmin-sdk-parity.test.ts --bundle --platform=node --target=node18 --format=esm --outfile=/tmp/trackswap-garmin-sdk-parity.test.mjs && node /tmp/trackswap-garmin-sdk-parity.test.mjs",
|