Skip to content

Commit 6854a05

Browse files
committed
upgrade deps & node versions
1 parent 23f6a76 commit 6854a05

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ matrix:
3232
- make test
3333

3434
- language: node
35-
node_js: 4
35+
node_js: 10
3636
script:
3737
- npm install
3838
- npm test
3939

4040
- language: node
41-
node_js: stable
41+
node_js: node
4242
script:
4343
- npm install
4444
- npm test

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"author": "Vladimir Agafonkin",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"eslint": "^3.0.1",
14+
"eslint": "^4.19.1",
1515
"eslint-config-mourner": "^2.0.1",
16-
"tape": "^4.6.0"
16+
"tape": "^4.11.0"
1717
},
1818
"eslintConfig": {
1919
"extends": "mourner"
2020
},
2121
"dependencies": {
22-
"tinyqueue": "^1.1.0"
22+
"tinyqueue": "^2.0.3"
2323
}
24-
}
24+
}

polylabel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function polylabel(polygon, precision, debug) {
2626
if (cellSize === 0) return [minX, minY];
2727

2828
// a priority queue of cells in order of their "potential" (max distance to polygon)
29-
var cellQueue = new Queue(null, compareMax);
29+
var cellQueue = new Queue(undefined, compareMax);
3030

3131
// cover polygon with initial cells
3232
for (var x = minX; x < maxX; x += cellSize) {

0 commit comments

Comments
 (0)