@turf/midpoint 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
@@ -7,12 +7,12 @@
7
7
  Takes two [points][1] and returns a point midway between them.
8
8
  The midpoint is calculated geodesically, meaning the curvature of the earth is taken into account.
9
9
 
10
- **Parameters**
10
+ ### Parameters
11
11
 
12
- - `point1` **[Coord][2]** first point
13
- - `point2` **[Coord][2]** second point
12
+ * `point1` **[Coord][2]** first point
13
+ * `point2` **[Coord][2]** second point
14
14
 
15
- **Examples**
15
+ ### Examples
16
16
 
17
17
  ```javascript
18
18
  var point1 = turf.point([144.834823, -37.771257]);
@@ -25,7 +25,7 @@ var addToMap = [point1, point2, midpoint];
25
25
  midpoint.properties['marker-color'] = '#f00';
26
26
  ```
27
27
 
28
- Returns **[Feature][3]<[Point][4]>** a point midway between `pt1` and `pt2`
28
+ Returns **[Feature][3]<[Point][4]>** a point midway between `pt1` and `pt2`
29
29
 
30
30
  [1]: https://tools.ietf.org/html/rfc7946#section-3.1.2
31
31
 
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 { Feature, Point, Coord } from "@turf/helpers";
1
+ import { Feature, Point } from "geojson";
2
+ import { Coord } from "@turf/helpers";
2
3
 
3
4
  /**
4
5
  * http://turfjs.org/docs/#midpoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/midpoint",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "turf midpoint module",
5
5
  "author": "Turf Authors",
6
6
  "license": "MIT",
@@ -28,6 +28,7 @@
28
28
  "exports": {
29
29
  "./package.json": "./package.json",
30
30
  ".": {
31
+ "types": "./index.d.ts",
31
32
  "import": "./dist/es/index.js",
32
33
  "require": "./dist/js/index.js"
33
34
  }
@@ -39,23 +40,24 @@
39
40
  "index.d.ts"
40
41
  ],
41
42
  "scripts": {
42
- "bench": "node -r esm bench.js",
43
+ "bench": "tsx bench.js",
43
44
  "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
44
- "docs": "node ../../scripts/generate-readmes",
45
+ "docs": "tsx ../../scripts/generate-readmes",
45
46
  "test": "npm-run-all test:*",
46
- "test:tape": "node -r esm test.js"
47
+ "test:tape": "tsx test.js"
47
48
  },
48
49
  "devDependencies": {
49
50
  "benchmark": "*",
50
51
  "npm-run-all": "*",
51
52
  "rollup": "*",
52
- "tape": "*"
53
+ "tape": "*",
54
+ "tsx": "*"
53
55
  },
54
56
  "dependencies": {
55
- "@turf/bearing": "^6.5.0",
56
- "@turf/destination": "^6.5.0",
57
- "@turf/distance": "^6.5.0",
58
- "@turf/helpers": "^6.5.0"
57
+ "@turf/bearing": "^7.0.0-alpha.1",
58
+ "@turf/destination": "^7.0.0-alpha.1",
59
+ "@turf/distance": "^7.0.0-alpha.1",
60
+ "@turf/helpers": "^7.0.0-alpha.1"
59
61
  },
60
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
62
+ "gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
61
63
  }