@turf/mask
Advanced tools
Comparing version 5.1.1 to 5.1.5
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); |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21729
7
512
Updated@turf/bbox@^5.1.5
Updated@turf/helpers@^5.1.5
Updated@turf/meta@^5.1.5
Updated@turf/union@^5.1.5