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 4.5.2 to 4.6.0

40

index.js

@@ -16,37 +16,7 @@ var turfUnion = require('@turf/union');

* @example
* var features = {
* "type": "FeatureCollection",
* "features": [
* {
* "type": "Feature",
* "properties": {
* "combine": "yes"
* },
* "geometry": {
* "type": "Polygon",
* "coordinates": [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]]
* }
* },
* {
* "type": "Feature",
* "properties": {
* "combine": "yes"
* },
* "geometry": {
* "type": "Polygon",
* "coordinates": [[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]]
* }
* },
* {
* "type": "Feature",
* "properties": {
* "combine": "no"
* },
* "geometry": {
* "type": "Polygon",
* "coordinates": [[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]]
* }
* }
* ]
* }
* var features = turf.featureCollection([
* turf.polygon([[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]], {"combine": "yes"}),
* turf.polygon([[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]], {"combine": "yes"}),
* turf.polygon([[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]], {"combine": "no"}),
* ]);
*

@@ -53,0 +23,0 @@ * var dissolved = turf.dissolve(features, 'combine');

6

package.json
{
"name": "@turf/dissolve",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf dissolve module",

@@ -38,4 +38,4 @@ "main": "index.js",

"dependencies": {
"@turf/bbox": "^4.5.2",
"@turf/union": "^4.5.2",
"@turf/bbox": "^4.6.0",
"@turf/union": "^4.6.0",
"geojson-utils": "^1.1.0",

@@ -42,0 +42,0 @@ "get-closest": "^0.0.4",

@@ -15,37 +15,7 @@ # @turf/dissolve

```javascript
var features = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"combine": "yes"
},
"geometry": {
"type": "Polygon",
"coordinates": [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]]
}
},
{
"type": "Feature",
"properties": {
"combine": "yes"
},
"geometry": {
"type": "Polygon",
"coordinates": [[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]]
}
},
{
"type": "Feature",
"properties": {
"combine": "no"
},
"geometry": {
"type": "Polygon",
"coordinates": [[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]]
}
}
]
}
var features = turf.featureCollection([
turf.polygon([[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]], {"combine": "yes"}),
turf.polygon([[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]], {"combine": "yes"}),
turf.polygon([[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]], {"combine": "no"}),
]);

@@ -52,0 +22,0 @@ var dissolved = turf.dissolve(features, 'combine');

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