@loopback/http-server
Advanced tools
Comparing version 2.5.3 to 2.5.4
@@ -9,10 +9,10 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const assert_1 = tslib_1.__importDefault(require("assert")); | ||
const debug_1 = tslib_1.__importDefault(require("debug")); | ||
const assert_1 = (0, tslib_1.__importDefault)(require("assert")); | ||
const debug_1 = (0, tslib_1.__importDefault)(require("debug")); | ||
const events_1 = require("events"); | ||
const http_1 = tslib_1.__importDefault(require("http")); | ||
const https_1 = tslib_1.__importDefault(require("https")); | ||
const os_1 = tslib_1.__importDefault(require("os")); | ||
const stoppable_1 = tslib_1.__importDefault(require("stoppable")); | ||
const debug = debug_1.default('loopback:http-server'); | ||
const http_1 = (0, tslib_1.__importDefault)(require("http")); | ||
const https_1 = (0, tslib_1.__importDefault)(require("https")); | ||
const os_1 = (0, tslib_1.__importDefault)(require("os")); | ||
const stoppable_1 = (0, tslib_1.__importDefault)(require("stoppable")); | ||
const debug = (0, debug_1.default)('loopback:http-server'); | ||
/** | ||
@@ -70,3 +70,3 @@ * HTTP / HTTPS server used by LoopBack's RestServer | ||
debug('Http server gracePeriodForClose %d', this.serverOptions.gracePeriodForClose); | ||
this._stoppable = stoppable_1.default(this.server, this.serverOptions.gracePeriodForClose); | ||
this._stoppable = (0, stoppable_1.default)(this.server, this.serverOptions.gracePeriodForClose); | ||
} | ||
@@ -80,6 +80,6 @@ } | ||
this.server.listen(this.serverOptions); | ||
await events_1.once(this.server, 'listening'); | ||
await (0, events_1.once)(this.server, 'listening'); | ||
this._listening = true; | ||
const address = this.server.address(); | ||
assert_1.default(address != null); | ||
(0, assert_1.default)(address != null); | ||
this._address = address; | ||
@@ -102,3 +102,3 @@ debug('Http server is listening on', this.url); | ||
} | ||
await events_1.once(this.server, 'close'); | ||
await (0, events_1.once)(this.server, 'close'); | ||
this._listening = false; | ||
@@ -179,3 +179,3 @@ debug('Http server is stopped'); | ||
const pipes = ['\\\\?\\pipe\\', '\\\\.\\pipe\\']; | ||
assert_1.default(pipes.some(p => ipcPath.startsWith(p)), `Named pipe ${ipcPath} does NOT start with + ${pipes.join(' or ')}`); | ||
(0, assert_1.default)(pipes.some(p => ipcPath.startsWith(p)), `Named pipe ${ipcPath} does NOT start with + ${pipes.join(' or ')}`); | ||
} | ||
@@ -182,0 +182,0 @@ } |
@@ -16,3 +16,3 @@ "use strict"; | ||
*/ | ||
tslib_1.__exportStar(require("./http-server"), exports); | ||
(0, tslib_1.__exportStar)(require("./http-server"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@loopback/http-server", | ||
"description": "A wrapper for creating HTTP/HTTPS servers", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"license": "MIT", | ||
@@ -40,6 +40,6 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@loopback/build": "^7.0.1", | ||
"@loopback/core": "^2.17.0", | ||
"@loopback/eslint-config": "^11.0.1", | ||
"@loopback/testlab": "^3.4.3", | ||
"@loopback/build": "^7.0.2", | ||
"@loopback/core": "^2.18.0", | ||
"@loopback/eslint-config": "^11.0.2", | ||
"@loopback/testlab": "^3.4.4", | ||
"@types/debug": "^4.1.7", | ||
@@ -49,3 +49,3 @@ "@types/node": "^10.17.60", | ||
}, | ||
"gitHead": "1df36bb1ee2e513d9e197bd6010c4cfb296d50b8" | ||
"gitHead": "d9a29c85dbe38f12ba219d8c495cf6038bbc3590" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26354