@turf/geojson-rbush 7.0.0-alpha.113 → 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.
@@ -88,4 +88,4 @@ export {
88
88
  turf_geojson_rbush_default as default,
89
89
  geojsonRbush
90
90
  };
91
- //# sourceMappingURL=index.mjs.map
91
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/geojson-rbush",
3
- "version": "7.0.0-alpha.113+876702a45",
3
+ "version": "7.0.0-alpha.114+e0bdd0add",
4
4
  "description": "GeoJSON implementation of RBush",
5
5
  "author": "Turf Authors",
6
6
  "contributors": [
@@ -28,27 +28,26 @@
28
28
  "spatial",
29
29
  "rbush"
30
30
  ],
31
- "type": "commonjs",
31
+ "type": "module",
32
32
  "main": "dist/cjs/index.cjs",
33
- "module": "dist/esm/index.mjs",
34
- "types": "dist/cjs/index.d.ts",
33
+ "module": "dist/esm/index.js",
34
+ "types": "dist/esm/index.d.ts",
35
35
  "exports": {
36
36
  "./package.json": "./package.json",
37
37
  ".": {
38
38
  "import": {
39
- "types": "./dist/esm/index.d.mts",
40
- "default": "./dist/esm/index.mjs"
39
+ "types": "./dist/esm/index.d.ts",
40
+ "default": "./dist/esm/index.js"
41
41
  },
42
42
  "require": {
43
- "types": "./dist/cjs/index.d.ts",
43
+ "types": "./dist/cjs/index.d.cts",
44
44
  "default": "./dist/cjs/index.cjs"
45
45
  }
46
46
  }
47
47
  },
48
48
  "sideEffects": false,
49
49
  "files": [
50
- "dist",
51
- "index.d.ts"
50
+ "dist"
52
51
  ],
53
52
  "scripts": {
54
53
  "bench": "tsx bench.ts",
@@ -56,11 +55,13 @@
56
55
  "docs": "tsx ../../scripts/generate-readmes.ts",
57
56
  "test": "npm-run-all --npm-path npm test:*",
58
57
  "test:tape": "tsx test.ts",
59
- "test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
58
+ "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts"
60
59
  },
61
60
  "devDependencies": {
62
- "@turf/bbox-polygon": "^7.0.0-alpha.113+876702a45",
63
- "@turf/random": "^7.0.0-alpha.113+876702a45",
61
+ "@turf/bbox-polygon": "^7.0.0-alpha.114+e0bdd0add",
62
+ "@turf/random": "^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",
@@ -71,11 +72,11 @@
71
72
  "write-json-file": "^5.0.0"
72
73
  },
73
74
  "dependencies": {
74
- "@turf/bbox": "^7.0.0-alpha.113+876702a45",
75
- "@turf/helpers": "^7.0.0-alpha.113+876702a45",
76
- "@turf/meta": "^7.0.0-alpha.113+876702a45",
75
+ "@turf/bbox": "^7.0.0-alpha.114+e0bdd0add",
76
+ "@turf/helpers": "^7.0.0-alpha.114+e0bdd0add",
77
+ "@turf/meta": "^7.0.0-alpha.114+e0bdd0add",
77
78
  "@types/geojson": "7946.0.8",
78
79
  "rbush": "^3.0.1"
79
80
  },
80
- "gitHead": "876702a454d5d085d6e1e54ae286c2b5bc08f584"
81
+ "gitHead": "e0bdd0add87f21a4430f8884736096d1ac6fe4cd"
81
82
  }
package/index.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import {
2
- BBox,
3
- Feature,
4
- FeatureCollection,
5
- Geometry,
6
- GeoJsonProperties,
7
- } from "geojson";
8
-
9
- declare class RBush<G extends Geometry, P extends GeoJsonProperties> {
10
- insert(feature: Feature<G, P>): RBush<G, P>;
11
- load(features: FeatureCollection<G, P> | Feature<G, P>[]): RBush<G, P>;
12
- remove(
13
- feature: Feature<G, P>,
14
- equals?: (a: Feature<G, P>, b: Feature<G, P>) => boolean
15
- ): RBush<G, P>;
16
- clear(): RBush<G, P>;
17
- search(geojson: Feature | FeatureCollection | BBox): FeatureCollection<G, P>;
18
- all(): FeatureCollection<any>;
19
- collides(geosjon: Feature | FeatureCollection | BBox): boolean;
20
- toJSON(): any;
21
- fromJSON(data: any): RBush<G, P>;
22
- }
23
-
24
- /**
25
- * https://github.com/mourner/rbush
26
- */
27
- declare function geojsonRbush<
28
- G extends Geometry = Geometry,
29
- P extends GeoJsonProperties = GeoJsonProperties,
30
- >(maxEntries?: number): RBush<G, P>;
31
-
32
- export { geojsonRbush };
33
- export default geojsonRbush;
File without changes
File without changes
File without changes