@cubejs-backend/shared
Advanced tools
Comparing version 1.2.18 to 1.2.19
@@ -858,2 +858,22 @@ "use strict"; | ||
pinotAuthToken: ({ dataSource, }) => (process.env[keyByDataSource('CUBEJS_DB_PINOT_AUTH_TOKEN', dataSource)]), | ||
/** | ||
* Pinot / Startree Null value support | ||
*/ | ||
pinotNullHandling: ({ dataSource }) => { | ||
const val = process.env[keyByDataSource('CUBEJS_DB_PINOT_NULL_HANDLING', dataSource)]; | ||
if (val) { | ||
if (val.toLocaleLowerCase() === 'true') { | ||
return true; | ||
} | ||
else if (val.toLowerCase() === 'false') { | ||
return false; | ||
} | ||
else { | ||
throw new TypeError(`The ${keyByDataSource('CUBEJS_DB_PINOT_NULL_HANDLING', dataSource)} must be either 'true' or 'false'.`); | ||
} | ||
} | ||
else { | ||
return false; | ||
} | ||
}, | ||
/** **************************************************************** | ||
@@ -860,0 +880,0 @@ * Dremio Driver * |
{ | ||
"name": "@cubejs-backend/shared", | ||
"version": "1.2.18", | ||
"version": "1.2.19", | ||
"description": "Shared code for Cube.js backend packages", | ||
@@ -25,3 +25,3 @@ "main": "dist/src/index.js", | ||
"devDependencies": { | ||
"@cubejs-backend/linter": "1.2.18", | ||
"@cubejs-backend/linter": "1.2.19", | ||
"@types/bytes": "^3.1.5", | ||
@@ -76,3 +76,3 @@ "@types/cli-progress": "^3.9.1", | ||
}, | ||
"gitHead": "085b54f803b2175dd725c9ebe65cf2a88b5045d8" | ||
"gitHead": "e19beb56921f2f985b784e2bd3c91b08fd32593d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
218642
2839
123