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

@turf/collect

Package Overview
Dependencies
Maintainers
6
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/collect - npm Package Compare versions

Comparing version 6.2.0-alpha.2 to 6.2.0-alpha.3

dist/es/package.json

15

dist/es/index.js

@@ -1,4 +0,4 @@

import turfbbox from '@turf/bbox';
import booleanPointInPolygon from '@turf/boolean-point-in-polygon';
import rbush from 'rbush';
import turfbbox from "@turf/bbox";
import booleanPointInPolygon from "@turf/boolean-point-in-polygon";
import rbush from "rbush";
/**

@@ -42,3 +42,3 @@ * Merges a specified property from a FeatureCollection of points into a

maxY: item.geometry.coordinates[1],
property: item.properties[inProperty]
property: item.properties[inProperty],
};

@@ -52,3 +52,8 @@ });

var bbox = turfbbox(poly);
var potentialPoints = rtree.search({ minX: bbox[0], minY: bbox[1], maxX: bbox[2], maxY: bbox[3] });
var potentialPoints = rtree.search({
minX: bbox[0],
minY: bbox[1],
maxX: bbox[2],
maxY: bbox[3],
});
var values = [];

@@ -55,0 +60,0 @@ potentialPoints.forEach(function (pt) {

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

import { FeatureCollection, Polygon, Point } from '@turf/helpers';
import { FeatureCollection, Polygon, Point } from "@turf/helpers";
/**

@@ -3,0 +3,0 @@ * Merges a specified property from a FeatureCollection of points into a

@@ -47,3 +47,3 @@ "use strict";

maxY: item.geometry.coordinates[1],
property: item.properties[inProperty]
property: item.properties[inProperty],
};

@@ -57,3 +57,8 @@ });

var bbox = bbox_1.default(poly);
var potentialPoints = rtree.search({ minX: bbox[0], minY: bbox[1], maxX: bbox[2], maxY: bbox[3] });
var potentialPoints = rtree.search({
minX: bbox[0],
minY: bbox[1],
maxX: bbox[2],
maxY: bbox[3],
});
var values = [];

@@ -60,0 +65,0 @@ potentialPoints.forEach(function (pt) {

{
"name": "@turf/collect",
"version": "6.2.0-alpha.2",
"version": "6.2.0-alpha.3",
"description": "turf collect module",

@@ -31,2 +31,6 @@ "author": "Turf Authors",

"module": "dist/es/index.js",
"exports": {
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
},
"types": "dist/js/index.d.ts",

@@ -38,10 +42,9 @@ "sideEffects": false,

"scripts": {
"bench": "npm-run-all prepare bench:run",
"bench:run": "node bench.js",
"bench": "ts-node bench.js",
"build": "npm-run-all build:*",
"build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
"build:js": "tsc",
"docs": "node ../../scripts/generate-readmes",
"prepare": "npm-run-all prepare:*",
"prepare:es": "tsc --outDir dist/es --module esnext --declaration false",
"prepare:js": "tsc",
"test": "npm-run-all prepare test:*",
"test:tape": "node -r esm test.js"
"test": "npm-run-all test:*",
"test:tape": "ts-node -r esm test.js"
},

@@ -53,2 +56,3 @@ "devDependencies": {

"tape": "*",
"ts-node": "*",
"tslint": "*",

@@ -58,8 +62,8 @@ "typescript": "*"

"dependencies": {
"@turf/bbox": "^6.2.0-alpha.2",
"@turf/boolean-point-in-polygon": "^6.2.0-alpha.2",
"@turf/helpers": "^6.2.0-alpha.2",
"@turf/bbox": "^6.2.0-alpha.3",
"@turf/boolean-point-in-polygon": "^6.2.0-alpha.3",
"@turf/helpers": "^6.2.0-alpha.3",
"rbush": "2.x"
},
"gitHead": "23d5cb91d77e0c1e2e903a2252f525797f1d0d09"
"gitHead": "dce9edfc705352e8cb9e0083c9330ba0e8d77409"
}
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