@cubejs-backend/shared
Advanced tools
Comparing version 0.33.21 to 0.33.24
@@ -43,6 +43,2 @@ "use strict"; | ||
/** | ||
* Multiple data sources cache. | ||
*/ | ||
let dataSourcesCache; | ||
/** | ||
* Determines whether multiple data sources were declared or not. | ||
@@ -52,4 +48,3 @@ */ | ||
// eslint-disable-next-line no-use-before-define | ||
dataSourcesCache = dataSourcesCache || getEnv('dataSources'); | ||
return dataSourcesCache.length > 0; | ||
return getEnv('dataSources').length > 0; | ||
} | ||
@@ -64,4 +59,5 @@ /** | ||
return dataSource; | ||
// eslint-disable-next-line no-use-before-define | ||
} | ||
else if (dataSourcesCache.indexOf(dataSource) >= 0) { | ||
else if (getEnv('dataSources').indexOf(dataSource) >= 0) { | ||
return dataSource; | ||
@@ -163,3 +159,3 @@ } | ||
.asString(), | ||
concurrency: () => (0, env_var_1.get)('CUBEJS_CONCURRENCY').asInt(), | ||
concurrency: ({ dataSource, }) => (0, env_var_1.get)(keyByDataSource('CUBEJS_CONCURRENCY', dataSource)).asInt(), | ||
// It's only excepted for CI, nothing else. | ||
@@ -166,0 +162,0 @@ internalExceptions: () => (0, env_var_1.get)('INTERNAL_EXCEPTIONS_YOU_WILL_BE_FIRED') |
{ | ||
"name": "@cubejs-backend/shared", | ||
"version": "0.33.21", | ||
"version": "0.33.24", | ||
"description": "Shared code for Cube.js backend packages", | ||
@@ -74,3 +74,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "c20bb62bf3bd7708ffc99b937a8e13cc60a075e7" | ||
"gitHead": "fa91de68635017a8a19a2f615985d77621de16b9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184765
2422