You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@nestjs/config

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/config - npm Package Compare versions

Comparing version

to
0.0.7

14

dist/config.module.js

@@ -84,5 +84,13 @@ "use strict";

static loadEnvFile(options) {
const envFilePath = options.envFilePath || path_1.resolve(process.cwd(), '.env');
const config = dotenv.parse(fs.readFileSync(envFilePath));
return config || {};
try {
const envFilePath = options.envFilePath || path_1.resolve(process.cwd(), '.env');
const config = dotenv.parse(fs.readFileSync(envFilePath));
return config;
}
catch (err) {
if (options.envFilePath || (err && err.code !== 'ENOENT')) {
throw err;
}
return {};
}
}

@@ -89,0 +97,0 @@ static assignVariablesToProcess(config) {

{
"name": "@nestjs/config",
"version": "0.0.6",
"version": "0.0.7",
"description": "Nest - modern, fast, powerful node.js web framework (@config)",

@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec",