@hapi/hapi
Advanced tools
Comparing version 21.0.0 to 21.1.0
@@ -661,3 +661,3 @@ 'use strict'; | ||
const socketAddress = this._request.raw.req.socket.remoteAddress; | ||
if (socketAddress.startsWith(ipv6Prefix) && socketAddress.includes('.', ipv6Prefix.length)) { | ||
if (socketAddress && socketAddress.startsWith(ipv6Prefix) && socketAddress.includes('.', ipv6Prefix.length)) { | ||
// Normalize IPv4-mapped IPv6 address, e.g. ::ffff:127.0.0.1 -> 127.0.0.1 | ||
@@ -664,0 +664,0 @@ this._remoteAddress = socketAddress.slice(ipv6Prefix.length); |
@@ -5,7 +5,8 @@ { | ||
"homepage": "https://hapi.dev", | ||
"version": "21.0.0", | ||
"version": "21.1.0", | ||
"repository": "git://github.com/hapijs/hapi", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
"node": ">=14.15.0" | ||
}, | ||
@@ -54,8 +55,10 @@ "files": [ | ||
"@hapi/wreck": "^18.0.0", | ||
"@types/node": "^18.11.9", | ||
"handlebars": "^4.7.4", | ||
"joi": "^17.0.0", | ||
"legacy-readable-stream": "npm:readable-stream@^1.0.34" | ||
"legacy-readable-stream": "npm:readable-stream@^1.0.34", | ||
"typescript": "^4.9.3" | ||
}, | ||
"scripts": { | ||
"test": "lab -a @hapi/code -t 100 -L -m 5000", | ||
"test": "lab -a @hapi/code -t 100 -L -m 5000 -Y", | ||
"test-tap": "lab -a @hapi/code -r tap -o tests.tap -m 5000", | ||
@@ -62,0 +65,0 @@ "test-cov-html": "lab -a @hapi/code -r html -o coverage.html -m 5000" |
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
415869
23
8426
12