@nestjs/config
Advanced tools
Comparing version 2.3.1 to 2.3.2
import { NoInferType, Path, PathValue } from './types'; | ||
/** | ||
* `ExcludeUndefinedIf<ExcludeUndefined, T> | ||
* `ValidatedResult<WasValidated, T> | ||
* | ||
* If `ExcludeUndefined` is `true`, remove `undefined` from `T`. | ||
* If `WasValidated` is `true`, return `T`. | ||
* Otherwise, constructs the type `T` with `undefined`. | ||
*/ | ||
type ExcludeUndefinedIf<ExcludeUndefined extends boolean, T> = ExcludeUndefined extends true ? Exclude<T, undefined> : T | undefined; | ||
type ValidatedResult<WasValidated extends boolean, T> = WasValidated extends true ? T : T | undefined; | ||
export interface ConfigGetOptions { | ||
@@ -30,3 +30,3 @@ /** | ||
*/ | ||
get<T = any>(propertyPath: KeyOf<K>): ExcludeUndefinedIf<WasValidated, T>; | ||
get<T = any>(propertyPath: KeyOf<K>): ValidatedResult<WasValidated, T>; | ||
/** | ||
@@ -38,3 +38,3 @@ * Get a configuration value (either custom configuration or process environment variable) | ||
*/ | ||
get<T = K, P extends Path<T> = any, R = PathValue<T, P>>(propertyPath: P, options: ConfigGetOptions): ExcludeUndefinedIf<WasValidated, R>; | ||
get<T = K, P extends Path<T> = any, R = PathValue<T, P>>(propertyPath: P, options: ConfigGetOptions): ValidatedResult<WasValidated, R>; | ||
/** | ||
@@ -41,0 +41,0 @@ * Get a configuration value (either custom configuration or process environment variable) |
{ | ||
"name": "@nestjs/config", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@config)", | ||
@@ -27,28 +27,28 @@ "author": "Kamil Mysliwiec", | ||
"devDependencies": { | ||
"@commitlint/cli": "17.4.2", | ||
"@commitlint/config-angular": "17.4.2", | ||
"@nestjs/common": "9.3.7", | ||
"@nestjs/core": "9.3.7", | ||
"@nestjs/platform-express": "9.3.7", | ||
"@nestjs/testing": "9.3.7", | ||
"@types/jest": "29.4.0", | ||
"@types/lodash": "4.14.191", | ||
"@types/node": "18.13.0", | ||
"@types/uuid": "9.0.0", | ||
"@typescript-eslint/eslint-plugin": "5.51.0", | ||
"@typescript-eslint/parser": "5.51.0", | ||
"eslint": "8.33.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"@commitlint/cli": "17.6.3", | ||
"@commitlint/config-angular": "17.6.3", | ||
"@nestjs/common": "9.4.0", | ||
"@nestjs/core": "9.4.0", | ||
"@nestjs/platform-express": "9.4.0", | ||
"@nestjs/testing": "9.4.0", | ||
"@types/jest": "29.5.1", | ||
"@types/lodash": "4.14.194", | ||
"@types/node": "18.16.10", | ||
"@types/uuid": "9.0.1", | ||
"@typescript-eslint/eslint-plugin": "5.59.6", | ||
"@typescript-eslint/parser": "5.59.6", | ||
"eslint": "8.40.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-import": "2.27.5", | ||
"husky": "8.0.3", | ||
"jest": "29.4.2", | ||
"joi": "17.7.0", | ||
"lint-staged": "13.1.1", | ||
"prettier": "2.8.4", | ||
"jest": "29.5.0", | ||
"joi": "17.9.2", | ||
"lint-staged": "13.2.2", | ||
"prettier": "2.8.8", | ||
"reflect-metadata": "0.1.13", | ||
"release-it": "15.6.0", | ||
"rimraf": "4.1.2", | ||
"rxjs": "7.8.0", | ||
"ts-jest": "29.0.5", | ||
"typescript": "4.9.5" | ||
"release-it": "15.10.3", | ||
"rimraf": "5.0.0", | ||
"rxjs": "7.8.1", | ||
"ts-jest": "29.1.0", | ||
"typescript": "5.0.4" | ||
}, | ||
@@ -55,0 +55,0 @@ "peerDependencies": { |
@@ -15,4 +15,2 @@ <p align="center"> | ||
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a> | ||
<a href="https://travis-ci.org/nestjs/nest"><img src="https://api.travis-ci.org/nestjs/nest.svg?branch=master" alt="Travis" /></a> | ||
<a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a> | ||
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5" alt="Coverage" /></a> | ||
@@ -19,0 +17,0 @@ <a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41812
52