@loopback/http-server
Advanced tools
Comparing version 3.1.2 to 4.0.0
@@ -140,3 +140,3 @@ "use strict"; | ||
let host = this.host; | ||
if (this._address.family === 'IPv6') { | ||
if ([6, 'IPv6'].includes(this._address.family)) { | ||
if (host === '::') | ||
@@ -143,0 +143,0 @@ host = '::1'; |
{ | ||
"name": "@loopback/http-server", | ||
"description": "A wrapper for creating HTTP/HTTPS servers", | ||
"version": "3.1.2", | ||
"version": "4.0.0", | ||
"license": "MIT", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"engines": { | ||
"node": "12 || 14 || 16 || 17" | ||
"node": "14 || 16 || 17 || 18" | ||
}, | ||
@@ -38,14 +38,14 @@ "scripts": { | ||
"stoppable": "^1.1.0", | ||
"tslib": "^2.3.1" | ||
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@loopback/build": "^8.1.2", | ||
"@loopback/core": "^3.1.2", | ||
"@loopback/eslint-config": "^12.0.4", | ||
"@loopback/testlab": "^4.1.2", | ||
"@loopback/build": "^9.0.0", | ||
"@loopback/core": "^4.0.0", | ||
"@loopback/eslint-config": "^13.0.0", | ||
"@loopback/testlab": "^5.0.0", | ||
"@types/debug": "^4.1.7", | ||
"@types/node": "^12.20.47", | ||
"@types/node": "^12.20.50", | ||
"@types/stoppable": "^1.1.1" | ||
}, | ||
"gitHead": "22d993c73a7b4ccdb36f2e26ea52460dc46fbd11" | ||
"gitHead": "61453a3d7a16f9f37875a3f2c2a071568eb3e3af" | ||
} |
@@ -234,3 +234,3 @@ // Copyright IBM Corp. 2018,2020. All Rights Reserved. | ||
let host = this.host; | ||
if (this._address.family === 'IPv6') { | ||
if ([6, 'IPv6'].includes(this._address.family)) { | ||
if (host === '::') host = '::1'; | ||
@@ -237,0 +237,0 @@ host = `[${host}]`; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
26371
3
Updatedtslib@^2.4.0