summaryrefslogtreecommitdiffhomepage
path: root/gui/scripts
diff options
context:
space:
mode:
authorHank <hank@mullvad.net>2022-10-06 11:21:44 +0200
committerHank <hank@mullvad.net>2022-10-07 14:57:33 +0200
commit48cf534d6610161e5db730dc91d187da79494aa7 (patch)
tree5fec81c49b93e722ddaada635a28e967e62bf344 /gui/scripts
parent6081f9aa0b9a1c93c6042f5b51846577a77abce1 (diff)
downloadmullvadvpn-48cf534d6610161e5db730dc91d187da79494aa7.tar.xz
mullvadvpn-48cf534d6610161e5db730dc91d187da79494aa7.zip
Update rbush and @types/rbush
Diffstat (limited to 'gui/scripts')
-rw-r--r--gui/scripts/prepare-rtree.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/scripts/prepare-rtree.ts b/gui/scripts/prepare-rtree.ts
index 27fabb2f13..2252e829a9 100644
--- a/gui/scripts/prepare-rtree.ts
+++ b/gui/scripts/prepare-rtree.ts
@@ -6,7 +6,7 @@
import * as fs from 'fs';
import * as path from 'path';
import { Topology, GeometryCollection } from 'topojson-specification';
-import rbush from 'rbush';
+import RBush from 'rbush';
interface GeometryTopologyObjects {
[key: string]: any;
@@ -51,7 +51,7 @@ function processGeometry(source: string, destination: string) {
};
});
- const tree = rbush();
+ const tree = new RBush();
tree.load(treeData);
fs.writeFileSync(destination, JSON.stringify(tree.toJSON()));