switched to more maintained @tmcw/togeojson

Solves few security issues
This commit is contained in:
Milos Brzakovic
2021-08-12 13:38:56 +02:00
parent 5ff84a8efd
commit 25e2050bcb
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import { text as d3_text } from 'd3-fetch';
import { select as d3_select } from 'd3-selection';
import stringify from 'fast-json-stable-stringify';
import toGeoJSON from '@mapbox/togeojson';
import { gpx, kml } from '@tmcw/togeojson';
import { geoExtent, geoPolygonIntersectsPolygon } from '../geo';
import { services } from '../services';
@@ -324,10 +324,10 @@ export function svgData(projection, context, dispatch) {
var gj;
switch (extension) {
case '.gpx':
gj = toGeoJSON.gpx(xmlToDom(data));
gj = gpx(xmlToDom(data));
break;
case '.kml':
gj = toGeoJSON.kml(xmlToDom(data));
gj = kml(xmlToDom(data));
break;
case '.geojson':
case '.json':
+1 -1
View File
@@ -46,8 +46,8 @@
"@ideditor/location-conflation": "~1.0.2",
"@mapbox/geojson-area": "^0.2.2",
"@mapbox/sexagesimal": "1.2.0",
"@mapbox/togeojson": "0.16.0",
"@mapbox/vector-tile": "^1.3.1",
"@tmcw/togeojson": "^4.5.0",
"@turf/bbox-clip": "^6.0.0",
"abortcontroller-polyfill": "^1.4.0",
"aes-js": "^3.1.2",