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

gpx-builder

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpx-builder - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

4

CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
## v3.6.1 (2020-09-12)
### Fixed
- [e78f63f](https://github.com/fabulator/gpx-builder/commit/e78f63f0ac33ba8a6070adac43c93725d6948fd6) Security lock update
## v3.6.0 (2020-08-01)

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

16

dist/builder/BaseBuilder/BaseBuilder.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var Segment = require('./models/Segment.js');

@@ -10,10 +8,14 @@ var Track = require('./models/Track.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class BaseBuilder {
constructor() {
_defineProperty(this, "data", void 0);
_defineProperty__default['default'](this, "data", void 0);
_defineProperty(this, "schemaLocation", void 0);
_defineProperty__default['default'](this, "schemaLocation", void 0);

@@ -116,4 +118,4 @@ this.data = {};

_defineProperty(BaseBuilder, "MODELS", index);
_defineProperty__default['default'](BaseBuilder, "MODELS", index);
module.exports = BaseBuilder;
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
class Bounds {

@@ -12,9 +14,9 @@ /**

constructor(minlat, minlon, maxlat, maxlon) {
_defineProperty(this, "minlat", void 0);
_defineProperty__default['default'](this, "minlat", void 0);
_defineProperty(this, "minlon", void 0);
_defineProperty__default['default'](this, "minlon", void 0);
_defineProperty(this, "maxlat", void 0);
_defineProperty__default['default'](this, "maxlat", void 0);
_defineProperty(this, "maxlon", void 0);
_defineProperty__default['default'](this, "maxlon", void 0);

@@ -21,0 +23,0 @@ this.minlat = minlat;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -22,7 +24,7 @@ class Copyright {

}) {
_defineProperty(this, "author", void 0);
_defineProperty__default['default'](this, "author", void 0);
_defineProperty(this, "year", void 0);
_defineProperty__default['default'](this, "year", void 0);
_defineProperty(this, "license", void 0);
_defineProperty__default['default'](this, "license", void 0);

@@ -29,0 +31,0 @@ this.author = author;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -19,7 +21,7 @@ class Link {

}) {
_defineProperty(this, "href", void 0);
_defineProperty__default['default'](this, "href", void 0);
_defineProperty(this, "text", void 0);
_defineProperty__default['default'](this, "text", void 0);
_defineProperty(this, "type", void 0);
_defineProperty__default['default'](this, "type", void 0);

@@ -26,0 +28,0 @@ this.href = href;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -27,19 +29,19 @@ class Metadata {

}) {
_defineProperty(this, "name", void 0);
_defineProperty__default['default'](this, "name", void 0);
_defineProperty(this, "desc", void 0);
_defineProperty__default['default'](this, "desc", void 0);
_defineProperty(this, "author", void 0);
_defineProperty__default['default'](this, "author", void 0);
_defineProperty(this, "copyright", void 0);
_defineProperty__default['default'](this, "copyright", void 0);
_defineProperty(this, "link", void 0);
_defineProperty__default['default'](this, "link", void 0);
_defineProperty(this, "time", void 0);
_defineProperty__default['default'](this, "time", void 0);
_defineProperty(this, "keywords", void 0);
_defineProperty__default['default'](this, "keywords", void 0);
_defineProperty(this, "bounds", void 0);
_defineProperty__default['default'](this, "bounds", void 0);
_defineProperty(this, "extensions", void 0);
_defineProperty__default['default'](this, "extensions", void 0);

@@ -46,0 +48,0 @@ this.name = name || null;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -20,7 +22,7 @@ class Person {

}) {
_defineProperty(this, "name", void 0);
_defineProperty__default['default'](this, "name", void 0);
_defineProperty(this, "email", void 0);
_defineProperty__default['default'](this, "email", void 0);
_defineProperty(this, "link", void 0);
_defineProperty__default['default'](this, "link", void 0);

@@ -27,0 +29,0 @@ this.name = name || null;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -37,43 +39,43 @@ class Point {

} = {}) {
_defineProperty(this, "lat", void 0);
_defineProperty__default['default'](this, "lat", void 0);
_defineProperty(this, "lon", void 0);
_defineProperty__default['default'](this, "lon", void 0);
_defineProperty(this, "ele", void 0);
_defineProperty__default['default'](this, "ele", void 0);
_defineProperty(this, "time", void 0);
_defineProperty__default['default'](this, "time", void 0);
_defineProperty(this, "magvar", void 0);
_defineProperty__default['default'](this, "magvar", void 0);
_defineProperty(this, "geoidheight", void 0);
_defineProperty__default['default'](this, "geoidheight", void 0);
_defineProperty(this, "name", void 0);
_defineProperty__default['default'](this, "name", void 0);
_defineProperty(this, "cmt", void 0);
_defineProperty__default['default'](this, "cmt", void 0);
_defineProperty(this, "desc", void 0);
_defineProperty__default['default'](this, "desc", void 0);
_defineProperty(this, "src", void 0);
_defineProperty__default['default'](this, "src", void 0);
_defineProperty(this, "link", void 0);
_defineProperty__default['default'](this, "link", void 0);
_defineProperty(this, "sym", void 0);
_defineProperty__default['default'](this, "sym", void 0);
_defineProperty(this, "type", void 0);
_defineProperty__default['default'](this, "type", void 0);
_defineProperty(this, "fix", void 0);
_defineProperty__default['default'](this, "fix", void 0);
_defineProperty(this, "sat", void 0);
_defineProperty__default['default'](this, "sat", void 0);
_defineProperty(this, "hdop", void 0);
_defineProperty__default['default'](this, "hdop", void 0);
_defineProperty(this, "vdop", void 0);
_defineProperty__default['default'](this, "vdop", void 0);
_defineProperty(this, "pdop", void 0);
_defineProperty__default['default'](this, "pdop", void 0);
_defineProperty(this, "ageofdgpsdata", void 0);
_defineProperty__default['default'](this, "ageofdgpsdata", void 0);
_defineProperty(this, "dgpsid", void 0);
_defineProperty__default['default'](this, "dgpsid", void 0);
_defineProperty(this, "extensions", void 0);
_defineProperty__default['default'](this, "extensions", void 0);

@@ -80,0 +82,0 @@ this.lat = lat;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -16,5 +18,5 @@ class Segment {

constructor(trkpt, extensions = null) {
_defineProperty(this, "trkpt", void 0);
_defineProperty__default['default'](this, "trkpt", void 0);
_defineProperty(this, "extensions", void 0);
_defineProperty__default['default'](this, "extensions", void 0);

@@ -21,0 +23,0 @@ this.trkpt = trkpt;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -26,19 +28,19 @@ class Track {

} = {}) {
_defineProperty(this, "name", void 0);
_defineProperty__default['default'](this, "name", void 0);
_defineProperty(this, "cmt", void 0);
_defineProperty__default['default'](this, "cmt", void 0);
_defineProperty(this, "desc", void 0);
_defineProperty__default['default'](this, "desc", void 0);
_defineProperty(this, "src", void 0);
_defineProperty__default['default'](this, "src", void 0);
_defineProperty(this, "link", void 0);
_defineProperty__default['default'](this, "link", void 0);
_defineProperty(this, "number", void 0);
_defineProperty__default['default'](this, "number", void 0);
_defineProperty(this, "type", void 0);
_defineProperty__default['default'](this, "type", void 0);
_defineProperty(this, "extensions", void 0);
_defineProperty__default['default'](this, "extensions", void 0);
_defineProperty(this, "trkseg", void 0);
_defineProperty__default['default'](this, "trkseg", void 0);

@@ -45,0 +47,0 @@ this.name = name || null;

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var BaseBuilder = require('../BaseBuilder/BaseBuilder.js');
var GarminPoint = require('./models/GarminPoint.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class GarminBuilder extends BaseBuilder {

@@ -29,3 +31,3 @@ /**

_defineProperty(GarminBuilder, "MODELS", _objectSpread(_objectSpread({}, BaseBuilder.MODELS), {}, {
_defineProperty__default['default'](GarminBuilder, "MODELS", _objectSpread(_objectSpread({}, BaseBuilder.MODELS), {}, {
Point: GarminPoint

@@ -32,0 +34,0 @@ }));

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var Point = require('../../BaseBuilder/models/Point.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class GarminPoint extends Point {

@@ -12,0 +14,0 @@ /**

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var GarminPoint = require('../../GarminBuilder/models/GarminPoint.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class StravaPoint extends GarminPoint {

@@ -12,0 +14,0 @@ constructor(lat, lon, options = {}) {

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var GarminBuilder = require('../GarminBuilder/GarminBuilder.js');
var StravaPoint = require('./models/StravaPoint.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class StravaBuilder extends GarminBuilder {}
_defineProperty(StravaBuilder, "MODELS", _objectSpread(_objectSpread({}, GarminBuilder.MODELS), {}, {
_defineProperty__default['default'](StravaBuilder, "MODELS", _objectSpread(_objectSpread({}, GarminBuilder.MODELS), {}, {
Point: StravaPoint

@@ -16,0 +18,0 @@ }));

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var xmlbuilder = require('xmlbuilder');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class XMLCreator {
constructor(settings = {}) {
_defineProperty(this, "settings", void 0);
_defineProperty__default['default'](this, "settings", void 0);

@@ -15,0 +17,0 @@ this.settings = settings;

@@ -1,14 +0,14 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import Segment$1 from './models/Segment.js';
import Track$1 from './models/Track.js';
import * as models from './models/index.js';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import Segment from './models/Segment.js';
import Track from './models/Track.js';
import * as index from './models/index.js';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class BaseBuilder {
constructor() {
_defineProperty$1(this, "data", void 0);
_defineProperty(this, "data", void 0);
_defineProperty$1(this, "schemaLocation", void 0);
_defineProperty(this, "schemaLocation", void 0);

@@ -87,3 +87,3 @@ this.data = {};

setSegmentPoints(points) {
this.setTracks([new Track$1([new Segment$1(points)])]);
this.setTracks([new Track([new Segment(points)])]);
return this;

@@ -112,4 +112,4 @@ }

_defineProperty$1(BaseBuilder, "MODELS", models);
_defineProperty(BaseBuilder, "MODELS", index);
export default BaseBuilder;

@@ -1,4 +0,4 @@

import BaseBuilder$1 from './BaseBuilder.js';
import BaseBuilder from './BaseBuilder.js';
export { default } from './BaseBuilder.js';
// @flow strict

@@ -1,2 +0,2 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';

@@ -8,9 +8,9 @@ class Bounds {

constructor(minlat, minlon, maxlat, maxlon) {
_defineProperty$1(this, "minlat", void 0);
_defineProperty(this, "minlat", void 0);
_defineProperty$1(this, "minlon", void 0);
_defineProperty(this, "minlon", void 0);
_defineProperty$1(this, "maxlat", void 0);
_defineProperty(this, "maxlat", void 0);
_defineProperty$1(this, "maxlon", void 0);
_defineProperty(this, "maxlon", void 0);

@@ -17,0 +17,0 @@ this.minlat = minlat;

@@ -1,6 +0,6 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -18,7 +18,7 @@ class Copyright {

}) {
_defineProperty$1(this, "author", void 0);
_defineProperty(this, "author", void 0);
_defineProperty$1(this, "year", void 0);
_defineProperty(this, "year", void 0);
_defineProperty$1(this, "license", void 0);
_defineProperty(this, "license", void 0);

@@ -25,0 +25,0 @@ this.author = author;

@@ -1,6 +0,6 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -15,7 +15,7 @@ class Link {

}) {
_defineProperty$1(this, "href", void 0);
_defineProperty(this, "href", void 0);
_defineProperty$1(this, "text", void 0);
_defineProperty(this, "text", void 0);
_defineProperty$1(this, "type", void 0);
_defineProperty(this, "type", void 0);

@@ -22,0 +22,0 @@ this.href = href;

@@ -1,6 +0,6 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -23,19 +23,19 @@ class Metadata {

}) {
_defineProperty$1(this, "name", void 0);
_defineProperty(this, "name", void 0);
_defineProperty$1(this, "desc", void 0);
_defineProperty(this, "desc", void 0);
_defineProperty$1(this, "author", void 0);
_defineProperty(this, "author", void 0);
_defineProperty$1(this, "copyright", void 0);
_defineProperty(this, "copyright", void 0);
_defineProperty$1(this, "link", void 0);
_defineProperty(this, "link", void 0);
_defineProperty$1(this, "time", void 0);
_defineProperty(this, "time", void 0);
_defineProperty$1(this, "keywords", void 0);
_defineProperty(this, "keywords", void 0);
_defineProperty$1(this, "bounds", void 0);
_defineProperty(this, "bounds", void 0);
_defineProperty$1(this, "extensions", void 0);
_defineProperty(this, "extensions", void 0);

@@ -42,0 +42,0 @@ this.name = name || null;

@@ -1,6 +0,6 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -16,7 +16,7 @@ class Person {

}) {
_defineProperty$1(this, "name", void 0);
_defineProperty(this, "name", void 0);
_defineProperty$1(this, "email", void 0);
_defineProperty(this, "email", void 0);
_defineProperty$1(this, "link", void 0);
_defineProperty(this, "link", void 0);

@@ -23,0 +23,0 @@ this.name = name || null;

@@ -1,6 +0,6 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -33,43 +33,43 @@ class Point {

} = {}) {
_defineProperty$1(this, "lat", void 0);
_defineProperty(this, "lat", void 0);
_defineProperty$1(this, "lon", void 0);
_defineProperty(this, "lon", void 0);
_defineProperty$1(this, "ele", void 0);
_defineProperty(this, "ele", void 0);
_defineProperty$1(this, "time", void 0);
_defineProperty(this, "time", void 0);
_defineProperty$1(this, "magvar", void 0);
_defineProperty(this, "magvar", void 0);
_defineProperty$1(this, "geoidheight", void 0);
_defineProperty(this, "geoidheight", void 0);
_defineProperty$1(this, "name", void 0);
_defineProperty(this, "name", void 0);
_defineProperty$1(this, "cmt", void 0);
_defineProperty(this, "cmt", void 0);
_defineProperty$1(this, "desc", void 0);
_defineProperty(this, "desc", void 0);
_defineProperty$1(this, "src", void 0);
_defineProperty(this, "src", void 0);
_defineProperty$1(this, "link", void 0);
_defineProperty(this, "link", void 0);
_defineProperty$1(this, "sym", void 0);
_defineProperty(this, "sym", void 0);
_defineProperty$1(this, "type", void 0);
_defineProperty(this, "type", void 0);
_defineProperty$1(this, "fix", void 0);
_defineProperty(this, "fix", void 0);
_defineProperty$1(this, "sat", void 0);
_defineProperty(this, "sat", void 0);
_defineProperty$1(this, "hdop", void 0);
_defineProperty(this, "hdop", void 0);
_defineProperty$1(this, "vdop", void 0);
_defineProperty(this, "vdop", void 0);
_defineProperty$1(this, "pdop", void 0);
_defineProperty(this, "pdop", void 0);
_defineProperty$1(this, "ageofdgpsdata", void 0);
_defineProperty(this, "ageofdgpsdata", void 0);
_defineProperty$1(this, "dgpsid", void 0);
_defineProperty(this, "dgpsid", void 0);
_defineProperty$1(this, "extensions", void 0);
_defineProperty(this, "extensions", void 0);

@@ -76,0 +76,0 @@ this.lat = lat;

@@ -1,6 +0,6 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -12,5 +12,5 @@ class Segment {

constructor(trkpt, extensions = null) {
_defineProperty$1(this, "trkpt", void 0);
_defineProperty(this, "trkpt", void 0);
_defineProperty$1(this, "extensions", void 0);
_defineProperty(this, "extensions", void 0);

@@ -17,0 +17,0 @@ this.trkpt = trkpt;

@@ -1,6 +0,6 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -22,19 +22,19 @@ class Track {

} = {}) {
_defineProperty$1(this, "name", void 0);
_defineProperty(this, "name", void 0);
_defineProperty$1(this, "cmt", void 0);
_defineProperty(this, "cmt", void 0);
_defineProperty$1(this, "desc", void 0);
_defineProperty(this, "desc", void 0);
_defineProperty$1(this, "src", void 0);
_defineProperty(this, "src", void 0);
_defineProperty$1(this, "link", void 0);
_defineProperty(this, "link", void 0);
_defineProperty$1(this, "number", void 0);
_defineProperty(this, "number", void 0);
_defineProperty$1(this, "type", void 0);
_defineProperty(this, "type", void 0);
_defineProperty$1(this, "extensions", void 0);
_defineProperty(this, "extensions", void 0);
_defineProperty$1(this, "trkseg", void 0);
_defineProperty(this, "trkseg", void 0);

@@ -41,0 +41,0 @@ this.name = name || null;

@@ -1,9 +0,9 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import BaseBuilder$1 from '../BaseBuilder/BaseBuilder.js';
import GarminPoint$1 from './models/GarminPoint.js';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import BaseBuilder from '../BaseBuilder/BaseBuilder.js';
import GarminPoint from './models/GarminPoint.js';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class GarminBuilder extends BaseBuilder$1 {
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class GarminBuilder extends BaseBuilder {
/**

@@ -25,6 +25,6 @@ * Garmin builder include extension for speed, hear rate, cadence, ...

_defineProperty$1(GarminBuilder, "MODELS", _objectSpread(_objectSpread({}, BaseBuilder$1.MODELS), {}, {
Point: GarminPoint$1
_defineProperty(GarminBuilder, "MODELS", _objectSpread(_objectSpread({}, BaseBuilder.MODELS), {}, {
Point: GarminPoint
}));
export default GarminBuilder;

@@ -1,2 +0,2 @@

import GarminBuilder$1 from './GarminBuilder.js';
import GarminBuilder from './GarminBuilder.js';
export { default } from './GarminBuilder.js';

@@ -1,8 +0,8 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import Point$1 from '../../BaseBuilder/models/Point.js';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import Point from '../../BaseBuilder/models/Point.js';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class GarminPoint extends Point$1 {
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class GarminPoint extends Point {
/**

@@ -9,0 +9,0 @@ * Extended garmin point.

@@ -1,2 +0,2 @@

import StravaBuilder$1 from './StravaBuilder.js';
import StravaBuilder from './StravaBuilder.js';
export { default } from './StravaBuilder.js';

@@ -1,8 +0,8 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import GarminPoint$1 from '../../GarminBuilder/models/GarminPoint.js';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import GarminPoint from '../../GarminBuilder/models/GarminPoint.js';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class StravaPoint extends GarminPoint$1 {
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class StravaPoint extends GarminPoint {
constructor(lat, lon, options = {}) {

@@ -9,0 +9,0 @@ super(lat, lon, options);

@@ -1,14 +0,14 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import GarminBuilder$1 from '../GarminBuilder/GarminBuilder.js';
import StravaPoint$1 from './models/StravaPoint.js';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import GarminBuilder from '../GarminBuilder/GarminBuilder.js';
import StravaPoint from './models/StravaPoint.js';
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class StravaBuilder extends GarminBuilder$1 {}
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class StravaBuilder extends GarminBuilder {}
_defineProperty$1(StravaBuilder, "MODELS", _objectSpread(_objectSpread({}, GarminBuilder$1.MODELS), {}, {
Point: StravaPoint$1
_defineProperty(StravaBuilder, "MODELS", _objectSpread(_objectSpread({}, GarminBuilder.MODELS), {}, {
Point: StravaPoint
}));
export default StravaBuilder;

@@ -1,2 +0,2 @@

import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import { create } from 'xmlbuilder';

@@ -6,6 +6,6 @@

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
class XMLCreator {
constructor(settings = {}) {
_defineProperty$1(this, "settings", void 0);
_defineProperty(this, "settings", void 0);

@@ -12,0 +12,0 @@ this.settings = settings;

export { default as BaseBuilder } from './builder/BaseBuilder/BaseBuilder.js';
export { default as GarminBuilder } from './builder/GarminBuilder/GarminBuilder.js';
export { default as StravaBuilder } from './builder/StravaBuilder/StravaBuilder.js';
import XMLCreator$1 from './creators/XMLCreator.js';
import XMLCreator from './creators/XMLCreator.js';

@@ -14,3 +14,3 @@ /**

function buildGPX(data, creator) {
const gpxCreator = creator || new XMLCreator$1();
const gpxCreator = creator || new XMLCreator();
return gpxCreator.toString(data);

@@ -17,0 +17,0 @@ }

{
"name": "gpx-builder",
"version": "3.6.0",
"version": "3.6.1",
"description": "Builder of GPX files",

@@ -5,0 +5,0 @@ "keywords": [

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