@turf/line-chunk 7.0.0-alpha.113 → 7.0.0-alpha.115

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.
@@ -51,4 +51,4 @@ export {
51
51
  turf_line_chunk_default as default,
52
52
  lineChunk
53
53
  };
54
- //# sourceMappingURL=index.mjs.map
54
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/line-chunk",
3
- "version": "7.0.0-alpha.113+876702a45",
3
+ "version": "7.0.0-alpha.115+c76e6e96e",
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": "commonjs",
32
+ "type": "module",
33
33
  "main": "dist/cjs/index.cjs",
34
- "module": "dist/esm/index.mjs",
35
- "types": "dist/cjs/index.d.ts",
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.mts",
41
- "default": "./dist/esm/index.mjs"
40
+ "types": "./dist/esm/index.d.ts",
41
+ "default": "./dist/esm/index.js"
42
42
  },
43
43
  "require": {
44
- "types": "./dist/cjs/index.d.ts",
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.113+876702a45",
62
+ "@turf/truncate": "^7.0.0-alpha.115+c76e6e96e",
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.113+876702a45",
74
- "@turf/length": "^7.0.0-alpha.113+876702a45",
75
- "@turf/line-slice-along": "^7.0.0-alpha.113+876702a45",
76
- "@turf/meta": "^7.0.0-alpha.113+876702a45"
74
+ "@turf/helpers": "^7.0.0-alpha.115+c76e6e96e",
75
+ "@turf/length": "^7.0.0-alpha.115+c76e6e96e",
76
+ "@turf/line-slice-along": "^7.0.0-alpha.115+c76e6e96e",
77
+ "@turf/meta": "^7.0.0-alpha.115+c76e6e96e"
77
78
  },
78
- "gitHead": "876702a454d5d085d6e1e54ae286c2b5bc08f584"
79
+ "gitHead": "c76e6e96eea2a08d55f670333a085535da5371ce"
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