diff options
| author | Hank <hank@mullvad.net> | 2022-10-06 11:21:44 +0200 |
|---|---|---|
| committer | Hank <hank@mullvad.net> | 2022-10-07 14:57:33 +0200 |
| commit | 48cf534d6610161e5db730dc91d187da79494aa7 (patch) | |
| tree | 5fec81c49b93e722ddaada635a28e967e62bf344 /gui/scripts | |
| parent | 6081f9aa0b9a1c93c6042f5b51846577a77abce1 (diff) | |
| download | mullvadvpn-48cf534d6610161e5db730dc91d187da79494aa7.tar.xz mullvadvpn-48cf534d6610161e5db730dc91d187da79494aa7.zip | |
Update rbush and @types/rbush
Diffstat (limited to 'gui/scripts')
| -rw-r--r-- | gui/scripts/prepare-rtree.ts | 4 |
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())); |
