From 348a973f688d2921f37d2cf5c4ef7cabbe7bc941 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 29 Sep 2016 10:51:10 -0400 Subject: [PATCH] A few changes to make things work and test with Node 4, 5, 6 --- .travis.yml | 4 +++- modules/actions/circularize.js | 5 ++--- modules/behavior/breathe.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index af6f969c2..5218daa21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: node_js node_js: - - "5.11" + - "4" + - "5" + - "6" sudo: false before_script: - make clean diff --git a/modules/actions/circularize.js b/modules/actions/circularize.js index f9c6aa7ae..8c8d5540b 100644 --- a/modules/actions/circularize.js +++ b/modules/actions/circularize.js @@ -7,11 +7,10 @@ import { polygonArea as d3polygonArea, polygonHull as d3polygonHull, polygonCentroid as d3polygonCentroid -} from 'd3-polygon'; +} from 'd3'; -export function Circularize(wayId - , projection, maxAngle) { +export function Circularize(wayId, projection, maxAngle) { maxAngle = (maxAngle || 20) * Math.PI / 180; var action = function(graph) { diff --git a/modules/behavior/breathe.js b/modules/behavior/breathe.js index 9b93b6365..51fb7f3ec 100644 --- a/modules/behavior/breathe.js +++ b/modules/behavior/breathe.js @@ -1,5 +1,5 @@ import * as d3 from 'd3'; -import { transition as d3transition } from 'd3-transition'; +import { transition as d3transition } from 'd3'; import _ from 'lodash';