🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bbox-fns

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbox-fns - npm Package Compare versions

Comparing version

to
0.20.1

2

package.json
{
"name": "bbox-fns",
"version": "0.20.0",
"version": "0.20.1",
"description": "Light-weight JavaScript Bounding Box Utility Functions",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -6,6 +6,6 @@ "use_strict";

function reproject(bbox, reproject, { async = false, density, nan_strategy = "throw" } = {}) {
function reproject(bbox, fwd, { async = false, density, nan_strategy = "throw" } = {}) {
const polygon = densePolygon(bbox, { density });
const ring = polygon[0];
const reprojected = ring.map(pt => reproject(pt));
const reprojected = ring.map(pt => fwd(pt));
if (async) {

@@ -12,0 +12,0 @@ return Promise.all(reprojected).then(points => bboxArray(points, { nan_strategy }));