New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/nearest-point

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/nearest-point - npm Package Compare versions

Comparing version

to
7.2.0

2

dist/esm/index.d.ts

@@ -17,3 +17,3 @@ import { Feature, Point, FeatureCollection } from 'geojson';

*
* @name nearestPoint
* @function
* @param {Coord} targetPoint the reference point

@@ -20,0 +20,0 @@ * @param {FeatureCollection<Point>} points against input point set

@@ -26,6 +26,4 @@ var __defProp = Object.defineProperty;

function nearestPoint(targetPoint, points, options = {}) {
if (!targetPoint)
throw new Error("targetPoint is required");
if (!points)
throw new Error("points is required");
if (!targetPoint) throw new Error("targetPoint is required");
if (!points) throw new Error("points is required");
let minDist = Infinity;

@@ -32,0 +30,0 @@ let bestFeatureIndex = 0;

{
"name": "@turf/nearest-point",
"version": "7.1.0",
"version": "7.2.0",
"description": "turf nearest-point module",

@@ -58,21 +58,21 @@ "author": "Turf Authors",

"@types/benchmark": "^2.1.5",
"@types/tape": "^4.2.32",
"@types/tape": "^4.13.4",
"benchmark": "^2.1.4",
"load-json-file": "^7.0.1",
"npm-run-all": "^4.1.5",
"tape": "^5.7.2",
"tsup": "^8.0.1",
"tsx": "^4.6.2",
"typescript": "^5.2.2",
"tape": "^5.9.0",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "^5.5.4",
"write-json-file": "^5.0.0"
},
"dependencies": {
"@turf/clone": "^7.1.0",
"@turf/distance": "^7.1.0",
"@turf/helpers": "^7.1.0",
"@turf/meta": "^7.1.0",
"@turf/clone": "^7.2.0",
"@turf/distance": "^7.2.0",
"@turf/helpers": "^7.2.0",
"@turf/meta": "^7.2.0",
"@types/geojson": "^7946.0.10",
"tslib": "^2.6.2"
"tslib": "^2.8.1"
},
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
"gitHead": "7b0f0374c4668cd569f8904c71e2ae7d941be867"
}

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

Sorry, the diff of this file is not supported yet