Socket
Socket
Sign inDemoInstall

@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 5.0.4 to 5.1.0

main.mjs

2

main.js

@@ -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:

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