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.3 to 0.0.4

6

lib/convert/kml.js

@@ -49,3 +49,3 @@ 'use strict';

' </Placemark>'
].join('\n');
].join('\r\n');
}

@@ -100,3 +100,3 @@

.map(coordinatesFromWaypoint)
.join('\n '),
.join('\r\n '),
' </coordinates>',

@@ -108,3 +108,3 @@ ' </LineString>',

'</kml>'
]).join('\n');
]).join('\r\n');
};

@@ -53,3 +53,3 @@ 'use strict';

)
.join('\n');
.join('\r\n');
};

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

var parser = require('./xplane_fms');
var normalizeLineBreaks = require('../utils/normalizeLineBreaks');
function getFms(filename) {
return fs.readFileSync(
return normalizeLineBreaks(fs.readFileSync(
path.join(__dirname, '../../fixtures/xplane_fms/' + filename),
'utf8'
);
));
}

@@ -15,0 +16,0 @@

'use strict';
module.exports = function normalizeLineBreaks (str) {
return str.replace(/(\r\n|\r)/gm, '\n');
return str.replace(/(\r\n|\r|\n)/gm, '\r\n');
};
{
"name": "flight-plan-converter",
"version": "0.0.3",
"version": "0.0.4",
"description": "Converts Flight Plans from and to various file formats.",

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

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