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

geolib

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geolib - npm Package Compare versions

Comparing version 1.3.1 to 1.3.4

14

geolib.js

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

/*! geolib 1.3.1 by Manuel Bieh
/*! geolib 1.3.4 by Manuel Bieh
* A growing library to provide some basic geo functions like distance calculation,

@@ -8,3 +8,3 @@ * conversion of decimal coordinates to sexagesimal and vice versa, etc.

* @url http://www.manuelbieh.com/
* @version 1.3.1
* @version 1.3.4
* @license LGPL

@@ -336,2 +336,3 @@ **//*global console:true geolib:true require:true module:true window:true global:true define:true*/

getBounds: function(coords) {
if (!coords.length) {

@@ -651,2 +652,3 @@ return false;

direction['bearing'] = bearing;
return direction;

@@ -656,2 +658,8 @@

/**
* Shortcut for getCompassDirection
*/
getDirection: function(originLL, destLL, bearingMode) {
return geolib.getCompassDirection.apply(geolib, arguments);
},

@@ -794,3 +802,3 @@ /**

// checks if value is in decimal format
if (!isNaN(parseFloat(value)) && parseFloat(value).toString() == value) {
if (!isNaN(parseFloat(value)) && parseFloat(value) == value) {
return parseFloat(value);

@@ -797,0 +805,0 @@ // checks if it's sexagesimal format (HHH° MM' SS" (NESW))

@@ -46,4 +46,4 @@ {

},
"version": "1.3.1",
"version": "1.3.4",
"main": "./geolib"
}
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