@nestjs/config
Advanced tools
Comparing version 0.4.2 to 0.5.0
@@ -11,3 +11,3 @@ import { DynamicModule } from '@nestjs/common'; | ||
provide: typeof ConfigService; | ||
useFactory: (configService: ConfigService) => ConfigService; | ||
useFactory: (configService: ConfigService<Record<string, any>>) => ConfigService<Record<string, any>>; | ||
inject: (string | symbol | Function)[]; | ||
@@ -14,0 +14,0 @@ })[]; |
import { NoInferType } from './types'; | ||
export declare class ConfigService { | ||
export declare class ConfigService<K = Record<string, any>> { | ||
private readonly internalConfig; | ||
constructor(internalConfig?: Record<string, any>); | ||
get<T = any>(propertyPath: string): T | undefined; | ||
get<T = any>(propertyPath: string, defaultValue: NoInferType<T>): T; | ||
get<T = any>(propertyPath: keyof K): T | undefined; | ||
get<T = any>(propertyPath: keyof K, defaultValue: NoInferType<T>): T; | ||
} |
{ | ||
"name": "@nestjs/config", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@config)", | ||
@@ -24,3 +24,3 @@ "author": "Kamil Mysliwiec", | ||
"lodash.set": "4.3.2", | ||
"uuid": "8.0.0" | ||
"uuid": "8.1.0" | ||
}, | ||
@@ -31,15 +31,15 @@ "devDependencies": { | ||
"@hapi/joi": "17.1.1", | ||
"@nestjs/common": "7.0.9", | ||
"@nestjs/core": "7.0.9", | ||
"@nestjs/platform-express": "7.0.9", | ||
"@nestjs/testing": "7.0.9", | ||
"@nestjs/common": "7.0.13", | ||
"@nestjs/core": "7.0.13", | ||
"@nestjs/platform-express": "7.0.13", | ||
"@nestjs/testing": "7.0.13", | ||
"@types/hapi__joi": "17.1.0", | ||
"@types/jest": "25.2.1", | ||
"@types/jest": "25.2.3", | ||
"@types/lodash.get": "4.4.6", | ||
"@types/lodash.set": "4.3.6", | ||
"@types/node": "7.10.8", | ||
"@types/uuid": "7.0.3", | ||
"@typescript-eslint/eslint-plugin": "2.32.0", | ||
"@typescript-eslint/parser": "2.32.0", | ||
"eslint": "7.0.0", | ||
"@types/uuid": "8.0.0", | ||
"@typescript-eslint/eslint-plugin": "3.0.0", | ||
"@typescript-eslint/parser": "3.0.0", | ||
"eslint": "7.1.0", | ||
"eslint-config-prettier": "6.11.0", | ||
@@ -49,10 +49,10 @@ "eslint-plugin-import": "2.20.2", | ||
"jest": "26.0.1", | ||
"lint-staged": "10.2.2", | ||
"lint-staged": "10.2.6", | ||
"prettier": "2.0.5", | ||
"reflect-metadata": "0.1.13", | ||
"release-it": "13.5.8", | ||
"release-it": "13.6.1", | ||
"rimraf": "3.0.2", | ||
"rxjs": "6.5.5", | ||
"ts-jest": "25.5.1", | ||
"typescript": "3.8.3" | ||
"ts-jest": "26.0.0", | ||
"typescript": "3.9.3" | ||
}, | ||
@@ -59,0 +59,0 @@ "peerDependencies": { |
25497
+ Addeduuid@8.1.0(transitive)
- Removeduuid@8.0.0(transitive)
Updateduuid@8.1.0