quantified-self-lib
Advanced tools
Comparing version 3.4.17 to 3.4.18
@@ -320,2 +320,6 @@ "use strict"; | ||
} | ||
case 'coros': { | ||
creator = new creator_1.Creator(fitDataObject.file_id.product_name || fitDataObject.file_id.product || 'Unknown'); | ||
break; | ||
} | ||
case 'garmin': { | ||
@@ -322,0 +326,0 @@ creator = new creator_1.Creator(importer_fit_garmin_device_names_1.ImporterFitGarminDeviceNames[fitDataObject.file_id.product] || fitDataObject.file_id.product_name || 'Garmin Unknown'); |
@@ -12,3 +12,3 @@ "use strict"; | ||
var json = parser.parse(contents).sml; | ||
debugger; | ||
// debugger; | ||
// A few mods here to convert it to compatible json suunto string | ||
@@ -102,3 +102,3 @@ json.DeviceLog.Samples = json.DeviceLog.Samples.Sample; | ||
} | ||
debugger; | ||
// debugger; | ||
var suuntoJSON = { | ||
@@ -105,0 +105,0 @@ DeviceLog: (_a = { |
@@ -64,2 +64,6 @@ "use strict"; | ||
}, []); | ||
// If the distance from laps is 0 and there is a last trackpoint with distance use that | ||
if (activity.getDistance().getValue() === 0) { | ||
activity.setDistance(new data_distance_1.DataDistance(Number(trackPointElements[trackPointElements.length - 1].getElementsByTagName('DistanceMeters')[0].textContent))); | ||
} | ||
importer_tcx_mapper_1.TCXSampleMapper.forEach(function (sampleMapping) { | ||
@@ -66,0 +70,0 @@ // Should check the children |
@@ -16,2 +16,9 @@ import { EventInterface } from '../event.interface'; | ||
static cropDistance(startDistance: number, endDistance: number, activity: ActivityInterface): ActivityInterface; | ||
/** | ||
* Crops left,right on time. | ||
* Start and end date need to be relative to the activity start / end time | ||
* @param activity | ||
* @param startDate | ||
* @param endDate | ||
*/ | ||
static cropTime(activity: ActivityInterface, startDate?: Date, endDate?: Date): ActivityInterface; | ||
@@ -18,0 +25,0 @@ static getStreamDataTypesBasedOnDataType(streamToBaseOn: StreamInterface, streams: StreamInterface[]): { |
{ | ||
"name": "quantified-self-lib", | ||
"version": "3.4.17", | ||
"version": "3.4.18", | ||
"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": [ |
Sorry, the diff of this file is too big to display
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
600537
12542