@loopback/http-server
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.1.4](https://github.com/strongloop/loopback-next/compare/@loopback/http-server@2.1.3...@loopback/http-server@2.1.4) (2020-05-19) | ||
**Note:** Version bump only for package @loopback/http-server | ||
## [2.1.3](https://github.com/strongloop/loopback-next/compare/@loopback/http-server@2.1.2...@loopback/http-server@2.1.3) (2020-05-07) | ||
@@ -8,0 +16,0 @@ |
@@ -7,8 +7,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpServer = void 0; | ||
const tslib_1 = require("tslib"); | ||
const assert_1 = tslib_1.__importDefault(require("assert")); | ||
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 p_event_1 = tslib_1.__importDefault(require("p-event")); | ||
const stoppable_1 = tslib_1.__importDefault(require("stoppable")); | ||
@@ -51,3 +52,3 @@ /** | ||
this.server.listen(this.serverOptions); | ||
await p_event_1.default(this.server, 'listening'); | ||
await events_1.once(this.server, 'listening'); | ||
this._listening = true; | ||
@@ -70,3 +71,3 @@ const address = this.server.address(); | ||
} | ||
await p_event_1.default(this.server, 'close'); | ||
await events_1.once(this.server, 'close'); | ||
this._listening = false; | ||
@@ -73,0 +74,0 @@ } |
{ | ||
"name": "@loopback/http-server", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "A wrapper for creating HTTP/HTTPS servers", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"engines": { | ||
@@ -19,11 +21,10 @@ "node": ">=10" | ||
"dependencies": { | ||
"p-event": "^4.1.0", | ||
"stoppable": "^1.1.0", | ||
"tslib": "^1.11.2" | ||
"tslib": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@loopback/build": "^5.3.1", | ||
"@loopback/core": "^2.5.0", | ||
"@loopback/eslint-config": "^6.0.6", | ||
"@loopback/testlab": "^3.1.3", | ||
"@loopback/build": "^5.4.0", | ||
"@loopback/core": "^2.6.0", | ||
"@loopback/eslint-config": "^7.0.0", | ||
"@loopback/testlab": "^3.1.4", | ||
"@types/node": "^10.17.21", | ||
@@ -34,4 +35,2 @@ "@types/stoppable": "^1.1.0" | ||
"README.md", | ||
"index.js", | ||
"index.d.ts", | ||
"dist", | ||
@@ -49,3 +48,3 @@ "src", | ||
}, | ||
"gitHead": "50c3f06d942f8bae8f0c32a3775ff98a7498e4fd" | ||
"gitHead": "c8681026187471f0ceeee7c101d66feae295116b" | ||
} |
@@ -7,2 +7,3 @@ // Copyright IBM Corp. 2018,2020. All Rights Reserved. | ||
import assert from 'assert'; | ||
import {once} from 'events'; | ||
import http, {IncomingMessage, ServerResponse} from 'http'; | ||
@@ -12,3 +13,2 @@ import https from 'https'; | ||
import os from 'os'; | ||
import pEvent from 'p-event'; | ||
import stoppable from 'stoppable'; | ||
@@ -123,3 +123,3 @@ | ||
this.server.listen(this.serverOptions); | ||
await pEvent(this.server, 'listening'); | ||
await once(this.server, 'listening'); | ||
this._listening = true; | ||
@@ -142,3 +142,3 @@ | ||
} | ||
await pEvent(this.server, 'close'); | ||
await once(this.server, 'close'); | ||
this._listening = false; | ||
@@ -145,0 +145,0 @@ } |
Sorry, the diff of this file is not supported yet
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
2
43238
12
491
+ Addedtslib@2.7.0(transitive)
- Removedp-event@^4.1.0
- Removedp-event@4.2.0(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedp-timeout@3.2.0(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0