@turf/flatten
Advanced tools
Comparing version 5.0.4 to 5.1.0
@@ -25,3 +25,3 @@ 'use strict'; | ||
function flatten(geojson) { | ||
if (!geojson) throw new Error('geojson is required'); | ||
if (!geojson) { throw new Error('geojson is required'); } | ||
@@ -28,0 +28,0 @@ var results = []; |
{ | ||
"name": "@turf/flatten", | ||
"version": "5.0.4", | ||
"version": "5.1.0", | ||
"description": "turf flatten module", | ||
"main": "main", | ||
"module": "index", | ||
"jsnext:main": "index", | ||
"main": "main.js", | ||
"module": "main.mjs", | ||
"types": "index.d.ts", | ||
@@ -12,3 +11,4 @@ "files": [ | ||
"index.d.ts", | ||
"main.js" | ||
"main.js", | ||
"main.mjs" | ||
], | ||
@@ -18,3 +18,4 @@ "scripts": { | ||
"test": "node -r @std/esm test.js", | ||
"bench": "node -r @std/esm bench.js" | ||
"bench": "node -r @std/esm bench.js", | ||
"docs": "node ../../scripts/generate-readmes" | ||
}, | ||
@@ -47,2 +48,3 @@ "repository": { | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -52,4 +54,4 @@ "write-json-file": "*" | ||
"dependencies": { | ||
"@turf/helpers": "^5.0.4", | ||
"@turf/meta": "^5.0.4" | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/meta": "^5.1.0" | ||
}, | ||
@@ -56,0 +58,0 @@ "@std/esm": { |
@@ -7,7 +7,7 @@ # @turf/flatten | ||
Flattens any [GeoJSON](http://geojson.org/geojson-spec.html#geojson-objects) to a [FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects) inspired by [geojson-flatten](https://github.com/tmcw/geojson-flatten). | ||
Flattens any [GeoJSON](https://tools.ietf.org/html/rfc7946#section-3) to a [FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3) inspired by [geojson-flatten](https://github.com/tmcw/geojson-flatten). | ||
**Parameters** | ||
- `geojson` **[GeoJSON](http://geojson.org/geojson-spec.html#geojson-objects)** any valid GeoJSON Object | ||
- `geojson` **[GeoJSON](https://tools.ietf.org/html/rfc7946#section-3)** any valid GeoJSON Object | ||
@@ -29,3 +29,3 @@ **Examples** | ||
Returns **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)<any>** all Multi-Geometries are flattened into single Features | ||
Returns **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<any>** all Multi-Geometries are flattened into single Features | ||
@@ -32,0 +32,0 @@ <!-- This file is automatically generated. Please don't edit it directly: |
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
7865
7
108
7
Updated@turf/helpers@^5.1.0
Updated@turf/meta@^5.1.0