@turf/buffer 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.
@@ -117,4 +117,4 @@ export {
117
117
  buffer,
118
118
  turf_buffer_default as default
119
119
  };
120
- //# sourceMappingURL=index.mjs.map
120
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/buffer",
3
- "version": "7.0.0-alpha.113+876702a45",
3
+ "version": "7.0.0-alpha.115+c76e6e96e",
4
4
  "description": "turf buffer module",
5
5
  "author": "Turf Authors",
6
6
  "contributors": [
@@ -30,27 +30,26 @@
30
30
  "geojson",
31
31
  "turf"
32
32
  ],
33
- "type": "commonjs",
33
+ "type": "module",
34
34
  "main": "dist/cjs/index.cjs",
35
- "module": "dist/esm/index.mjs",
36
- "types": "dist/cjs/index.d.ts",
35
+ "module": "dist/esm/index.js",
36
+ "types": "dist/esm/index.d.ts",
37
37
  "exports": {
38
38
  "./package.json": "./package.json",
39
39
  ".": {
40
40
  "import": {
41
- "types": "./dist/esm/index.d.mts",
42
- "default": "./dist/esm/index.mjs"
41
+ "types": "./dist/esm/index.d.ts",
42
+ "default": "./dist/esm/index.js"
43
43
  },
44
44
  "require": {
45
- "types": "./dist/cjs/index.d.ts",
45
+ "types": "./dist/cjs/index.d.cts",
46
46
  "default": "./dist/cjs/index.cjs"
47
47
  }
48
48
  }
49
49
  },
50
50
  "sideEffects": false,
51
51
  "files": [
52
- "dist",
53
- "index.d.ts"
52
+ "dist"
54
53
  ],
55
54
  "scripts": {
56
55
  "bench": "tsx bench.ts",
@@ -58,10 +57,12 @@
58
57
  "docs": "tsx ../../scripts/generate-readmes.ts",
59
58
  "test": "npm-run-all --npm-path npm test:*",
60
59
  "test:tape": "tsx test.ts",
61
- "test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
60
+ "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts"
62
61
  },
63
62
  "devDependencies": {
64
- "@turf/truncate": "^7.0.0-alpha.113+876702a45",
63
+ "@turf/truncate": "^7.0.0-alpha.115+c76e6e96e",
64
+ "@types/benchmark": "^2.1.5",
65
+ "@types/tape": "^4.2.32",
65
66
  "benchmark": "^2.1.4",
66
67
  "load-json-file": "^7.0.1",
67
68
  "npm-run-all": "^4.1.5",
@@ -71,13 +72,13 @@
71
72
  "write-json-file": "^5.0.0"
72
73
  },
73
74
  "dependencies": {
74
- "@turf/bbox": "^7.0.0-alpha.113+876702a45",
75
- "@turf/center": "^7.0.0-alpha.113+876702a45",
76
- "@turf/helpers": "^7.0.0-alpha.113+876702a45",
75
+ "@turf/bbox": "^7.0.0-alpha.115+c76e6e96e",
76
+ "@turf/center": "^7.0.0-alpha.115+c76e6e96e",
77
+ "@turf/helpers": "^7.0.0-alpha.115+c76e6e96e",
77
78
  "@turf/jsts": "^2.7.1",
78
- "@turf/meta": "^7.0.0-alpha.113+876702a45",
79
- "@turf/projection": "^7.0.0-alpha.113+876702a45",
79
+ "@turf/meta": "^7.0.0-alpha.115+c76e6e96e",
80
+ "@turf/projection": "^7.0.0-alpha.115+c76e6e96e",
80
81
  "d3-geo": "1.7.1"
81
82
  },
82
- "gitHead": "876702a454d5d085d6e1e54ae286c2b5bc08f584"
83
+ "gitHead": "c76e6e96eea2a08d55f670333a085535da5371ce"
83
84
  }
package/index.d.ts DELETED
@@ -1,42 +0,0 @@
1
- import {
2
- Point,
3
- LineString,
4
- Polygon,
5
- MultiPoint,
6
- MultiLineString,
7
- MultiPolygon,
8
- GeometryObject,
9
- GeometryCollection,
10
- Feature,
11
- FeatureCollection,
12
- } from "geojson";
13
- import { Units } from "@turf/helpers";
14
-
15
- interface Options {
16
- units?: Units;
17
- steps?: number;
18
- }
19
-
20
- /**
21
- * http://turfjs.org/docs/#buffer
22
- */
23
- declare function buffer(
24
- feature:
25
- | Feature<GeometryObject>
26
- | Point
27
- | LineString
28
- | Polygon
29
- | MultiPoint
30
- | MultiLineString
31
- | MultiPolygon,
32
- radius?: number,
33
- options?: Options
34
- ): Feature<Polygon | MultiPolygon>;
35
- declare function buffer(
36
- feature: FeatureCollection<GeometryObject> | GeometryCollection,
37
- radius?: number,
38
- options?: Options
39
- ): FeatureCollection<Polygon | MultiPolygon>;
40
-
41
- export { buffer };
42
- export default buffer;
File without changes
File without changes
File without changes