New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fitness-models

Package Overview
Dependencies
Maintainers
1
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fitness-models - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

30

CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
## [0.4.1] 2019-10-07
### Other
- Update dependency @socifi/babel-config to ^0.7.0
- Update dependency mathjs to ^6.2.3
- Update dependency husky to ^3.0.8
- Update dependency luxon to ^1.19.3
- Update dependency husky to ^3.0.7
- Update dependency mathjs to ^6.2.2
- Update dependency luxon to ^1.19.2
- Update dependency luxon to ^1.17.3
- Update dependency mathjs to ^6.2.1
- Update dependency husky to ^3.0.5
- Update dependency @socifi/babel-config to ^0.6.2
- Update dependency luxon to ^1.17.2
- Update dependency husky to v3 (#43)
- Update dependency mathjs to v6 (#42)
- Update dependency mathjs to ^5.10.3
- Update dependency husky to ^2.3.0
- Update dependency @types/luxon to ^1.13.0
- Update dependency mathjs to ^5.10.0
- Update dependency luxon to ^1.13.2
- Update dependency luxon to ^1.13.0
- Update dependency husky to ^2.2.0
- Update dependency husky to v2 (#31)
- Update dependency mathjs to ^5.9.0
- Update dependency @types/luxon to ^1.12.0
### Fixed
- Use include instead of indexOf
## [0.4.0] 2019-04-04

@@ -5,0 +35,0 @@ ### Added

93

dist/index.esm.js

@@ -38,14 +38,14 @@ import { GarminBuilder, buildGPX } from 'gpx-builder';

class Point {
constructor(_ref) {
let time = _ref.time,
latitude = _ref.latitude,
longitude = _ref.longitude,
distance = _ref.distance,
duration = _ref.duration,
speed = _ref.speed,
hr = _ref.hr,
cadence = _ref.cadence,
altitude = _ref.altitude,
temperature = _ref.temperature;
constructor({
time,
latitude,
longitude,
distance,
duration,
speed,
hr,
cadence,
altitude,
temperature
}) {
_defineProperty(this, "time", void 0);

@@ -84,3 +84,3 @@

clone(extend) {
return new Point(_objectSpread({}, this.toObject(), extend));
return new Point(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -425,7 +425,8 @@

const _GarminBuilder$MODELS = GarminBuilder.MODELS,
Point$1 = _GarminBuilder$MODELS.Point,
Metadata = _GarminBuilder$MODELS.Metadata,
Track = _GarminBuilder$MODELS.Track,
Segment = _GarminBuilder$MODELS.Segment; // @ts-ignore
const {
Point: Point$1,
Metadata,
Track,
Segment
} = GarminBuilder.MODELS; // @ts-ignore

@@ -436,10 +437,12 @@ function convertPoints(points) {

}).map(point => {
const altitude = point.altitude,
cadence = point.cadence,
hr = point.hr,
latitude = point.latitude,
longitude = point.longitude,
speed = point.speed,
time = point.time,
temperature = point.temperature;
const {
altitude,
cadence,
hr,
latitude,
longitude,
speed,
time,
temperature
} = point;

@@ -473,19 +476,19 @@ if (!latitude || !longitude) {

class Workout {
constructor(_ref) {
let start = _ref.start,
duration = _ref.duration,
typeId = _ref.typeId,
distance = _ref.distance,
points = _ref.points,
calories = _ref.calories,
notes = _ref.notes,
avgHeartRate = _ref.avgHeartRate,
maxHeartRate = _ref.maxHeartRate,
title = _ref.title,
ascent = _ref.ascent,
descent = _ref.descent,
isRace = _ref.isRace,
isCommute = _ref.isCommute,
hashtags = _ref.hashtags;
constructor({
start,
duration,
typeId,
distance,
points,
calories,
notes,
avgHeartRate,
maxHeartRate,
title,
ascent,
descent,
isRace,
isCommute,
hashtags
}) {
_defineProperty(this, "start", void 0);

@@ -539,3 +542,3 @@

clone(extend) {
return new Workout(_objectSpread({}, this.toObject(), extend));
return new Workout(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -623,3 +626,3 @@

hasHashtag(hashtag) {
return this.hashtags.indexOf(hashtag) !== -1;
return this.hashtags.includes(hashtag);
}

@@ -626,0 +629,0 @@

@@ -42,14 +42,14 @@ 'use strict';

class Point {
constructor(_ref) {
let time = _ref.time,
latitude = _ref.latitude,
longitude = _ref.longitude,
distance = _ref.distance,
duration = _ref.duration,
speed = _ref.speed,
hr = _ref.hr,
cadence = _ref.cadence,
altitude = _ref.altitude,
temperature = _ref.temperature;
constructor({
time,
latitude,
longitude,
distance,
duration,
speed,
hr,
cadence,
altitude,
temperature
}) {
_defineProperty(this, "time", void 0);

@@ -88,3 +88,3 @@

clone(extend) {
return new Point(_objectSpread({}, this.toObject(), extend));
return new Point(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -429,7 +429,8 @@

const _GarminBuilder$MODELS = gpxBuilder.GarminBuilder.MODELS,
Point$1 = _GarminBuilder$MODELS.Point,
Metadata = _GarminBuilder$MODELS.Metadata,
Track = _GarminBuilder$MODELS.Track,
Segment = _GarminBuilder$MODELS.Segment; // @ts-ignore
const {
Point: Point$1,
Metadata,
Track,
Segment
} = gpxBuilder.GarminBuilder.MODELS; // @ts-ignore

@@ -440,10 +441,12 @@ function convertPoints(points) {

}).map(point => {
const altitude = point.altitude,
cadence = point.cadence,
hr = point.hr,
latitude = point.latitude,
longitude = point.longitude,
speed = point.speed,
time = point.time,
temperature = point.temperature;
const {
altitude,
cadence,
hr,
latitude,
longitude,
speed,
time,
temperature
} = point;

@@ -477,19 +480,19 @@ if (!latitude || !longitude) {

class Workout {
constructor(_ref) {
let start = _ref.start,
duration = _ref.duration,
typeId = _ref.typeId,
distance = _ref.distance,
points = _ref.points,
calories = _ref.calories,
notes = _ref.notes,
avgHeartRate = _ref.avgHeartRate,
maxHeartRate = _ref.maxHeartRate,
title = _ref.title,
ascent = _ref.ascent,
descent = _ref.descent,
isRace = _ref.isRace,
isCommute = _ref.isCommute,
hashtags = _ref.hashtags;
constructor({
start,
duration,
typeId,
distance,
points,
calories,
notes,
avgHeartRate,
maxHeartRate,
title,
ascent,
descent,
isRace,
isCommute,
hashtags
}) {
_defineProperty(this, "start", void 0);

@@ -543,3 +546,3 @@

clone(extend) {
return new Workout(_objectSpread({}, this.toObject(), extend));
return new Workout(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -627,3 +630,3 @@

hasHashtag(hashtag) {
return this.hashtags.indexOf(hashtag) !== -1;
return this.hashtags.includes(hashtag);
}

@@ -630,0 +633,0 @@

@@ -36,14 +36,14 @@ function _defineProperty(obj, key, value) {

class Point {
constructor(_ref) {
let time = _ref.time,
latitude = _ref.latitude,
longitude = _ref.longitude,
distance = _ref.distance,
duration = _ref.duration,
speed = _ref.speed,
hr = _ref.hr,
cadence = _ref.cadence,
altitude = _ref.altitude,
temperature = _ref.temperature;
constructor({
time,
latitude,
longitude,
distance,
duration,
speed,
hr,
cadence,
altitude,
temperature
}) {
_defineProperty(this, "time", void 0);

@@ -82,3 +82,3 @@

clone(extend) {
return new Point(_objectSpread({}, this.toObject(), extend));
return new Point(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -85,0 +85,0 @@

@@ -38,14 +38,14 @@ 'use strict';

class Point {
constructor(_ref) {
let time = _ref.time,
latitude = _ref.latitude,
longitude = _ref.longitude,
distance = _ref.distance,
duration = _ref.duration,
speed = _ref.speed,
hr = _ref.hr,
cadence = _ref.cadence,
altitude = _ref.altitude,
temperature = _ref.temperature;
constructor({
time,
latitude,
longitude,
distance,
duration,
speed,
hr,
cadence,
altitude,
temperature
}) {
_defineProperty(this, "time", void 0);

@@ -84,3 +84,3 @@

clone(extend) {
return new Point(_objectSpread({}, this.toObject(), extend));
return new Point(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -87,0 +87,0 @@

@@ -183,7 +183,8 @@ import { GarminBuilder, buildGPX } from 'gpx-builder';

const _GarminBuilder$MODELS = GarminBuilder.MODELS,
Point = _GarminBuilder$MODELS.Point,
Metadata = _GarminBuilder$MODELS.Metadata,
Track = _GarminBuilder$MODELS.Track,
Segment = _GarminBuilder$MODELS.Segment; // @ts-ignore
const {
Point,
Metadata,
Track,
Segment
} = GarminBuilder.MODELS; // @ts-ignore

@@ -194,10 +195,12 @@ function convertPoints(points) {

}).map(point => {
const altitude = point.altitude,
cadence = point.cadence,
hr = point.hr,
latitude = point.latitude,
longitude = point.longitude,
speed = point.speed,
time = point.time,
temperature = point.temperature;
const {
altitude,
cadence,
hr,
latitude,
longitude,
speed,
time,
temperature
} = point;

@@ -231,19 +234,19 @@ if (!latitude || !longitude) {

class Workout {
constructor(_ref) {
let start = _ref.start,
duration = _ref.duration,
typeId = _ref.typeId,
distance = _ref.distance,
points = _ref.points,
calories = _ref.calories,
notes = _ref.notes,
avgHeartRate = _ref.avgHeartRate,
maxHeartRate = _ref.maxHeartRate,
title = _ref.title,
ascent = _ref.ascent,
descent = _ref.descent,
isRace = _ref.isRace,
isCommute = _ref.isCommute,
hashtags = _ref.hashtags;
constructor({
start,
duration,
typeId,
distance,
points,
calories,
notes,
avgHeartRate,
maxHeartRate,
title,
ascent,
descent,
isRace,
isCommute,
hashtags
}) {
_defineProperty(this, "start", void 0);

@@ -297,3 +300,3 @@

clone(extend) {
return new Workout(_objectSpread({}, this.toObject(), extend));
return new Workout(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -381,3 +384,3 @@

hasHashtag(hashtag) {
return this.hashtags.indexOf(hashtag) !== -1;
return this.hashtags.includes(hashtag);
}

@@ -384,0 +387,0 @@

@@ -185,7 +185,8 @@ 'use strict';

const _GarminBuilder$MODELS = gpxBuilder.GarminBuilder.MODELS,
Point = _GarminBuilder$MODELS.Point,
Metadata = _GarminBuilder$MODELS.Metadata,
Track = _GarminBuilder$MODELS.Track,
Segment = _GarminBuilder$MODELS.Segment; // @ts-ignore
const {
Point,
Metadata,
Track,
Segment
} = gpxBuilder.GarminBuilder.MODELS; // @ts-ignore

@@ -196,10 +197,12 @@ function convertPoints(points) {

}).map(point => {
const altitude = point.altitude,
cadence = point.cadence,
hr = point.hr,
latitude = point.latitude,
longitude = point.longitude,
speed = point.speed,
time = point.time,
temperature = point.temperature;
const {
altitude,
cadence,
hr,
latitude,
longitude,
speed,
time,
temperature
} = point;

@@ -233,19 +236,19 @@ if (!latitude || !longitude) {

class Workout {
constructor(_ref) {
let start = _ref.start,
duration = _ref.duration,
typeId = _ref.typeId,
distance = _ref.distance,
points = _ref.points,
calories = _ref.calories,
notes = _ref.notes,
avgHeartRate = _ref.avgHeartRate,
maxHeartRate = _ref.maxHeartRate,
title = _ref.title,
ascent = _ref.ascent,
descent = _ref.descent,
isRace = _ref.isRace,
isCommute = _ref.isCommute,
hashtags = _ref.hashtags;
constructor({
start,
duration,
typeId,
distance,
points,
calories,
notes,
avgHeartRate,
maxHeartRate,
title,
ascent,
descent,
isRace,
isCommute,
hashtags
}) {
_defineProperty(this, "start", void 0);

@@ -299,3 +302,3 @@

clone(extend) {
return new Workout(_objectSpread({}, this.toObject(), extend));
return new Workout(_objectSpread({}, this.toObject(), {}, extend));
}

@@ -383,3 +386,3 @@

hasHashtag(hashtag) {
return this.hashtags.indexOf(hashtag) !== -1;
return this.hashtags.includes(hashtag);
}

@@ -386,0 +389,0 @@

import { GarminBuilder, buildGPX } from 'gpx-builder';
const _GarminBuilder$MODELS = GarminBuilder.MODELS,
Point = _GarminBuilder$MODELS.Point,
Metadata = _GarminBuilder$MODELS.Metadata,
Track = _GarminBuilder$MODELS.Track,
Segment = _GarminBuilder$MODELS.Segment; // @ts-ignore
const {
Point,
Metadata,
Track,
Segment
} = GarminBuilder.MODELS; // @ts-ignore

@@ -13,10 +14,12 @@ function convertPoints(points) {

}).map(point => {
const altitude = point.altitude,
cadence = point.cadence,
hr = point.hr,
latitude = point.latitude,
longitude = point.longitude,
speed = point.speed,
time = point.time,
temperature = point.temperature;
const {
altitude,
cadence,
hr,
latitude,
longitude,
speed,
time,
temperature
} = point;

@@ -23,0 +26,0 @@ if (!latitude || !longitude) {

@@ -5,7 +5,8 @@ 'use strict';

const _GarminBuilder$MODELS = gpxBuilder.GarminBuilder.MODELS,
Point = _GarminBuilder$MODELS.Point,
Metadata = _GarminBuilder$MODELS.Metadata,
Track = _GarminBuilder$MODELS.Track,
Segment = _GarminBuilder$MODELS.Segment; // @ts-ignore
const {
Point,
Metadata,
Track,
Segment
} = gpxBuilder.GarminBuilder.MODELS; // @ts-ignore

@@ -16,10 +17,12 @@ function convertPoints(points) {

}).map(point => {
const altitude = point.altitude,
cadence = point.cadence,
hr = point.hr,
latitude = point.latitude,
longitude = point.longitude,
speed = point.speed,
time = point.time,
temperature = point.temperature;
const {
altitude,
cadence,
hr,
latitude,
longitude,
speed,
time,
temperature
} = point;

@@ -26,0 +29,0 @@ if (!latitude || !longitude) {

{
"name": "fitness-models",
"version": "0.4.0",
"version": "0.4.1",
"description": "Extendable fitness models for Workout and GPS points",

@@ -32,18 +32,18 @@ "main": "dist/index.js",

"devDependencies": {
"@socifi/babel-config": "^0.6.1",
"@socifi/babel-config": "^0.7.0",
"@socifi/browserslist-config": "^0.1.0",
"@socifi/commitlint-config": "^1.0.0",
"@socifi/eslint-config": "^2.7.1",
"@socifi/eslint-config": "^2.8.0",
"@socifi/jest-config": "^2.3.1",
"@socifi/rollup-config": "^2.1.0",
"husky": "^1.3.1",
"husky": "^3.0.8",
"semantic-release-config-fabulator": "^1.0.3"
},
"dependencies": {
"@types/luxon": "^1.11.1",
"@types/mathjs": "^5.0.1",
"@types/luxon": "^1.15.2",
"@types/mathjs": "^6.0.2",
"gpx-builder": "^2.0.1",
"luxon": "^1.12.0",
"mathjs": "^5.8.0"
"luxon": "^1.19.3",
"mathjs": "^6.2.3"
}
}

@@ -178,3 +178,3 @@ import { DateTime, Duration } from 'luxon';

public hasHashtag(hashtag: string): boolean {
return this.hashtags.indexOf(hashtag) !== -1;
return this.hashtags.includes(hashtag);
}

@@ -181,0 +181,0 @@

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