nestjs-config
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -10,3 +10,8 @@ "use strict"; | ||
// Add this parameter | ||
existingParameters.push({ parameterIndex, propertyKey, configKey, fallback }); | ||
existingParameters.push({ | ||
parameterIndex, | ||
propertyKey, | ||
configKey, | ||
fallback, | ||
}); | ||
// Update the required parameters for this method | ||
@@ -13,0 +18,0 @@ Reflect.defineMetadata(constants_1.CONFIG_PARAMS, existingParameters, target, propertyKey); |
@@ -15,3 +15,3 @@ "use strict"; | ||
}); | ||
return originalMethod.apply(this, utils_1.applyParamsMetadataDecorator(paramsMetadata, args, module_1.ConfigService.get)); | ||
return originalMethod.apply(this, (0, utils_1.applyParamsMetadataDecorator)(paramsMetadata, args, module_1.ConfigService.get)); | ||
}; | ||
@@ -18,0 +18,0 @@ Reflect.defineMetadata(constants_1.CONFIG_CONFIGURABLE, Reflect.getMetadata(constants_1.CONFIG_PARAMS, target, key) || [], descriptor.value); |
@@ -6,3 +6,3 @@ "use strict"; | ||
const config_service_1 = require("../module/config.service"); | ||
const InjectConfig = () => common_1.Inject(config_service_1.ConfigService); | ||
const InjectConfig = () => (0, common_1.Inject)(config_service_1.ConfigService); | ||
exports.InjectConfig = InjectConfig; |
@@ -59,5 +59,5 @@ "use strict"; | ||
ConfigModule = ConfigModule_1 = __decorate([ | ||
common_1.Global(), | ||
common_1.Module({}) | ||
(0, common_1.Global)(), | ||
(0, common_1.Module)({}) | ||
], ConfigModule); | ||
exports.ConfigModule = ConfigModule; |
@@ -214,3 +214,3 @@ "use strict"; | ||
glob = this.root(glob); | ||
const matches = glob_1.sync(glob); | ||
const matches = (0, glob_1.sync)(glob); | ||
this.loadEnv(options); | ||
@@ -269,3 +269,3 @@ return this.configGraph(matches, options && options.modifyConfigName); | ||
if (options !== false) { | ||
dotenv_1.config(options || ConfigService_1.defaultDotenvConfig()); | ||
(0, dotenv_1.config)(options || ConfigService_1.defaultDotenvConfig()); | ||
} | ||
@@ -285,6 +285,6 @@ } | ||
ConfigService = ConfigService_1 = __decorate([ | ||
common_1.Injectable(), | ||
proxy_1.ProxyProperty('helpers'), | ||
(0, common_1.Injectable)(), | ||
(0, proxy_1.ProxyProperty)('helpers'), | ||
__metadata("design:paramtypes", [Object]) | ||
], ConfigService); | ||
exports.ConfigService = ConfigService; |
{ | ||
"name": "nestjs-config", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"description": "Easy to use Nest congifuration module", | ||
@@ -43,4 +43,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@types/node": "^15.0.2", | ||
"dotenv": "^9.0.0", | ||
"@types/node": "^16.9.6", | ||
"dotenv": "^10.0.0", | ||
"glob": "^7.1.2", | ||
@@ -57,3 +57,3 @@ "lodash.get": "^4.4.2", | ||
"@types/glob": "^7.1.1", | ||
"@types/jest": "^26.0.23", | ||
"@types/jest": "^27.0.2", | ||
"jest": "^26.6.3", | ||
@@ -60,0 +60,0 @@ "prettier": "^2.2.1", |
52220
816
+ Added@types/node@16.18.126(transitive)
+ Addeddotenv@10.0.0(transitive)
- Removed@types/node@15.14.9(transitive)
- Removeddotenv@9.0.2(transitive)
Updated@types/node@^16.9.6
Updateddotenv@^10.0.0