@nestjs/microservices
Advanced tools
Comparing version 4.1.7 to 4.1.8
@@ -5,7 +5,7 @@ import { NestContainer } from '@nestjs/core/injector/container'; | ||
export declare class NestMicroservice implements INestMicroservice { | ||
private container; | ||
private readonly config; | ||
private readonly container; | ||
private readonly logger; | ||
private readonly microserviceConfig; | ||
private readonly server; | ||
private readonly config; | ||
private isTerminated; | ||
@@ -12,0 +12,0 @@ private isInitialized; |
@@ -13,6 +13,6 @@ "use strict"; | ||
const { SocketModule } = optional('@nestjs/websockets/socket-module') || {}; | ||
const { IoAdapter } = optional('@nestjs/websockets/adapters/io-adapter'); | ||
class NestMicroservice { | ||
constructor(container, config = {}) { | ||
this.container = container; | ||
this.config = new application_config_1.ApplicationConfig(); | ||
this.logger = new logger_service_1.Logger(NestMicroservice.name, true); | ||
@@ -22,2 +22,4 @@ this.isTerminated = false; | ||
this.isInitHookCalled = false; | ||
const ioAdapter = IoAdapter ? new IoAdapter() : null; | ||
this.config = new application_config_1.ApplicationConfig(ioAdapter); | ||
microservices_module_1.MicroservicesModule.setup(container, this.config); | ||
@@ -24,0 +26,0 @@ this.microserviceConfig = Object.assign({ transport: transport_enum_1.Transport.TCP }, config); |
{ | ||
"name": "@nestjs/microservices", | ||
"version": "4.1.7", | ||
"version": "4.1.8", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@microservices)", | ||
@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec", |
Sorry, the diff of this file is not supported yet
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
65695
1263