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.6 to 5.1.0

main.mjs

12

main.js

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

options = options || {};
if (!helpers.isObject(options)) throw new Error('options is invalid');
if (!helpers.isObject(options)) { throw new Error('options is invalid'); }
var propertyName = options.propertyName;

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

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

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

if (featureChanged) {
if (!polygon) continue;
if (!polygon) { continue; }
polygon.properties.origIndexPosition = i;

@@ -212,0 +212,0 @@ tree.insert(polygon);

{
"name": "@turf/dissolve",
"version": "5.0.6",
"version": "5.1.0",
"description": "turf dissolve module",
"main": "main",
"module": "index",
"jsnext:main": "index",
"main": "main.js",
"module": "main.mjs",
"types": "index.d.ts",

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

"main.js",
"lib"
"lib",
"main.mjs"
],

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

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

@@ -49,9 +50,9 @@ "write-json-file": "*"

"dependencies": {
"@turf/boolean-overlap": "^5.0.4",
"@turf/clone": "^5.0.4",
"@turf/helpers": "^5.0.4",
"@turf/invariant": "^5.0.4",
"@turf/line-intersect": "^5.0.4",
"@turf/meta": "^5.0.4",
"@turf/union": "*",
"@turf/boolean-overlap": "^5.1.0",
"@turf/clone": "^5.1.0",
"@turf/helpers": "^5.1.0",
"@turf/invariant": "^5.1.0",
"@turf/line-intersect": "^5.1.0",
"@turf/meta": "^5.1.0",
"@turf/union": "^5.1.0",
"geojson-rbush": "2.1.0",

@@ -58,0 +59,0 @@ "get-closest": "*"

@@ -12,3 +12,3 @@ # @turf/dissolve

- `featureCollection` **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)<[Polygon](http://geojson.org/geojson-spec.html#polygon)>** input feature collection to be dissolved
- `featureCollection` **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<[Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6)>** input feature collection to be dissolved
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`)

@@ -32,3 +32,3 @@ - `options.propertyName` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** features with equals 'propertyName' in `properties` will be merged

Returns **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)<[Polygon](http://geojson.org/geojson-spec.html#polygon)>** a FeatureCollection containing the dissolved polygons
Returns **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<[Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6)>** a FeatureCollection containing the dissolved polygons

@@ -35,0 +35,0 @@ <!-- This file is automatically generated. Please don't edit it directly:

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