Skip to content

Commit

Permalink
Update dependencies (#17)
Browse files Browse the repository at this point in the history
* update peerDeps to include NestJS v8

* Update dependencies

* npm audit fix

* Fix prettier for eslint v8

https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21

* Fix logger for NestJS v8

* Remove --detectOpenHandles
  • Loading branch information
EnriqCG authored Nov 4, 2021
1 parent ba53424 commit b97d1d4
Show file tree
Hide file tree
Showing 6 changed files with 959 additions and 1,100 deletions.
9 changes: 3 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
"project": ["./tsconfig.json", "./tsconfig.build.json"],
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
Expand Down
2 changes: 1 addition & 1 deletion lib/amqp-client.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface AMQPClient {
export const createClient = (): Provider => ({
provide: AMQP_CLIENT,
useFactory: async (options: AMQPModuleOptions): Promise<AMQPClient> => {
const logger = new Logger('AMQPModule', true)
const logger = new Logger('AMQPModule')

const clients = new Map<string, ClientTuple>()
const clientOptions = new Map<string, AMQPModuleOptions>()
Expand Down
2 changes: 1 addition & 1 deletion lib/amqp-core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class AMQPCoreModule implements OnApplicationShutdown {
}

onApplicationShutdown(): void {
const logger = new Logger('AMQPModule', true)
const logger = new Logger('AMQPModule')

const closeConnection =
({ clients, defaultKey }) =>
Expand Down
2 changes: 1 addition & 1 deletion lib/amqp.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Channel } from 'amqplib'
providers: [AMQPExplorer, AMQPMetadataAccessor],
})
export class AMQPModule implements OnModuleInit {
private readonly logger = new Logger('AMQPModule', true)
private readonly logger = new Logger('AMQPModule')

constructor(private readonly amqpService: AMQPService, private readonly explorer: AMQPExplorer) {}

Expand Down
Loading

0 comments on commit b97d1d4

Please sign in to comment.