nestjs-config-extended 1.2.2 → 1.2.4

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/.releaserc ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "release": {
3
+ "branches": [
4
+ "master",
5
+ "next"
6
+ ]
7
+ },
8
+ "plugins": [
9
+ [
10
+ "@semantic-release/commit-analyzer",
11
+ {
12
+ "preset": "angular",
13
+ "releaseRules": [
14
+ {
15
+ "type": "docs",
16
+ "scope": "README",
17
+ "release": "patch"
18
+ },
19
+ {
20
+ "type": "refactor",
21
+ "release": "patch"
22
+ },
23
+ {
24
+ "scope": "no-release",
25
+ "release": false
26
+ }
27
+ ]
28
+ }
29
+ ],
30
+ "@semantic-release/release-notes-generator",
31
+ [
32
+ "@semantic-release/npm",
33
+ {
34
+ "npmPublish": true
35
+ }
36
+ ]
37
+ ]
38
+ }
@@ -18,3 +18,4 @@ export declare const ASSIGNING_VARIABLES_TO_CACHE = "Assigning loaded variables
18
18
  export declare const STARTING_RELOAD = "Starting variables reload";
19
19
  export declare const ALL_STRATEGIES = "ALL";
20
20
  export declare const NOT_LOADED_STRATEGY_DISABLED = "Variables not loaded since strategy is disabled";
21
+ export declare const DEBUG_LOG_PREFIX = "[Extended Config Module]";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NOT_LOADED_STRATEGY_DISABLED = exports.ALL_STRATEGIES = exports.STARTING_RELOAD = exports.ASSIGNING_VARIABLES_TO_CACHE = exports.ASSIGNING_VARIABLES_TO_PROCESS_ENV = exports.TRANSFORMING_VARIABLES_FROM_STRATEGY = exports.VALIDATING_VARIABLES_FROM_STRATEGY = exports.RELOADING_VARIABLES_FROM_STRATEGY_BY_SCHEDULER = exports.RELOADING_VARIABLES_FROM_STRATEGY = exports.LOADING_VARIABLES_FROM_STRATEGY = exports.STARTING_STRATEGY = exports.INVALID_VARIABLES = exports.LOAD_REQUEST_IGNORED_DUE_IN_PROGRESS = exports.LOAD_REQUEST_IGNORED_DUE_ALREADY_LOADED = exports.FIRST_LOAD_REQUESTED = exports.VARIABLES_PRELOADED_BY_MODULE = exports.NOT_IDENTIFIED = exports.PRE_LOADED_VALUES = exports.EXTENDED_CONFIG_OPTIONS = exports.CRON_SCHEDULER = void 0;
3
+ exports.DEBUG_LOG_PREFIX = exports.NOT_LOADED_STRATEGY_DISABLED = exports.ALL_STRATEGIES = exports.STARTING_RELOAD = exports.ASSIGNING_VARIABLES_TO_CACHE = exports.ASSIGNING_VARIABLES_TO_PROCESS_ENV = exports.TRANSFORMING_VARIABLES_FROM_STRATEGY = exports.VALIDATING_VARIABLES_FROM_STRATEGY = exports.RELOADING_VARIABLES_FROM_STRATEGY_BY_SCHEDULER = exports.RELOADING_VARIABLES_FROM_STRATEGY = exports.LOADING_VARIABLES_FROM_STRATEGY = exports.STARTING_STRATEGY = exports.INVALID_VARIABLES = exports.LOAD_REQUEST_IGNORED_DUE_IN_PROGRESS = exports.LOAD_REQUEST_IGNORED_DUE_ALREADY_LOADED = exports.FIRST_LOAD_REQUESTED = exports.VARIABLES_PRELOADED_BY_MODULE = exports.NOT_IDENTIFIED = exports.PRE_LOADED_VALUES = exports.EXTENDED_CONFIG_OPTIONS = exports.CRON_SCHEDULER = void 0;
4
4
  exports.CRON_SCHEDULER = 'CRON_SCHEDULER';
5
5
  exports.EXTENDED_CONFIG_OPTIONS = 'EXTENDED_CONFIG_OPTIONS';
6
6
  exports.PRE_LOADED_VALUES = 'PRE_LOADED_VALUES';
@@ -9,15 +9,16 @@ exports.VARIABLES_PRELOADED_BY_MODULE = 'Variables was preloaded by module from
9
9
  exports.FIRST_LOAD_REQUESTED = 'Starting variables loading process';
10
10
  exports.LOAD_REQUEST_IGNORED_DUE_ALREADY_LOADED = 'Load request was ignored since variables already was loaded';
11
11
  exports.LOAD_REQUEST_IGNORED_DUE_IN_PROGRESS = 'Load request was ignored since a loading process is in progress at this moment';
12
- exports.INVALID_VARIABLES = 'Variables was not validated by strategy\'s validator.';
12
+ exports.INVALID_VARIABLES = "Variables was not validated by strategy's validator.";
13
13
  exports.STARTING_STRATEGY = 'Starting strategy';
14
- exports.LOADING_VARIABLES_FROM_STRATEGY = 'Loading variables from strategy\'s loader';
15
- exports.RELOADING_VARIABLES_FROM_STRATEGY = 'Reloading variables from strategy\'s loader';
16
- exports.RELOADING_VARIABLES_FROM_STRATEGY_BY_SCHEDULER = 'Reloading variables from strategy\'s loader by scheduler';
17
- exports.VALIDATING_VARIABLES_FROM_STRATEGY = 'Validating variables from strategy\'s validator';
18
- exports.TRANSFORMING_VARIABLES_FROM_STRATEGY = 'Transforming variables from strategy\'s transformer';
14
+ exports.LOADING_VARIABLES_FROM_STRATEGY = "Loading variables from strategy's loader";
15
+ exports.RELOADING_VARIABLES_FROM_STRATEGY = "Reloading variables from strategy's loader";
16
+ exports.RELOADING_VARIABLES_FROM_STRATEGY_BY_SCHEDULER = "Reloading variables from strategy's loader by scheduler";
17
+ exports.VALIDATING_VARIABLES_FROM_STRATEGY = "Validating variables from strategy's validator";
18
+ exports.TRANSFORMING_VARIABLES_FROM_STRATEGY = "Transforming variables from strategy's transformer";
19
19
  exports.ASSIGNING_VARIABLES_TO_PROCESS_ENV = 'Assigning loaded variables to process.env';
20
20
  exports.ASSIGNING_VARIABLES_TO_CACHE = 'Assigning loaded variables to memory cache';
21
21
  exports.STARTING_RELOAD = 'Starting variables reload';
22
22
  exports.ALL_STRATEGIES = 'ALL';
23
23
  exports.NOT_LOADED_STRATEGY_DISABLED = 'Variables not loaded since strategy is disabled';
24
+ exports.DEBUG_LOG_PREFIX = '[Extended Config Module]';
@@ -228,7 +228,7 @@ let ExtendedConfigService = class ExtendedConfigService {
228
228
  var _a;
229
229
  return __awaiter(this, void 0, void 0, function* () {
230
230
  return loader_util_1.retrieveVariablesByStrategy(strategy, ((_a = this.options) === null || _a === void 0 ? void 0 : _a.debug) ? (message, identifier) => {
231
- this.logger.debug(`[Extended Config Module] ${identifier || config_constants_1.NOT_IDENTIFIED}: ${message}`);
231
+ this.logger.debug(`${config_constants_1.DEBUG_LOG_PREFIX} ${identifier || config_constants_1.NOT_IDENTIFIED}: ${message}`);
232
232
  }
233
233
  : undefined);
234
234
  });
@@ -253,7 +253,7 @@ let ExtendedConfigService = class ExtendedConfigService {
253
253
  debug(message, identifier) {
254
254
  var _a;
255
255
  if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.debug) {
256
- this.logger.debug(`[Extended Config Module] ${identifier || config_constants_1.NOT_IDENTIFIED}: ${message}`);
256
+ this.logger.debug(`${config_constants_1.DEBUG_LOG_PREFIX} ${identifier || config_constants_1.NOT_IDENTIFIED}: ${message}`);
257
257
  }
258
258
  }
259
259
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestjs-config-extended",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Extended Configuration Module for Nest to load environment variables package",
5
5
  "author": "Pedro Sodré",
6
6
  "license": "MIT",
@@ -55,8 +55,8 @@
55
55
  "typescript": "4.1.3"
56
56
  },
57
57
  "peerDependencies": {
58
- "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0",
59
- "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0",
58
+ "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
59
+ "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
60
60
  "reflect-metadata": "^0.1.12",
61
61
  "rxjs": "^7.2.0"
62
62
  },