@yobytechautomation/config-lib 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,17 +38,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.BASE_CONFIG_SERVICE = exports.BaseConfigServiceImpl = void 0;
|
|
40
40
|
const axios_1 = __importDefault(require("axios"));
|
|
41
|
-
const dotenv = __importStar(require("dotenv"));
|
|
42
41
|
const fs = __importStar(require("fs"));
|
|
43
42
|
const path = __importStar(require("path"));
|
|
44
|
-
// 🔥 LOAD ENV FILE FIRST (VERY IMPORTANT)
|
|
45
|
-
dotenv.config({ path: process.env.ENV_FILE || '.env.local' });
|
|
46
|
-
/**
|
|
47
|
-
* 🔥 BASE IMPLEMENTATION (LICENSE CONTROL)
|
|
48
|
-
*/
|
|
49
43
|
class BaseConfigServiceImpl {
|
|
50
44
|
constructor() {
|
|
51
|
-
// 🔥 reload env AFTER dotenv
|
|
52
45
|
this.env = process.env;
|
|
53
46
|
}
|
|
54
47
|
getDatabaseConfig() {
|