@nestjs/config
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -5,2 +5,10 @@ import { DynamicModule } from '@nestjs/common'; | ||
/** | ||
* This promise resolves when "dotenv" completes loading environment variables. | ||
* When "ignoreEnvFile" is set to true, then it will resolve immediately after the | ||
* "ConfigModule#forRoot" method is called. | ||
*/ | ||
static get envVariablesLoaded(): Promise<void>; | ||
private static environmentVariablesLoadedSignal; | ||
private static readonly _envVariablesLoaded; | ||
/** | ||
* Loads process environment variables depending on the "ignoreEnvFile" flag and "envFilePath" value. | ||
@@ -7,0 +15,0 @@ * Also, registers custom configurations globally. |
@@ -34,2 +34,3 @@ "use strict"; | ||
const common_1 = require("@nestjs/common"); | ||
const shared_utils_1 = require("@nestjs/common/utils/shared.utils"); | ||
const dotenv = __importStar(require("dotenv")); | ||
@@ -39,3 +40,2 @@ const dotenv_expand_1 = __importDefault(require("dotenv-expand")); | ||
const path_1 = require("path"); | ||
const util_1 = require("util"); | ||
const config_host_module_1 = require("./config-host.module"); | ||
@@ -49,2 +49,10 @@ const config_constants_1 = require("./config.constants"); | ||
/** | ||
* This promise resolves when "dotenv" completes loading environment variables. | ||
* When "ignoreEnvFile" is set to true, then it will resolve immediately after the | ||
* "ConfigModule#forRoot" method is called. | ||
*/ | ||
static get envVariablesLoaded() { | ||
return this._envVariablesLoaded; | ||
} | ||
/** | ||
* Loads process environment variables depending on the "ignoreEnvFile" flag and "envFilePath" value. | ||
@@ -103,2 +111,3 @@ * Also, registers custom configurations globally. | ||
} | ||
this.environmentVariablesLoadedSignal(); | ||
return { | ||
@@ -165,3 +174,3 @@ module: ConfigModule_1, | ||
static assignVariablesToProcess(config) { | ||
if (!(0, util_1.isObject)(config)) { | ||
if (!(0, shared_utils_1.isObject)(config)) { | ||
return; | ||
@@ -190,2 +199,3 @@ } | ||
}; | ||
ConfigModule._envVariablesLoaded = new Promise(resolve => (ConfigModule_1.environmentVariablesLoadedSignal = resolve)); | ||
ConfigModule = ConfigModule_1 = __decorate([ | ||
@@ -192,0 +202,0 @@ (0, common_1.Module)({ |
{ | ||
"name": "@nestjs/config", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@config)", | ||
@@ -27,28 +27,28 @@ "author": "Kamil Mysliwiec", | ||
"devDependencies": { | ||
"@commitlint/cli": "16.0.1", | ||
"@commitlint/cli": "16.1.0", | ||
"@commitlint/config-angular": "16.0.0", | ||
"@nestjs/common": "8.2.4", | ||
"@nestjs/core": "8.2.4", | ||
"@nestjs/platform-express": "8.2.4", | ||
"@nestjs/testing": "8.2.4", | ||
"@nestjs/common": "8.2.6", | ||
"@nestjs/core": "8.2.6", | ||
"@nestjs/platform-express": "8.2.6", | ||
"@nestjs/testing": "8.2.6", | ||
"@types/jest": "27.4.0", | ||
"@types/lodash": "4.14.178", | ||
"@types/node": "16.11.17", | ||
"@types/uuid": "8.3.3", | ||
"@typescript-eslint/eslint-plugin": "5.8.1", | ||
"@typescript-eslint/parser": "5.8.1", | ||
"eslint": "8.6.0", | ||
"@types/node": "16.11.24", | ||
"@types/uuid": "8.3.4", | ||
"@typescript-eslint/eslint-plugin": "5.11.0", | ||
"@typescript-eslint/parser": "5.11.0", | ||
"eslint": "8.8.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-import": "2.25.4", | ||
"husky": "7.0.4", | ||
"jest": "27.4.5", | ||
"joi": "17.5.0", | ||
"lint-staged": "12.1.5", | ||
"jest": "27.5.1", | ||
"joi": "17.6.0", | ||
"lint-staged": "12.3.3", | ||
"prettier": "2.5.1", | ||
"reflect-metadata": "0.1.13", | ||
"release-it": "14.11.8", | ||
"release-it": "14.12.4", | ||
"rimraf": "3.0.2", | ||
"rxjs": "7.5.1", | ||
"ts-jest": "27.1.2", | ||
"typescript": "4.5.4" | ||
"rxjs": "7.5.4", | ||
"ts-jest": "27.1.3", | ||
"typescript": "4.5.5" | ||
}, | ||
@@ -55,0 +55,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38313
705