Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quantified-self-lib

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quantified-self-lib - npm Package Compare versions

Comparing version 3.4.17 to 3.4.18

4

lib/events/adapters/importers/fit/importer.fit.js

@@ -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');

4

lib/events/adapters/importers/suunto/importer.suunto.sml.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc