@nestjs/platform-express
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -14,2 +14,4 @@ import { RequestMethod } from '@nestjs/common'; | ||
setHeader(response: any, name: string, value: string): any; | ||
listen(port: string | number, callback?: () => void): any; | ||
listen(port: string | number, hostname: string, callback?: () => void): any; | ||
close(): any; | ||
@@ -16,0 +18,0 @@ set(...args: any[]): any; |
@@ -35,4 +35,7 @@ "use strict"; | ||
} | ||
listen(port, hostname, callback) { | ||
return this.httpServer.listen(port, hostname, callback); | ||
} | ||
close() { | ||
return this.instance.close(); | ||
return this.httpServer ? this.httpServer.close() : undefined; | ||
} | ||
@@ -39,0 +42,0 @@ set(...args) { |
{ | ||
"name": "@nestjs/platform-express", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@platform-express)", | ||
@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec", |
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
36014
638