Skip to content

Commit

Permalink
Update rbush to ^3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simonepri committed Jul 2, 2020
1 parent 8badb26 commit 107b621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const rbush = require('rbush');
const RBush = require('rbush');
const tbbox = require('@turf/bbox').default;

const tcontains = require('@turf/boolean-contains').default;
Expand Down Expand Up @@ -54,7 +54,7 @@ class GeoJsonGeometriesLookup {
const dim = this.D[d];
if (dim.list.length > 0) {
dim.bboxs = new Array(dim.list.length);
dim.lookup = rbush();
dim.lookup = new RBush();

const geoms = dim.list;
const bboxs = dim.bboxs;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@turf/bbox": "^6.0.1",
"@turf/boolean-contains": "^6.0.1",
"geojson-geometries": "^1.1.1",
"rbush": "^2.0.1"
"rbush": "^3.0.1"
},
"devDependencies": {
"@turf/helpers": "^6.1.4",
Expand Down

0 comments on commit 107b621

Please sign in to comment.