diff --git a/package.json b/package.json index ba4426f037..0db40c7e7a 100644 --- a/package.json +++ b/package.json @@ -96,8 +96,7 @@ "leaflet-plugins": "https://github.com/Polyconseil/leaflet-plugins/tarball/master", "leaflet-simple-graticule": "1.0.2", "leaflet.locatecontrol": "0.45.1", - "lodash": "3.10.1", - "lodash.castarray": "4.4.0", + "lodash": "4.17.4", "moment": "2.13.0", "node-uuid": "1.4.3", "object-assign": "4.1.1", diff --git a/web/client/api/WMTS.js b/web/client/api/WMTS.js index 3187c4f887..980e589d3c 100644 --- a/web/client/api/WMTS.js +++ b/web/client/api/WMTS.js @@ -17,7 +17,7 @@ const capabilitiesCache = {}; const {isArray, head} = require('lodash'); -const castArray = require('lodash.castarray'); +const {castArray} = require('lodash'); const CoordinatesUtils = require('../utils/CoordinatesUtils'); diff --git a/web/client/utils/CatalogUtils.js b/web/client/utils/CatalogUtils.js index e9cca6a860..2f065dc78d 100644 --- a/web/client/utils/CatalogUtils.js +++ b/web/client/utils/CatalogUtils.js @@ -10,7 +10,7 @@ const assign = require('object-assign'); const {head, isArray, isString} = require('lodash'); const urlUtil = require('url'); const CoordinatesUtils = require('./CoordinatesUtils'); -const castArray = require('lodash.castarray'); +const {castArray} = require('lodash'); const getWMSBBox = (record) => { let layer = record;