[js deps] fix dependencies vulnerabilities (#6904)

* [js deps] fix dependencies vulnerabilities

* Addressing comments

* Fix bug with Mapbox default example
This commit is contained in:
Maxime Beauchemin 2019-02-26 15:16:13 -08:00 committed by GitHub
parent ac198754f2
commit 0ffccb76bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1407 additions and 1464 deletions

File diff suppressed because it is too large Load Diff

View File

@ -97,7 +97,7 @@
"jquery": "3.1.1",
"json-bigint": "^0.3.0",
"lodash": "^4.17.11",
"mapbox-gl": "^0.45.0",
"mapbox-gl": "^0.53.0",
"mathjs": "^3.20.2",
"moment": "^2.20.1",
"mousetrap": "^1.6.1",
@ -117,7 +117,7 @@
"react-dom": "^16.4.1",
"react-gravatar": "^2.6.1",
"react-hot-loader": "^4.3.6",
"react-map-gl": "^3.0.4",
"react-map-gl": "^4.0.10",
"react-markdown": "^3.3.0",
"react-redux": "^5.0.2",
"react-search-input": "^0.11.3",
@ -154,7 +154,7 @@
"@types/react-dom": "^16.0.9",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.4",
"babel-plugin-css-modules-transform": "^1.1.0",
"babel-plugin-dynamic-import-node": "^1.2.0",
@ -183,7 +183,7 @@
"fork-ts-checker-webpack-plugin": "^0.4.9",
"ignore-styles": "^5.0.1",
"imports-loader": "^0.7.1",
"jest": "^23.6.0",
"jest": "^24.1.0",
"jsdom": "9.12.0",
"less": "^3.9.0",
"less-loader": "^4.1.0",

View File

@ -62,6 +62,10 @@ const defaultProps = {
};
class Chart extends React.PureComponent {
constructor(props) {
super(props);
this.handleRenderContainerFailure = this.handleRenderContainerFailure.bind(this);
}
componentDidMount() {
if (this.props.triggerQuery) {
this.props.actions.runQuery(

Binary file not shown.

View File

@ -2034,6 +2034,9 @@ class MapboxViz(BaseViz):
if fd.get('point_radius') == 'Auto'
else df[fd.get('point_radius')])
# limiting geo precision as long decimal values trigger issues
# around json-bignumber in Mapbox
GEO_PRECISION = 10
# using geoJSON formatting
geo_json = {
'type': 'FeatureCollection',
@ -2046,7 +2049,10 @@ class MapboxViz(BaseViz):
},
'geometry': {
'type': 'Point',
'coordinates': [lon, lat],
'coordinates': [
round(lon, GEO_PRECISION),
round(lat, GEO_PRECISION),
],
},
}
for lon, lat, metric, point_radius