@turf/flatten 6.4.0 → 7.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  Flattens any [GeoJSON][1] to a [FeatureCollection][2] inspired by [geojson-flatten][3].
8
8
 
9
- **Parameters**
9
+ ### Parameters
10
10
 
11
- - `geojson` **[GeoJSON][4]** any valid GeoJSON Object
11
+ * `geojson` **[GeoJSON][4]** any valid GeoJSON Object
12
12
 
13
- **Examples**
13
+ ### Examples
14
14
 
15
15
  ```javascript
16
16
  var multiGeometry = turf.multiPolygon([
@@ -25,7 +25,7 @@ var flatten = turf.flatten(multiGeometry);
25
25
  var addToMap = [flatten]
26
26
  ```
27
27
 
28
- Returns **[FeatureCollection][5]<any>** all Multi-Geometries are flattened into single Features
28
+ Returns **[FeatureCollection][5]\<any>** all Multi-Geometries are flattened into single Features
29
29
 
30
30
  [1]: https://tools.ietf.org/html/rfc7946#section-3
31
31
 
package/dist/es/index.js CHANGED
File without changes
package/dist/js/index.js CHANGED
@@ -32,3 +32,4 @@ function flatten(geojson) {
32
32
  }
33
33
 
34
34
  module.exports = flatten;
35
+ module.exports.default = flatten;
package/index.d.ts CHANGED
@@ -7,8 +7,8 @@ import {
7
7
  MultiPolygon,
8
8
  Feature,
9
9
  FeatureCollection,
10
- AllGeoJSON,
11
- } from "@turf/helpers";
10
+ } from "geojson";
11
+ import { AllGeoJSON } from "@turf/helpers";
12
12
 
13
13
  /**
14
14
  * http://turfjs.org/docs/#flatten
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/flatten",
3
- "version": "6.4.0",
3
+ "version": "7.0.0-alpha.0",
4
4
  "description": "turf flatten module",
5
5
  "author": "Turf Authors",
6
6
  "contributors": [
@@ -16,6 +16,7 @@
16
16
  "type": "git",
17
17
  "url": "git://github.com/Turfjs/turf.git"
18
18
  },
19
+ "funding": "https://opencollective.com/turf",
19
20
  "publishConfig": {
20
21
  "access": "public"
21
22
  },
@@ -47,7 +48,7 @@
47
48
  "docs": "node ../../scripts/generate-readmes",
48
49
  "test": "npm-run-all test:*",
49
50
  "test:tape": "node -r esm test.js",
50
- "test:types": "tsc --esModuleInterop --noEmit types.ts"
51
+ "test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
51
52
  },
52
53
  "devDependencies": {
53
54
  "benchmark": "*",
@@ -58,8 +59,8 @@
58
59
  "write-json-file": "*"
59
60
  },
60
61
  "dependencies": {
61
- "@turf/helpers": "^6.4.0",
62
- "@turf/meta": "^6.4.0"
62
+ "@turf/helpers": "^7.0.0-alpha.0",
63
+ "@turf/meta": "^7.0.0-alpha.0"
63
64
  },
64
- "gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac"
65
+ "gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
65
66
  }