Do not use underscore

This commit is contained in:
Daniel García Aubert 2018-05-30 20:10:59 +02:00
parent c0e6bf1299
commit 94a5020faf

View File

@ -1,4 +1,3 @@
const _ = require('underscore');
const dot = require('dot'); const dot = require('dot');
const QueryTables = require('cartodb-query-tables'); const QueryTables = require('cartodb-query-tables');
@ -72,14 +71,14 @@ module.exports = class MapStoreMapConfigProvider {
} }
createKey (base) { createKey (base) {
const tplValues = _.defaults({}, this.params, { const tplValues = Object.assign({
dbname: '', dbname: '',
token: '', token: '',
dbuser: '', dbuser: '',
format: '', format: '',
layer: '', layer: '',
scale_factor: 1 scale_factor: 1
}); }, this.params);
return (base) ? baseKeyTpl(tplValues) : rendererKeyTpl(tplValues); return (base) ? baseKeyTpl(tplValues) : rendererKeyTpl(tplValues);
} }