@turf/planepoint 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
@@ -11,12 +11,12 @@ that define the values at its three corners. Alternatively, the z-values
11
11
  of each triangle point can be provided by their respective 3rd coordinate
12
12
  if their values are not provided as properties.
13
13
 
14
- **Parameters**
14
+ ### Parameters
15
15
 
16
- - `point` **[Coord][3]** the Point for which a z-value will be calculated
17
- - `triangle` **[Feature][4]<[Polygon][5]>** a Polygon feature with three vertices
16
+ * `point` **[Coord][3]** the Point for which a z-value will be calculated
17
+ * `triangle` **[Feature][4]<[Polygon][5]>** a Polygon feature with three vertices
18
18
 
19
- **Examples**
19
+ ### Examples
20
20
 
21
21
  ```javascript
22
22
  var point = turf.point([-75.3221, 39.529]);
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, Coord, Polygon } from "@turf/helpers";
1
+ import { Feature, Polygon } from "geojson";
2
+ import { Coord } from "@turf/helpers";
2
3
 
3
4
  /**
4
5
  * http://turfjs.org/docs/#planepoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/planepoint",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "turf planepoint 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,22 +40,23 @@
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:types": "tsc --esModuleInterop --noEmit types.ts"
47
+ "test:tape": "tsx test.js",
48
+ "test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
48
49
  },
49
50
  "devDependencies": {
50
51
  "benchmark": "*",
51
52
  "npm-run-all": "*",
52
53
  "rollup": "*",
53
- "tape": "*"
54
+ "tape": "*",
55
+ "tsx": "*"
54
56
  },
55
57
  "dependencies": {
56
- "@turf/helpers": "^6.5.0",
57
- "@turf/invariant": "^6.5.0"
58
+ "@turf/helpers": "^7.0.0-alpha.1",
59
+ "@turf/invariant": "^7.0.0-alpha.1"
58
60
  },
59
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
61
+ "gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
60
62
  }