Updates
This commit is contained in:
parent
382da38bb0
commit
03abe33d22
@ -10,8 +10,13 @@ const grab_dir_names_1 = __importDefault(require("./names/grab-dir-names"));
|
||||
* # Grab SSL
|
||||
*/
|
||||
function grabDbSSL() {
|
||||
const { maxscaleSSLCaCertFile } = (0, grab_dir_names_1.default)();
|
||||
const caFilePath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFile;
|
||||
let maxscaleSSLCaCertFileFinal;
|
||||
try {
|
||||
const { maxscaleSSLCaCertFile } = (0, grab_dir_names_1.default)();
|
||||
maxscaleSSLCaCertFileFinal = maxscaleSSLCaCertFile;
|
||||
}
|
||||
catch (error) { }
|
||||
const caFilePath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFileFinal;
|
||||
if (!(caFilePath === null || caFilePath === void 0 ? void 0 : caFilePath.match(/./))) {
|
||||
return undefined;
|
||||
}
|
||||
|
@ -8,9 +8,15 @@ type Return = ConnectionConfig["ssl"] | undefined;
|
||||
* # Grab SSL
|
||||
*/
|
||||
export default function grabDbSSL(): Return {
|
||||
const { maxscaleSSLCaCertFile } = grabDirNames();
|
||||
let maxscaleSSLCaCertFileFinal;
|
||||
|
||||
const caFilePath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFile;
|
||||
try {
|
||||
const { maxscaleSSLCaCertFile } = grabDirNames();
|
||||
maxscaleSSLCaCertFileFinal = maxscaleSSLCaCertFile;
|
||||
} catch (error) {}
|
||||
|
||||
const caFilePath =
|
||||
process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFileFinal;
|
||||
|
||||
if (!caFilePath?.match(/./)) {
|
||||
return undefined;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "4.9.1",
|
||||
"version": "4.9.2",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user