Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createNestApplication(httpServer = express_factory_1.ExpressFactory.create(), options) {
httpServer = this.applyExpressAdapter(httpServer);
this.applyLogger(options);
this.container.setApplicationRef(httpServer);
return new core_1.NestApplication(this.container, httpServer, this.applicationConfig, options);
}
createNestMicroservice(options) {
public createNestApplication(
httpAdapter?: HttpServer,
options?: NestApplicationOptions,
): T {
httpAdapter = httpAdapter || this.createHttpAdapter();
this.applyLogger(options);
this.container.setHttpAdapter(httpAdapter);
const instance = new NestApplication(
this.container,
httpAdapter,
this.applicationConfig,
options,
);
return this.createAdapterProxy(instance, httpAdapter);
}
createNestApplication(httpServer = express_factory_1.ExpressFactory.create(), options) {
httpServer = this.applyExpressAdapter(httpServer);
this.container.setApplicationRef(httpServer);
return new core_1.NestApplication(this.container, httpServer, this.applicationConfig);
}
createNestMicroservice(options) {
createNestApplication(httpServer = express_factory_1.ExpressFactory.create(), options) {
httpServer = this.applyExpressAdapter(httpServer);
this.container.setApplicationRef(httpServer);
return new core_1.NestApplication(this.container, httpServer, this.applicationConfig);
}
createNestMicroservice(options) {
public createNestApplication(
httpServer: HttpServer = ExpressFactory.create(),
): INestApplication {
httpServer = this.applyExpressAdapter(httpServer);
this.container.setApplicationRef(httpServer);
return new NestApplication(
this.container,
httpServer,
this.applicationConfig,
);
}