@yobytechautomation/config-lib 0.2.1 → 0.2.3

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.
@@ -57,9 +57,6 @@ export interface BaseConfigService {
57
57
  };
58
58
  };
59
59
  }
60
- /**
61
- * 🔥 BASE IMPLEMENTATION (LICENSE CONTROL)
62
- */
63
60
  export declare abstract class BaseConfigServiceImpl implements BaseConfigService {
64
61
  protected env: Record<string, any>;
65
62
  constructor();
@@ -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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yobytechautomation/config-lib",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Shared multi-environment configuration helpers for SDC NestJS services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",