diff --git a/package.json b/package.json index 260ae88..c008bd4 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "date-fns": "^1.29.0", "debug": "^3.1.0", "isomorphic-fetch": "^2.2.1", - "jsolines": "^1.0.2", + "jsolines": "^2.1.0", "leaflet": "^1.3.4", "lodash": "^4.17.10", "mastarm": "^4.3.1", diff --git a/src/actions/network.js b/src/actions/network.js index 7af8ca8..652e8f6 100644 --- a/src/actions/network.js +++ b/src/actions/network.js @@ -235,7 +235,7 @@ const fetchTimesAndPathsForNetworkAtIndex = (network, originPoint, index) => const travelTimeSurface = parseTimesData(timesResponse.value) const {paths, pathsPerTarget, targets} = parsePathsData(pathsResponse.value) - if (process.env.NODE_ENV === 'development') { + if (process.env.NODE_ENV === 'test') { warnForInvalidPaths(paths, network.transitive) } diff --git a/yarn.lock b/yarn.lock index 36df808..9af9414 100644 --- a/yarn.lock +++ b/yarn.lock @@ -769,19 +769,22 @@ into-stream "^3.1.0" lodash "^4.17.4" -"@turf/helpers@^3.10.3": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@turf/helpers/-/helpers-3.13.0.tgz#d06078a1464cf56cdb7ea624ea1e13a71b88b806" - -"@turf/inside@^3.10.3": - version "3.14.0" - resolved "https://registry.yarnpkg.com/@turf/inside/-/inside-3.14.0.tgz#d6b6af55882cbdb8f9a558dca98689c67bd3c590" +"@turf/boolean-point-in-polygon@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@turf/boolean-point-in-polygon/-/boolean-point-in-polygon-6.0.1.tgz#5836677afd77d2ee391af0056a0c29b660edfa32" dependencies: - "@turf/invariant" "^3.13.0" + "@turf/helpers" "6.x" + "@turf/invariant" "6.x" + +"@turf/helpers@6.x", "@turf/helpers@^6.1.4": + version "6.1.4" + resolved "https://registry.yarnpkg.com/@turf/helpers/-/helpers-6.1.4.tgz#d6fd7ebe6782dd9c87dca5559bda5c48ae4c3836" -"@turf/invariant@^3.13.0": - version "3.13.0" - resolved "https://registry.yarnpkg.com/@turf/invariant/-/invariant-3.13.0.tgz#89243308cd563206e81e5c6162e0d22f61822f90" +"@turf/invariant@6.x": + version "6.1.2" + resolved "https://registry.yarnpkg.com/@turf/invariant/-/invariant-6.1.2.tgz#6013ed6219f9ac2edada9b31e1dfa5918eb0a2f7" + dependencies: + "@turf/helpers" "6.x" JSONStream@^1.0.3, JSONStream@^1.0.4, JSONStream@^1.3.4: version "1.3.4" @@ -2719,7 +2722,7 @@ debounce@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" -debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.1, debug@^2.6.8, debug@^2.6.9: +debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" dependencies: @@ -5400,13 +5403,12 @@ jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" -jsolines@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/jsolines/-/jsolines-1.0.2.tgz#5332f7d77f5640054471a134317ae85346118c34" +jsolines@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/jsolines/-/jsolines-2.1.0.tgz#047dc4889c18ed44d946fe12cd6e5bd20bde7b6b" dependencies: - "@turf/helpers" "^3.10.3" - "@turf/inside" "^3.10.3" - debug "^2.6.1" + "@turf/boolean-point-in-polygon" "^6.0.1" + "@turf/helpers" "^6.1.4" json-parse-better-errors@^1.0.0, json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: version "1.0.2"