@turf/explode 6.5.0 → 7.0.0-alpha.1

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
  Takes a feature or set of features and returns all positions as [points][1].
8
8
 
9
- **Parameters**
9
+ ### Parameters
10
10
 
11
- - `geojson` **[GeoJSON][2]** input features
11
+ * `geojson` **[GeoJSON][2]** input features
12
12
 
13
- **Examples**
13
+ ### Examples
14
14
 
15
15
  ```javascript
16
16
  var polygon = turf.polygon([[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]);
@@ -21,9 +21,9 @@ var explode = turf.explode(polygon);
21
21
  var addToMap = [polygon, explode]
22
22
  ```
23
23
 
24
- - Throws **[Error][3]** if it encounters an unknown geometry type
24
+ * Throws **[Error][3]** if it encounters an unknown geometry type
25
25
 
26
- Returns **[FeatureCollection][4]<point>** points representing the exploded input features
26
+ Returns **[FeatureCollection][4]\<point>** points representing the exploded input features
27
27
 
28
28
  [1]: https://tools.ietf.org/html/rfc7946#section-3.1.2
29
29
 
package/dist/es/index.js CHANGED
File without changes
package/dist/js/index.js CHANGED
File without changes
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { AllGeoJSON, FeatureCollection, Point } from "@turf/helpers";
1
+ import { FeatureCollection, Point } from "geojson";
2
+ import { AllGeoJSON } from "@turf/helpers";
2
3
 
3
4
  /**
4
5
  * http://turfjs.org/docs/#explode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/explode",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "turf explode module",
5
5
  "author": "Turf Authors",
6
6
  "license": "MIT",
@@ -27,6 +27,7 @@
27
27
  "exports": {
28
28
  "./package.json": "./package.json",
29
29
  ".": {
30
+ "types": "./index.d.ts",
30
31
  "import": "./dist/es/index.js",
31
32
  "require": "./dist/js/index.js"
32
33
  }
@@ -38,11 +39,11 @@
38
39
  "index.d.ts"
39
40
  ],
40
41
  "scripts": {
41
- "bench": "node -r esm bench.js",
42
+ "bench": "tsx bench.js",
42
43
  "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
43
- "docs": "node ../../scripts/generate-readmes",
44
+ "docs": "tsx ../../scripts/generate-readmes",
44
45
  "test": "npm-run-all test:*",
45
- "test:tape": "node -r esm test.js"
46
+ "test:tape": "tsx test.js"
46
47
  },
47
48
  "devDependencies": {
48
49
  "benchmark": "*",
@@ -51,11 +52,12 @@
51
52
  "npm-run-all": "*",
52
53
  "rollup": "*",
53
54
  "tape": "*",
55
+ "tsx": "*",
54
56
  "write-json-file": "*"
55
57
  },
56
58
  "dependencies": {
57
- "@turf/helpers": "^6.5.0",
58
- "@turf/meta": "^6.5.0"
59
+ "@turf/helpers": "^7.0.0-alpha.1",
60
+ "@turf/meta": "^7.0.0-alpha.1"
59
61
  },
60
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
62
+ "gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
61
63
  }