@edirect/config 11.0.58 → 11.0.60

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edirect/config",
3
- "version": "11.0.57",
3
+ "version": "11.0.59",
4
4
  "main": "./dist/src/index.js",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"config.service.d.ts","sourceRoot":"","sources":["../../../src/config/config.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBAAa,aAAa;gBACZ,QAAQ,CAAC,EAAE,MAAM;IAW7B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIpC;;;;;;OAMG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAQ/B,SAAS,IAAI,aAAa;CAG3B"}
1
+ {"version":3,"file":"config.service.d.ts","sourceRoot":"","sources":["../../../src/config/config.service.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBACa,aAAa;gBAC4B,QAAQ,CAAC,EAAE,MAAM;IAWrE,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIpC;;;;;;OAMG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAQ/B,SAAS,IAAI,aAAa;CAG3B"}
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConfigService = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
4
6
  const dotenv_1 = require("dotenv");
5
7
  const fs_1 = require("fs");
6
8
  const config_missing_error_1 = require("./config-missing.error");
7
- class ConfigService {
9
+ let ConfigService = class ConfigService {
8
10
  constructor(filePath) {
9
11
  try {
10
12
  if (filePath && (0, fs_1.existsSync)(filePath)) {
@@ -36,5 +38,11 @@ class ConfigService {
36
38
  getConfig() {
37
39
  return process.env;
38
40
  }
39
- }
41
+ };
40
42
  exports.ConfigService = ConfigService;
43
+ exports.ConfigService = ConfigService = tslib_1.__decorate([
44
+ (0, common_1.Injectable)(),
45
+ tslib_1.__param(0, (0, common_1.Optional)()),
46
+ tslib_1.__param(0, (0, common_1.Inject)('CONFIG_FILE_PATH')),
47
+ tslib_1.__metadata("design:paramtypes", [String])
48
+ ], ConfigService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edirect/config",
3
- "version": "11.0.58",
3
+ "version": "11.0.60",
4
4
  "packageScope": "@edirect",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",