Comparing version 5.0.6 to 5.0.7
{ | ||
"name": "http4js", | ||
"version": "5.0.6", | ||
"version": "5.0.7", | ||
"description": "A lightweight HTTP toolkit", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -62,2 +62,4 @@ # http4js | ||
### 5.0.7 Specify void return on server.stop() | ||
### 5.0.6 Dependency update | ||
@@ -64,0 +66,0 @@ |
@@ -18,3 +18,3 @@ /// <reference types="node" /> | ||
start(): Promise<void>; | ||
stop(): Promise<any>; | ||
stop(): Promise<void>; | ||
isRunning(): Boolean; | ||
@@ -21,0 +21,0 @@ private hostnameFrom; |
@@ -59,4 +59,4 @@ import * as http from "http"; | ||
async stop(): Promise<any> { | ||
return new Promise((res, rej) => { | ||
async stop(): Promise<void> { | ||
return new Promise<void>((res, rej) => { | ||
this.server.close((err?: Error) => { | ||
@@ -63,0 +63,0 @@ if (err) { |
150399
200