Skip to content

Commit 37a8da5

Browse files
authored
Garmin FIT SDK 21.115.00
Garmin FIT SDK 21.115.00
2 parents 3b6956e + ff8edde commit 37a8da5

File tree

14 files changed

+1480
-471
lines changed

14 files changed

+1480
-471
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@garmin-fit/sdk",
3-
"version": "21.107.0",
3+
"version": "21.115.0",
44
"description": "FIT JavaScript SDK",
55
"main": "src/index.js",
66
"type": "module",

src/accumulator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.107Release
9-
// Tag = production/release/21.107.00-0-geade151
8+
// Profile Version = 21.115Release
9+
// Tag = production/release/21.115.00-0-gfe0a7f8
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/bit-stream.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.107Release
9-
// Tag = production/release/21.107.00-0-geade151
8+
// Profile Version = 21.115Release
9+
// Tag = production/release/21.115.00-0-gfe0a7f8
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/crc-calculator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.107Release
9-
// Tag = production/release/21.107.00-0-geade151
8+
// Profile Version = 21.115Release
9+
// Tag = production/release/21.115.00-0-gfe0a7f8
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/decoder.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.107Release
9-
// Tag = production/release/21.107.00-0-geade151
8+
// Profile Version = 21.115Release
9+
// Tag = production/release/21.115.00-0-gfe0a7f8
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

@@ -227,14 +227,14 @@ class Decoder {
227227
#decodeNextRecord() {
228228
const recordHeader = this.#stream.peekByte();
229229

230-
if ((recordHeader & MESG_DEFINITION_MASK) === MESG_HEADER_MASK) {
231-
return this.#decodeMessage();
232-
}
233-
234230
if ((recordHeader & COMPRESSED_HEADER_MASK) === COMPRESSED_HEADER_MASK) {
235231
return this.#decodeCompressedTimestampDataMessage();
236232
}
237233

234+
if ((recordHeader & MESG_DEFINITION_MASK) === MESG_HEADER_MASK) {
235+
return this.#decodeMessage();
236+
}
237+
238238
if ((recordHeader & MESG_DEFINITION_MASK) === MESG_DEFINITION_MASK) {
239239
return this.#decodeMessageDefinition();
240240
}
@@ -380,9 +380,10 @@ class Decoder {
380380
else {
381381
this.#expandSubFields(mesgNum, message);
382382
this.#expandComponents(mesgNum, message, fields);
383-
this.#transformValues(message, messageDefinition);
384383
}
385384

385+
this.#transformValues(message, messageDefinition);
386+
386387
if (messageDefinition.name != null) {
387388
Object.keys(message).forEach((key) => {
388389
message[key] = message[key].fieldValue;

src/fit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.107Release
9-
// Tag = production/release/21.107.00-0-geade151
8+
// Profile Version = 21.115Release
9+
// Tag = production/release/21.115.00-0-gfe0a7f8
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.107Release
9-
// Tag = production/release/21.107.00-0-geade151
8+
// Profile Version = 21.115Release
9+
// Tag = production/release/21.115.00-0-gfe0a7f8
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

0 commit comments

Comments
 (0)