Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private applyExpressAdapter(httpAdapter: HttpServer): HttpServer {
const isAdapter = !!httpAdapter.getHttpServer;
if (isAdapter) {
return httpAdapter;
}
return new ExpressAdapter(httpAdapter);
}
}
applyExpressAdapter(httpAdapter) {
const isAdapter = !!httpAdapter.getHttpServer;
if (isAdapter) {
return httpAdapter;
}
return new express_adapter_1.ExpressAdapter(httpAdapter);
}
}
applyExpressAdapter(httpAdapter) {
const isAdapter = httpAdapter.getHttpServer;
if (isAdapter) {
return httpAdapter;
}
return new express_adapter_1.ExpressAdapter(httpAdapter);
}
applyLogger(options) {
applyExpressAdapter(httpAdapter) {
const isAdapter = !!httpAdapter.getHttpServer;
if (isAdapter) {
return httpAdapter;
}
return new express_adapter_1.ExpressAdapter(httpAdapter);
}
}