Upgrade dependencies

pull/74/head
Christian Paul 2019-10-10 19:50:50 +02:00
rodzic 54235a81b7
commit 184ce100d7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D2CA0D5A16407395
4 zmienionych plików z 758 dodań i 832 usunięć

1570
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -30,13 +30,13 @@
"license": "MIT",
"dependencies": {
"@mapbox/vector-tile": "^1.3.1",
"bluebird": "^3.5.5",
"bluebird": "^3.7.0",
"bresenham": "0.0.4",
"earcut": "^2.1.5",
"earcut": "^2.2.1",
"keypress": "^0.2.1",
"node-fetch": "^2.6.0",
"pbf": "^3.2.0",
"rbush": "^2.0.2",
"rbush": "^3.0.1",
"simplify-js": "^1.2.3",
"string-width": "^4.1.0",
"term-mouse": "^0.2.0",
@ -44,7 +44,7 @@
"x256": "0.0.2"
},
"devDependencies": {
"eslint": "^5.16.0",
"jest": "^24.8.0"
"eslint": "^6.5.1",
"jest": "^24.9.0"
}
}

Wyświetl plik

@ -6,13 +6,13 @@
and to find labels underneath a mouse cursor's position
*/
'use strict';
const Rbush = require('rbush');
const RBush = require('rbush');
const stringWidth = require('string-width');
module.exports = class LabelBuffer {
constructor() {
this.tree = Rbush();
this.tree = new RBush();
this.margin = 5;
}

Wyświetl plik

@ -8,7 +8,7 @@
const VectorTile = require('@mapbox/vector-tile').VectorTile;
const Protobuf = require('pbf');
const zlib = require('zlib');
const rbush = require('rbush');
const RBush = require('rbush');
const x256 = require('x256');
const config = require('./config');
@ -62,7 +62,7 @@ class Tile {
for (let i = 0; i < layer.length; i++) {
// TODO: caching of similar attributes to avoid looking up the style each time
//continue if @styler and not @styler.getStyleFor layer, feature
const feature = layer.feature(i);
feature.properties.$type = [undefined, 'Point', 'LineString', 'Polygon'][feature.type];
let style;
@ -111,7 +111,7 @@ class Tile {
}
}
}
const tree = rbush(18);
const tree = new RBush(18);
tree.load(nodes);
layers[name] = {
extent: layer.extent,