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

@turf/flatten

Package Overview
Dependencies
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/flatten - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

7

index.js

@@ -20,3 +20,3 @@ var featureEach = require('@turf/meta').featureEach;

* "coordinates": [
* [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]],
* [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]],
* [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]],

@@ -27,5 +27,6 @@ * [[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2]]]

*
* var flattened = turf.flatten(geometry);
* var flatten = turf.flatten(geometry);
*
* //=flattened
* //addToMap
* var addToMap = [flatten]
*/

@@ -32,0 +33,0 @@ function flatten(geojson) {

{
"name": "@turf/flatten",
"version": "4.1.0",
"version": "4.2.0",
"description": "turf flatten module",

@@ -39,6 +39,6 @@ "main": "index.js",

"dependencies": {
"@turf/helpers": "^4.1.0",
"@turf/invariant": "^4.1.0",
"@turf/meta": "^4.1.0"
"@turf/helpers": "^4.2.0",
"@turf/invariant": "^4.2.0",
"@turf/meta": "^4.2.0"
}
}

@@ -17,3 +17,3 @@ # @turf/flatten

"coordinates": [
[[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]],
[[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]],
[[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]],

@@ -24,5 +24,6 @@ [[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2]]]

var flattened = turf.flatten(geometry);
var flatten = turf.flatten(geometry);
//=flattened
//addToMap
var addToMap = [flatten]
```

@@ -29,0 +30,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