Socket
Socket
Sign inDemoInstall

@hapi/hapi

Package Overview
Dependencies
Maintainers
6
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/hapi - npm Package Compare versions

Comparing version 21.0.0 to 21.1.0

lib/index.d.ts

2

lib/request.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc