Skip to content

Commit

Permalink
upgrade deps & node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Aug 15, 2019
1 parent 23f6a76 commit 6854a05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ matrix:
- make test

- language: node
node_js: 4
node_js: 10
script:
- npm install
- npm test

- language: node
node_js: stable
node_js: node
script:
- npm install
- npm test
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"author": "Vladimir Agafonkin",
"license": "ISC",
"devDependencies": {
"eslint": "^3.0.1",
"eslint": "^4.19.1",
"eslint-config-mourner": "^2.0.1",
"tape": "^4.6.0"
"tape": "^4.11.0"
},
"eslintConfig": {
"extends": "mourner"
},
"dependencies": {
"tinyqueue": "^1.1.0"
"tinyqueue": "^2.0.3"
}
}
}
2 changes: 1 addition & 1 deletion polylabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function polylabel(polygon, precision, debug) {
if (cellSize === 0) return [minX, minY];

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

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

0 comments on commit 6854a05

Please sign in to comment.