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

@turf/dissolve

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/dissolve - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

12

index.js

@@ -58,3 +58,3 @@ import rbush from 'geojson-rbush';

for (var potentialMatchingFeature of tree.search(polygon).features) {
tree.search(polygon).features.forEach(function (potentialMatchingFeature) {
polygon = features[i];

@@ -75,11 +75,11 @@

if (matchFeaturePosition === +i) continue;
if (matchFeaturePosition === +i) return;
var matchFeature = features[matchFeaturePosition];
if (!matchFeature || !polygon) continue;
if (!matchFeature || !polygon) return;
if (propertyName !== undefined &&
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) continue;
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) return;
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) continue;
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) return;

@@ -100,3 +100,3 @@ features[i] = turfUnion(polygon, matchFeature);

featureChanged = true;
}
});

@@ -103,0 +103,0 @@ if (featureChanged) {

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

for (var potentialMatchingFeature of tree.search(polygon).features) {
tree.search(polygon).features.forEach(function (potentialMatchingFeature) {
polygon = features[i];

@@ -181,11 +181,11 @@

if (matchFeaturePosition === +i) continue;
if (matchFeaturePosition === +i) return;
var matchFeature = features[matchFeaturePosition];
if (!matchFeature || !polygon) continue;
if (!matchFeature || !polygon) return;
if (propertyName !== undefined &&
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) continue;
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) return;
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) continue;
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) return;

@@ -206,3 +206,3 @@ features[i] = turfUnion(polygon, matchFeature);

featureChanged = true;
}
});

@@ -209,0 +209,0 @@ if (featureChanged) {

{
"name": "@turf/dissolve",
"version": "5.0.0",
"version": "5.0.1",
"description": "turf dissolve module",

@@ -52,3 +52,3 @@ "main": "main",

"@turf/meta": "5.x",
"@turf/union": "*",
"@turf/union": "5.x",
"geojson-rbush": "2.1.0",

@@ -55,0 +55,0 @@ "get-closest": "*"

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