@loopback/http-server
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.1.7](https://github.com/strongloop/loopback-next/compare/@loopback/http-server@2.1.6...@loopback/http-server@2.1.7) (2020-06-11) | ||
**Note:** Version bump only for package @loopback/http-server | ||
## [2.1.6](https://github.com/strongloop/loopback-next/compare/@loopback/http-server@2.1.5...@loopback/http-server@2.1.6) (2020-05-28) | ||
@@ -8,0 +16,0 @@ |
@@ -82,5 +82,6 @@ "use strict"; | ||
get port() { | ||
var _a; | ||
if (typeof this._address === 'string') | ||
return 0; | ||
return (this._address && this._address.port) || this.serverOptions.port; | ||
return ((_a = this._address) === null || _a === void 0 ? void 0 : _a.port) || this.serverOptions.port; | ||
} | ||
@@ -91,5 +92,6 @@ /** | ||
get host() { | ||
var _a; | ||
if (typeof this._address === 'string') | ||
return undefined; | ||
return (this._address && this._address.address) || this.serverOptions.host; | ||
return ((_a = this._address) === null || _a === void 0 ? void 0 : _a.address) || this.serverOptions.host; | ||
} | ||
@@ -96,0 +98,0 @@ /** |
{ | ||
"name": "@loopback/http-server", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "A wrapper for creating HTTP/HTTPS servers", | ||
@@ -20,2 +20,5 @@ "main": "dist/index.js", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
@@ -26,7 +29,7 @@ "stoppable": "^1.1.0", | ||
"devDependencies": { | ||
"@loopback/build": "^5.4.2", | ||
"@loopback/core": "^2.7.1", | ||
"@loopback/eslint-config": "^8.0.0", | ||
"@loopback/testlab": "^3.1.6", | ||
"@types/node": "^10.17.24", | ||
"@loopback/build": "^5.4.3", | ||
"@loopback/core": "^2.8.0", | ||
"@loopback/eslint-config": "^8.0.1", | ||
"@loopback/testlab": "^3.1.7", | ||
"@types/node": "^10.17.26", | ||
"@types/stoppable": "^1.1.0" | ||
@@ -40,5 +43,2 @@ }, | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
@@ -49,3 +49,3 @@ "type": "git", | ||
}, | ||
"gitHead": "64afb3616e94b96703524aba8be722efefa7c2c5" | ||
"gitHead": "f31b7e6de5a405a015cdd774f63d699b35d943cc" | ||
} |
@@ -155,3 +155,3 @@ // Copyright IBM Corp. 2018,2020. All Rights Reserved. | ||
if (typeof this._address === 'string') return 0; | ||
return (this._address && this._address.port) || this.serverOptions.port!; | ||
return this._address?.port || this.serverOptions.port!; | ||
} | ||
@@ -164,3 +164,3 @@ | ||
if (typeof this._address === 'string') return undefined; | ||
return (this._address && this._address.address) || this.serverOptions.host; | ||
return this._address?.address || this.serverOptions.host; | ||
} | ||
@@ -167,0 +167,0 @@ |
Sorry, the diff of this file is not supported yet
43857
493