Rename template_maps -> template-maps

This commit is contained in:
Daniel García Aubert 2019-10-07 10:50:14 +02:00
parent f1de1b3b91
commit e8cff194fc
18 changed files with 17 additions and 17 deletions

View File

@ -11,7 +11,7 @@ const PgConnection = require('../backends/pg-connection');
const AnalysisBackend = require('../backends/analysis'); const AnalysisBackend = require('../backends/analysis');
const AnalysisStatusBackend = require('../backends/analysis-status'); const AnalysisStatusBackend = require('../backends/analysis-status');
const DataviewBackend = require('../backends/dataview'); const DataviewBackend = require('../backends/dataview');
const TemplateMaps = require('../backends/template_maps.js'); const TemplateMaps = require('../backends/template-maps');
const PgQueryRunner = require('../backends/pg-query-runner'); const PgQueryRunner = require('../backends/pg-query-runner');
const StatsBackend = require('../backends/stats'); const StatsBackend = require('../backends/stats');
const AuthBackend = require('../backends/auth'); const AuthBackend = require('../backends/auth');

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
const { templateName } = require('../../backends/template_maps'); const { templateName } = require('../../backends/template-maps');
const credentials = require('../middlewares/credentials'); const credentials = require('../middlewares/credentials');
const rateLimit = require('../middlewares/rate-limit'); const rateLimit = require('../middlewares/rate-limit');
const { RATE_LIMIT_ENDPOINTS_GROUPS } = rateLimit; const { RATE_LIMIT_ENDPOINTS_GROUPS } = rateLimit;

View File

@ -3,7 +3,7 @@
const LruCache = require('lru-cache'); const LruCache = require('lru-cache');
const NamedMapMapConfigProvider = require('../models/mapconfig/provider/named-map-provider'); const NamedMapMapConfigProvider = require('../models/mapconfig/provider/named-map-provider');
const { templateName } = require('../backends/template_maps'); const { templateName } = require('../backends/template-maps');
const TEN_MINUTES_IN_MILLISECONDS = 1000 * 60 * 10; const TEN_MINUTES_IN_MILLISECONDS = 1000 * 60 * 10;
const ACTIONS = ['update', 'delete']; const ACTIONS = ['update', 'delete'];

View File

@ -4,7 +4,7 @@ const BaseMapConfigProvider = require('./base-mapconfig-adapter');
const crypto = require('crypto'); const crypto = require('crypto');
const dot = require('dot'); const dot = require('dot');
const MapConfig = require('windshaft').model.MapConfig; const MapConfig = require('windshaft').model.MapConfig;
const templateName = require('../../../backends/template_maps').templateName; const templateName = require('../../../backends/template-maps').templateName;
// Configure bases for cache keys suitable for string interpolation // Configure bases for cache keys suitable for string interpolation
const baseKey = '{{=it.dbname}}:{{=it.user}}:{{=it.templateName}}'; const baseKey = '{{=it.dbname}}:{{=it.user}}:{{=it.templateName}}';

View File

@ -8,7 +8,7 @@ var CartodbWindshaft = require(__dirname + '/../../lib/server');
var serverOptions = require(__dirname + '/../../lib/server-options'); var serverOptions = require(__dirname + '/../../lib/server-options');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../lib/backends/template_maps.js'); var TemplateMaps = require('../../lib/backends/template-maps');
var mapnik = require('windshaft').mapnik; var mapnik = require('windshaft').mapnik;
var IMAGE_TOLERANCE = 20; var IMAGE_TOLERANCE = 20;

View File

@ -9,7 +9,7 @@ var serverOptions = require(__dirname + '/../../lib/server-options');
var LayergroupToken = require('../../lib/models/layergroup-token'); var LayergroupToken = require('../../lib/models/layergroup-token');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../lib/backends/template_maps.js'); var TemplateMaps = require('../../lib/backends/template-maps');
var step = require('step'); var step = require('step');

View File

@ -8,7 +8,7 @@ var assert = require('../support/assert');
var mapnik = require('windshaft').mapnik; var mapnik = require('windshaft').mapnik;
var CartodbWindshaft = require(__dirname + '/../../lib/server'); var CartodbWindshaft = require(__dirname + '/../../lib/server');
var serverOptions = require(__dirname + '/../../lib/server-options'); var serverOptions = require(__dirname + '/../../lib/server-options');
var TemplateMaps = require('../../lib/backends/template_maps.js'); var TemplateMaps = require('../../lib/backends/template-maps');
var NamedMapsCacheEntry = require('../../lib/cache/model/named-maps-entry'); var NamedMapsCacheEntry = require('../../lib/cache/model/named-maps-entry');
describe('named maps authentication', function() { describe('named maps authentication', function() {

View File

@ -8,7 +8,7 @@ var assert = require('../support/assert');
var mapnik = require('windshaft').mapnik; var mapnik = require('windshaft').mapnik;
var CartodbWindshaft = require('../../lib/server'); var CartodbWindshaft = require('../../lib/server');
var serverOptions = require('../../lib/server-options'); var serverOptions = require('../../lib/server-options');
var TemplateMaps = require('../../lib/backends/template_maps.js'); var TemplateMaps = require('../../lib/backends/template-maps');
describe('named maps static view', function() { describe('named maps static view', function() {
// configure redis pool instance to use in tests // configure redis pool instance to use in tests

View File

@ -8,7 +8,7 @@ var assert = require('../support/assert');
var mapnik = require('windshaft').mapnik; var mapnik = require('windshaft').mapnik;
var CartodbWindshaft = require(__dirname + '/../../lib/server'); var CartodbWindshaft = require(__dirname + '/../../lib/server');
var serverOptions = require(__dirname + '/../../lib/server-options'); var serverOptions = require(__dirname + '/../../lib/server-options');
var TemplateMaps = require('../../lib/backends/template_maps.js'); var TemplateMaps = require('../../lib/backends/template-maps');
var NamedMapsCacheEntry = require('../../lib/cache/model/named-maps-entry'); var NamedMapsCacheEntry = require('../../lib/cache/model/named-maps-entry');
describe('named maps preview stats', function() { describe('named maps preview stats', function() {

View File

@ -4,7 +4,7 @@ require('../support/test-helper');
var assert = require('assert'); var assert = require('assert');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../lib/backends/template_maps.js'); var TemplateMaps = require('../../lib/backends/template-maps');
var PgConnection = require('../../lib/backends/pg-connection'); var PgConnection = require('../../lib/backends/pg-connection');
var MapConfigNamedLayersAdapter = require('../../lib/models/mapconfig/adapter/mapconfig-named-layers-adapter'); var MapConfigNamedLayersAdapter = require('../../lib/models/mapconfig/adapter/mapconfig-named-layers-adapter');

View File

@ -4,7 +4,7 @@ require('../support/test-helper');
var assert = require('assert'); var assert = require('assert');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../lib/backends/template_maps.js'); var TemplateMaps = require('../../lib/backends/template-maps');
var PgConnection = require('../../lib/backends/pg-connection'); var PgConnection = require('../../lib/backends/pg-connection');
var MapConfigNamedLayersAdapter = require('../../lib/models/mapconfig/adapter/mapconfig-named-layers-adapter'); var MapConfigNamedLayersAdapter = require('../../lib/models/mapconfig/adapter/mapconfig-named-layers-adapter');

View File

@ -5,7 +5,7 @@ require('../support/test-helper');
var assert = require('assert'); var assert = require('assert');
var redis = require('redis'); var redis = require('redis');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../lib/backends/template_maps'); var TemplateMaps = require('../../lib/backends/template-maps');
describe('TemplateMaps limits', function() { describe('TemplateMaps limits', function() {

View File

@ -7,7 +7,7 @@ var RedisPool = require('redis-mpool');
var cartodbRedis = require('cartodb-redis'); var cartodbRedis = require('cartodb-redis');
var PgConnection = require('../../../lib/backends/pg-connection'); var PgConnection = require('../../../lib/backends/pg-connection');
var AuthBackend = require('../../../lib/backends/auth'); var AuthBackend = require('../../../lib/backends/auth');
var TemplateMaps = require('../../../lib/backends/template_maps'); var TemplateMaps = require('../../../lib/backends/template-maps');
const cleanUpQueryParamsMiddleware = require('../../../lib/api/middlewares/clean-up-query-params'); const cleanUpQueryParamsMiddleware = require('../../../lib/api/middlewares/clean-up-query-params');
const authorizeMiddleware = require('../../../lib/api/middlewares/authorize'); const authorizeMiddleware = require('../../../lib/api/middlewares/authorize');

View File

@ -5,7 +5,7 @@ require('../../support/test-helper');
var assert = require('assert'); var assert = require('assert');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template_maps'); var TemplateMaps = require('../../../lib/backends/template-maps');
describe('template_maps_auth', function() { describe('template_maps_auth', function() {

View File

@ -4,7 +4,7 @@ require('../../support/test-helper');
var assert = require('assert'); var assert = require('assert');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template_maps.js'); var TemplateMaps = require('../../../lib/backends/template-maps');
var _ = require('underscore'); var _ = require('underscore');
describe('template_maps', function() { describe('template_maps', function() {

View File

@ -4,7 +4,7 @@ var testHelper = require('../../support/test-helper');
var assert = require('assert'); var assert = require('assert');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template_maps.js'); var TemplateMaps = require('../../../lib/backends/template-maps');
var step = require('step'); var step = require('step');
var _ = require('underscore'); var _ = require('underscore');

View File

@ -4,7 +4,7 @@ require('../../support/test-helper');
var assert = require('assert'); var assert = require('assert');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template_maps.js'); var TemplateMaps = require('../../../lib/backends/template-maps');
var _ = require('underscore'); var _ = require('underscore');
describe('template_maps', function() { describe('template_maps', function() {