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

@turf/mask

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/mask - npm Package Compare versions

Comparing version 5.1.1 to 5.1.5

main.es.js

10

main.js

@@ -111,3 +111,3 @@ 'use strict';

function unionPolygons(polygons) {
if (polygons.features.length <= 1) { return polygons; }
if (polygons.features.length <= 1) return polygons;

@@ -119,6 +119,4 @@ var tree = createIndex(polygons);

meta.flattenEach(polygons, function (currentFeature, currentIndex) {
var this$1 = this;
// Exclude any removed features
if (removed[currentIndex]) { return true; }
if (removed[currentIndex]) return true;

@@ -145,6 +143,6 @@ // Don't search for itself

polys.push(currentFeature);
currentFeature = union.apply(this$1, polys);
currentFeature = union.apply(this, polys);
}
// Done
if (search.length === 0) { break; }
if (search.length === 0) break;
}

@@ -151,0 +149,0 @@ results.push(currentFeature);

16

package.json
{
"name": "@turf/mask",
"version": "5.1.1",
"version": "5.1.5",
"description": "turf mask module",
"main": "main.js",
"module": "main.mjs",
"module": "main.es.js",
"types": "index.d.ts",

@@ -12,3 +12,3 @@ "files": [

"main.js",
"main.mjs"
"main.es.js"
],

@@ -18,2 +18,3 @@ "scripts": {

"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",

@@ -43,3 +44,2 @@ "docs": "node ../../scripts/generate-readmes"

"rollup": "*",
"rollup-plugin-buble": "*",
"tape": "*",

@@ -49,6 +49,6 @@ "write-json-file": "*"

"dependencies": {
"@turf/bbox": "^5.1.0",
"@turf/helpers": "^5.1.0",
"@turf/meta": "^5.1.0",
"@turf/union": "^5.1.0",
"@turf/bbox": "^5.1.5",
"@turf/helpers": "^5.1.5",
"@turf/meta": "^5.1.5",
"@turf/union": "^5.1.5",
"rbush": "^2.0.1"

@@ -55,0 +55,0 @@ },

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