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

@artemis-prime/distance-sorter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artemis-prime/distance-sorter - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

distance-sorter.js

@@ -87,6 +87,8 @@ 'use strict'

let obj = parallelArrays.usableSet[each.key]
obj.distanceMeters = each.distance
obj.distanceYards = geolib.convertUnit('yd', each.distance, 2)
obj.distanceMiles = geolib.convertUnit('mi', each.distance, 2)
obj.distanceKM = geolib.convertUnit('km', each.distance, 2)
obj.distance = {
m: each.distance,
yd: geolib.convertUnit('yd', each.distance, 2),
mi: geolib.convertUnit('mi', each.distance, 2),
km: geolib.convertUnit('km', each.distance, 2)
};
result.push(obj)

@@ -93,0 +95,0 @@ }

2

package.json
{
"name": "@artemis-prime/distance-sorter",
"version": "1.0.1",
"version": "1.0.2",
"description": "Sorts an array of objects that have location data by distance from a point.",

@@ -5,0 +5,0 @@ "main": "index.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