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.2 to 0.0.3

1

dist/config.module.d.ts

@@ -28,2 +28,3 @@ import { DynamicModule } from '@nestjs/common';

private static loadEnvFile;
private static assignVariablesToProcess;
}

@@ -20,2 +20,3 @@ "use strict";

const fs = __importStar(require("fs"));
const util_1 = require("util");
const config_host_module_1 = require("./config-host.module");

@@ -36,3 +37,3 @@ const config_constants_1 = require("./config.constants");

if (options.envFilePath) {
Object.assign(process.env, validatedConfig);
this.assignVariablesToProcess(validatedConfig);
}

@@ -43,3 +44,3 @@ }

if (options.envFilePath) {
Object.assign(process.env, config);
this.assignVariablesToProcess(config);
}

@@ -110,2 +111,9 @@ }

}
static assignVariablesToProcess(config) {
if (!util_1.isObject(config)) {
return;
}
const keys = Object.keys(config).filter(key => !(key in process.env));
keys.forEach(key => (process.env[key] = config[key]));
}
};

@@ -112,0 +120,0 @@ ConfigModule = ConfigModule_1 = __decorate([

10

package.json
{
"name": "@nestjs/config",
"version": "0.0.2",
"version": "0.0.3",
"description": "Nest - modern, fast, powerful node.js web framework (@config)",

@@ -22,6 +22,6 @@ "author": "Kamil Mysliwiec",

"@hapi/joi": "16.1.8",
"@nestjs/common": "6.10.8",
"@nestjs/core": "6.10.8",
"@nestjs/platform-express": "6.10.8",
"@nestjs/testing": "6.10.8",
"@nestjs/common": "6.10.9",
"@nestjs/core": "6.10.9",
"@nestjs/platform-express": "6.10.9",
"@nestjs/testing": "6.10.9",
"@types/dotenv": "8.2.0",

@@ -28,0 +28,0 @@ "@types/hapi__joi": "16.0.4",

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