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

flight-plan-converter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flight-plan-converter - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

lib/convert/kml.js

@@ -45,2 +45,3 @@ 'use strict';

' <Point>',
' <altitudeMode>absolute</altitudeMode>',
' <coordinates>' + coordinatesFromWaypoint(waypoint) + '</coordinates>',

@@ -53,3 +54,3 @@ ' </Point>',

function coordinatesFromWaypoint(waypoint) {
return [waypoint.lat, waypoint.lon, ftToMt(waypoint.elevation)].join(',');
return [waypoint.lon, waypoint.lat, ftToMt(waypoint.elevation)].join(',');
}

@@ -95,2 +96,3 @@

' <LineString>',
' <altitudeMode>absolute</altitudeMode>',
' <coordinates>',

@@ -97,0 +99,0 @@ ' ' + flightPlan

@@ -22,3 +22,2 @@ 'use strict';

it('should convert simple.json', () => {
console.log(converter(getFlightPlan('simple.json')));
expect(converter(getFlightPlan('simple.json')))

@@ -25,0 +24,0 @@ .to

{
"name": "flight-plan-converter",
"version": "0.0.2",
"version": "0.0.3",
"description": "Converts Flight Plans from and to various file formats.",

@@ -5,0 +5,0 @@ "bin": "cli.js",

Sorry, the diff of this file is not supported yet

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