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

msfs-geo

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

msfs-geo - npm Package Compare versions

Comparing version 0.1.0-alpha4 to 0.1.0-alpha5

4

dist/index.js

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

// The great circle reference is inside the circle, use the intercept which is in-front of the great circle reference as per the great circle bearing
if (diffAngle(greatCircleBearing, bearingTo(greatCircleReference, intercepts[0])) <= 90) {
if (Math.abs(diffAngle(greatCircleBearing, bearingTo(greatCircleReference, intercepts[0]))) <= 90) {
return intercepts[0];

@@ -341,3 +341,3 @@ }

}
if (diffAngle(greatCircleBearing, bearingTo(greatCircleReference, smallCircleCentre)) <= 90) {
if (Math.abs(diffAngle(greatCircleBearing, bearingTo(greatCircleReference, smallCircleCentre))) <= 90) {
// The small circle centre is in-front of the great circle reference, use the closest intercept

@@ -344,0 +344,0 @@ if (distanceTo(greatCircleReference, intercepts[0]) < distanceTo(greatCircleReference, intercepts[1])) {

{
"name": "msfs-geo",
"version": "0.1.0-alpha4",
"version": "0.1.0-alpha5",
"description": "A set of geographic mathematical utility functions, designed for use in aviation, hence the use of Nautical Miles, Feet, and Degrees",
"scripts": {
"build": "rollup -c rollup.config.js",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint --cache **/*.{js,ts}",
"test": "jest",
"prepublishOnly": "npm run build"

@@ -9,0 +10,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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