trackswap 0.2.5 → 0.2.7

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/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.5",
3
+ "version": "0.2.7",
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,9 @@
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 && npm run test:fit-encoding",
46
+ "test:fit-encoding": "esbuild test/fit-encoding.test.ts --bundle --platform=node --target=node18 --format=esm --outfile=/tmp/trackswap-fit-encoding.test.mjs && node /tmp/trackswap-fit-encoding.test.mjs",
47
+ "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
48
  "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
49
  "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
50
  "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",