@garmin/fitsdk 21.169.0 → 21.170.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/package.json +1 -1
- package/src/accumulator.js +2 -2
- package/src/bit-stream.js +2 -2
- package/src/crc-calculator.js +2 -2
- package/src/decoder.js +2 -2
- package/src/encoder.js +15 -5
- package/src/fit.js +11 -2
- package/src/index.js +2 -2
- package/src/mesg-definition.js +3 -3
- package/src/output-stream.js +2 -2
- package/src/profile.js +1389 -1487
- package/src/stream.js +2 -2
- package/src/utils-hr-mesg.js +2 -2
- package/src/utils-internal.js +2 -2
- package/src/utils-memo-glob.js +2 -2
- package/src/utils.js +7 -27
package/src/stream.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.170.0Release
|
|
9
|
+
// Tag = production/release/21.170.0-0-g5991e72
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/utils-hr-mesg.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.170.0Release
|
|
9
|
+
// Tag = production/release/21.170.0-0-g5991e72
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/utils-internal.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.170.0Release
|
|
9
|
+
// Tag = production/release/21.170.0-0-g5991e72
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/utils-memo-glob.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.170.0Release
|
|
9
|
+
// Tag = production/release/21.170.0-0-g5991e72
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
import Profile from "./profile.js";
|
package/src/utils.js
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.170.0Release
|
|
9
|
+
// Tag = production/release/21.170.0-0-g5991e72
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
import FIT from "./fit.js";
|
|
14
|
+
|
|
13
15
|
/**
|
|
14
16
|
* The millisecond offset between UNIX and FIT Epochs (631065600000).
|
|
15
17
|
* @const {number}
|
|
@@ -34,33 +36,11 @@ const convertDateToDateTime = (date) => {
|
|
|
34
36
|
return (date.getTime() - FIT_EPOCH_MS) / 1000;
|
|
35
37
|
};
|
|
36
38
|
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* FIT Base Type enum, for use with Developer Data Field Descriptions
|
|
40
|
-
*/
|
|
41
|
-
const FitBaseType = Object.freeze({
|
|
42
|
-
enum: 0,
|
|
43
|
-
sint8: 1,
|
|
44
|
-
uint8: 2,
|
|
45
|
-
sint16: 131,
|
|
46
|
-
uint16: 132,
|
|
47
|
-
sint32: 133,
|
|
48
|
-
uint32: 134,
|
|
49
|
-
string: 7,
|
|
50
|
-
float32: 136,
|
|
51
|
-
float64: 137,
|
|
52
|
-
uint8z: 10,
|
|
53
|
-
uint16z: 139,
|
|
54
|
-
uint32z: 140,
|
|
55
|
-
byte: 13,
|
|
56
|
-
sint64: 142,
|
|
57
|
-
uint64: 143,
|
|
58
|
-
uint64z: 144,
|
|
59
|
-
});
|
|
60
|
-
|
|
61
39
|
export default {
|
|
62
40
|
FIT_EPOCH_MS,
|
|
63
41
|
convertDateTimeToDate,
|
|
64
42
|
convertDateToDateTime,
|
|
65
|
-
FitBaseType,
|
|
43
|
+
FitBaseType: FIT.BaseType,
|
|
44
|
+
BaseTypeToFieldType: FIT.BaseTypeToFieldType,
|
|
45
|
+
FieldTypeToBaseType: FIT.FieldTypeToBaseType,
|
|
66
46
|
};
|