Skip to content

Commit

Permalink
Merge pull request #3 from Enigmatis/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
yarinvak authored Apr 22, 2020
2 parents f187faf + 5c8ae6a commit 10bf4ae
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.0.1-beta.1](https://github.com/Enigmatis/polaris-nest-logger/compare/v1.0.0...v1.0.1-beta.1) (2020-04-22)


### Bug Fixes

* add providers to options ([ad9ad1e](https://github.com/Enigmatis/polaris-nest-logger/commit/ad9ad1e9e3a9217cdbe6e4f5554be6844921c7ea))

# 1.0.0 (2020-04-20)


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enigmatis/polaris-nest-logger",
"version": "1.0.0",
"version": "1.0.1-beta.1",
"description": "A module that lets you create a polaris-logger dedicated to NestJs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/common/polaris-nest-logger-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface PolarisNestLoggerOptions {
loggerConfiguration: LoggerConfiguration;
}

export interface PolarisNestLoggerAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
export interface PolarisNestLoggerAsyncOptions extends Pick<ModuleMetadata, 'imports' | 'providers'> {
useFactory: (...args: any[]) => Promise<PolarisNestLoggerOptions> | PolarisNestLoggerOptions;
inject? : any[];
inject?: any[];
}
2 changes: 1 addition & 1 deletion src/polaris-nest-logger-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class PolarisNestLoggerModule {
static registerAsync(options: PolarisNestLoggerAsyncOptions): DynamicModule {
return {
module: PolarisNestLoggerModule,
providers: [PolarisNestLogger, PolarisLoggerFactory, this.createConfigurationProvider(options)],
providers: [...options.providers, PolarisNestLogger, PolarisLoggerFactory, this.createConfigurationProvider(options)],
imports: options.imports,
exports: [PolarisNestLogger]
}
Expand Down

0 comments on commit 10bf4ae

Please sign in to comment.