@turf/line-chunk 7.0.0-alpha.111 → 7.0.0-alpha.114
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/line-chunk",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.114+e0bdd0add",
|
|
4
4
|
"description": "turf line-chunk module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -29,27 +29,26 @@
|
|
|
29
29
|
"linestring",
|
|
30
30
|
"line segment"
|
|
31
31
|
],
|
|
32
|
-
"type": "
|
|
32
|
+
"type": "module",
|
|
33
33
|
"main": "dist/cjs/index.cjs",
|
|
34
|
-
"module": "dist/esm/index.
|
|
35
|
-
"types": "dist/
|
|
34
|
+
"module": "dist/esm/index.js",
|
|
35
|
+
"types": "dist/esm/index.d.ts",
|
|
36
36
|
"exports": {
|
|
37
37
|
"./package.json": "./package.json",
|
|
38
38
|
".": {
|
|
39
39
|
"import": {
|
|
40
|
-
"types": "./dist/esm/index.d.
|
|
41
|
-
"default": "./dist/esm/index.
|
|
40
|
+
"types": "./dist/esm/index.d.ts",
|
|
41
|
+
"default": "./dist/esm/index.js"
|
|
42
42
|
},
|
|
43
43
|
"require": {
|
|
44
|
-
"types": "./dist/cjs/index.d.
|
|
44
|
+
"types": "./dist/cjs/index.d.cts",
|
|
45
45
|
"default": "./dist/cjs/index.cjs"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"files": [
|
|
51
|
-
"dist"
|
|
52
|
-
"index.d.ts"
|
|
51
|
+
"dist"
|
|
53
52
|
],
|
|
54
53
|
"scripts": {
|
|
55
54
|
"bench": "tsx bench.ts",
|
|
@@ -57,10 +56,12 @@
|
|
|
57
56
|
"docs": "tsx ../../scripts/generate-readmes.ts",
|
|
58
57
|
"test": "npm-run-all --npm-path npm test:*",
|
|
59
58
|
"test:tape": "tsx test.ts",
|
|
60
|
-
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
|
|
59
|
+
"test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@turf/truncate": "^7.0.0-alpha.
|
|
62
|
+
"@turf/truncate": "^7.0.0-alpha.114+e0bdd0add",
|
|
63
|
+
"@types/benchmark": "^2.1.5",
|
|
64
|
+
"@types/tape": "^4.2.32",
|
|
64
65
|
"benchmark": "^2.1.4",
|
|
65
66
|
"load-json-file": "^7.0.1",
|
|
66
67
|
"npm-run-all": "^4.1.5",
|
|
@@ -70,10 +71,10 @@
|
|
|
70
71
|
"write-json-file": "^5.0.0"
|
|
71
72
|
},
|
|
72
73
|
"dependencies": {
|
|
73
|
-
"@turf/helpers": "^7.0.0-alpha.
|
|
74
|
-
"@turf/length": "^7.0.0-alpha.
|
|
75
|
-
"@turf/line-slice-along": "^7.0.0-alpha.
|
|
76
|
-
"@turf/meta": "^7.0.0-alpha.
|
|
74
|
+
"@turf/helpers": "^7.0.0-alpha.114+e0bdd0add",
|
|
75
|
+
"@turf/length": "^7.0.0-alpha.114+e0bdd0add",
|
|
76
|
+
"@turf/line-slice-along": "^7.0.0-alpha.114+e0bdd0add",
|
|
77
|
+
"@turf/meta": "^7.0.0-alpha.114+e0bdd0add"
|
|
77
78
|
},
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "e0bdd0add87f21a4430f8884736096d1ac6fe4cd"
|
|
79
80
|
}
|
package/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
LineString,
|
|
3
|
-
MultiLineString,
|
|
4
|
-
GeometryCollection,
|
|
5
|
-
Feature,
|
|
6
|
-
FeatureCollection,
|
|
7
|
-
} from "geojson";
|
|
8
|
-
import { Units } from "@turf/helpers";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* http://turfjs.org/docs/#lineChunk
|
|
12
|
-
*/
|
|
13
|
-
declare function lineChunk<T extends LineString | MultiLineString>(
|
|
14
|
-
geojson:
|
|
15
|
-
| Feature<T>
|
|
16
|
-
| FeatureCollection<T>
|
|
17
|
-
| T
|
|
18
|
-
| GeometryCollection
|
|
19
|
-
| Feature<GeometryCollection>,
|
|
20
|
-
segmentLength: number,
|
|
21
|
-
options?: {
|
|
22
|
-
units?: Units;
|
|
23
|
-
reverse?: boolean;
|
|
24
|
-
}
|
|
25
|
-
): FeatureCollection<LineString>;
|
|
26
|
-
|
|
27
|
-
export { lineChunk };
|
|
28
|
-
export default lineChunk;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|