Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nestjs/config

Package Overview
Dependencies
Maintainers
4
Versions
56
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 0.0.6 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc