quantified-self-lib
Advanced tools
Comparing version 3.1.5 to 3.2.0
@@ -26,2 +26,3 @@ /** | ||
'cycling' = "Cycling", | ||
'cycling_road' = "Cycling", | ||
'cycling_track_cycling' = "Cycling", | ||
@@ -28,0 +29,0 @@ 'cycling_gravel_cycling' = "Cycling", |
@@ -29,2 +29,3 @@ "use strict"; | ||
ActivityTypes["cycling"] = "Cycling"; | ||
ActivityTypes["cycling_road"] = "Cycling"; | ||
ActivityTypes["cycling_track_cycling"] = "Cycling"; | ||
@@ -31,0 +32,0 @@ ActivityTypes["cycling_gravel_cycling"] = "Cycling"; |
@@ -98,2 +98,4 @@ "use strict"; | ||
var data_stryd_altitude_1 = require("./data.stryd-altitude"); | ||
var data_left_balance_1 = require("./data.left-balance"); | ||
var data_right_balance_1 = require("./data.right-balance"); | ||
/** | ||
@@ -253,2 +255,4 @@ * Only concrete classes no abstracts | ||
DataAccumulatedPower: data_accumulated_power_1.DataAccumulatedPower, | ||
DataLeftBalance: data_left_balance_1.DataLeftBalance, | ||
DataRightBalance: data_right_balance_1.DataRightBalance | ||
}; | ||
@@ -315,3 +319,5 @@ var DynamicDataLoader = /** @class */ (function () { | ||
data_stryd_distance_1.DataStrydDistance.type, | ||
data_stryd_speed_1.DataStrydSpeed.type | ||
data_stryd_speed_1.DataStrydSpeed.type, | ||
data_left_balance_1.DataLeftBalance.type, | ||
data_right_balance_1.DataRightBalance.type, | ||
]; | ||
@@ -318,0 +324,0 @@ DynamicDataLoader.unitBasedDataTypes = (_a = {}, |
@@ -22,2 +22,4 @@ "use strict"; | ||
var data_stryd_speed_1 = require("../../../../data/data.stryd-speed"); | ||
var data_right_balance_1 = require("../../../../data/data.right-balance"); | ||
var data_left_balance_1 = require("../../../../data/data.left-balance"); | ||
exports.FITSampleMapper = [ | ||
@@ -136,2 +138,20 @@ { | ||
}, | ||
{ | ||
dataType: data_right_balance_1.DataRightBalance.type, | ||
getSampleValue: function (sample) { | ||
if (!sample.left_right_balance) { | ||
return null; | ||
} | ||
return sample.left_right_balance.right === true ? sample.left_right_balance.value : 100 - sample.left_right_balance.value; | ||
}, | ||
}, | ||
{ | ||
dataType: data_left_balance_1.DataLeftBalance.type, | ||
getSampleValue: function (sample) { | ||
if (!sample.left_right_balance) { | ||
return null; | ||
} | ||
return sample.left_right_balance.right === false ? sample.left_right_balance.value : 100 - sample.left_right_balance.value; | ||
}, | ||
}, | ||
]; |
{ | ||
"name": "quantified-self-lib", | ||
"version": "3.1.5", | ||
"version": "3.2.0", | ||
"description": "A Library to for processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
528631
380
11139