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

@nestjs/config

Package Overview
Dependencies
Maintainers
2
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 3.2.3 to 3.3.0

2

dist/conditional.module.d.ts

@@ -12,3 +12,3 @@ import { DynamicModule, ModuleMetadata } from '@nestjs/common';

debug?: boolean;
}): Promise<Required<Pick<DynamicModule, "imports" | "exports" | "module">>>;
}): Promise<Required<Pick<DynamicModule, "module" | "imports" | "exports">>>;
}

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

*/
static forRoot(options?: ConfigModuleOptions): DynamicModule;
static forRoot(options?: ConfigModuleOptions): Promise<DynamicModule>;
/**

@@ -23,0 +23,0 @@ * Registers configuration object (partial registration).

@@ -63,3 +63,3 @@ "use strict";

*/
static forRoot(options = {}) {
static async forRoot(options = {}) {
const envFilePaths = Array.isArray(options.envFilePath)

@@ -96,3 +96,4 @@ ? options.envFilePath

const isConfigToLoad = options.load && options.load.length;
const providers = (options.load || [])
const configFactory = await Promise.all(options.load || []);
const providers = configFactory
.map(factory => (0, create_config_factory_util_1.createConfigProvider)(factory))

@@ -99,0 +100,0 @@ .filter(item => item);

@@ -0,3 +1,3 @@

import { DotenvExpandOptions } from 'dotenv-expand';
import { ConfigFactory } from './config-factory.interface';
import { DotenvExpandOptions } from 'dotenv-expand';
/**

@@ -51,3 +51,3 @@ * @publicApi

*/
load?: Array<ConfigFactory>;
load?: Array<ConfigFactory | Promise<ConfigFactory>>;
/**

@@ -54,0 +54,0 @@ * A boolean value indicating the use of expanded variables, or object

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

@@ -26,27 +26,27 @@ "author": "Kamil Mysliwiec",

"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-angular": "19.3.0",
"@nestjs/common": "10.3.10",
"@nestjs/core": "10.3.10",
"@nestjs/platform-express": "10.3.10",
"@nestjs/testing": "10.3.10",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.6",
"@types/node": "20.14.9",
"@typescript-eslint/eslint-plugin": "7.14.1",
"@typescript-eslint/parser": "7.14.1",
"eslint": "8.57.0",
"@commitlint/cli": "19.5.0",
"@commitlint/config-angular": "19.5.0",
"@nestjs/common": "10.4.5",
"@nestjs/core": "10.4.5",
"@nestjs/platform-express": "10.4.5",
"@nestjs/testing": "10.4.5",
"@types/jest": "29.5.13",
"@types/lodash": "4.17.12",
"@types/node": "20.16.13",
"@typescript-eslint/eslint-plugin": "8.10.0",
"@typescript-eslint/parser": "8.10.0",
"eslint": "9.13.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"husky": "9.0.11",
"eslint-plugin-import": "2.31.0",
"husky": "9.1.6",
"jest": "29.7.0",
"joi": "17.13.3",
"lint-staged": "15.2.7",
"prettier": "3.3.2",
"lint-staged": "15.2.10",
"prettier": "3.3.3",
"reflect-metadata": "0.2.2",
"release-it": "17.4.1",
"rimraf": "5.0.7",
"release-it": "17.10.0",
"rimraf": "6.0.1",
"rxjs": "7.8.1",
"ts-jest": "29.1.5",
"typescript": "5.5.2"
"ts-jest": "29.2.5",
"typescript": "5.6.3"
},

@@ -53,0 +53,0 @@ "peerDependencies": {

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