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

haversine

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haversine - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

Changelog.md

2

haversine.js

@@ -23,2 +23,4 @@ var haversine = (function () {

return { latitude: coordinates.lat, longitude: coordinates.lon }
case '{lat,lng}':
return { latitude: coordinates.lat, longitude: coordinates.lng }
case 'geojson':

@@ -25,0 +27,0 @@ return { latitude: coordinates.geometry.coordinates[1], longitude: coordinates.geometry.coordinates[0] }

2

package.json
{
"name": "haversine",
"version": "1.1.0",
"version": "1.1.1",
"description": "A simple haversine module",

@@ -5,0 +5,0 @@ "main": "haversine.js",

@@ -16,2 +16,6 @@ var haversine = require('../haversine')

}
var startLatLngObject = {
lat: 38.898556,
lng: -77.037852
}
var startGeoJson = {

@@ -33,2 +37,6 @@ geometry: {

}
var endLatLngObject = {
lat: 38.897147,
lng: -77.043934
}
var endGeoJson = {

@@ -51,2 +59,4 @@ geometry: {

[startLatLonObject, endLatLonObject, 0.549, { format: '{lon,lat}' }],
[startLatLngObject, endLatLngObject, 0.341, { format: '{lat,lng}' }],
[startLatLngObject, endLatLngObject, 0.549, { format: '{lat,lng}' }],
[startGeoJson, endGeoJson, 0.341, { format: 'geojson' }],

@@ -53,0 +63,0 @@ [startGeoJson, endGeoJson, 0.549, { format: 'geojson' }],

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