Socket
Socket
Sign inDemoInstall

@hapi/hapi

Package Overview
Dependencies
Maintainers
7
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 20.0.2 to 20.0.3

16

lib/server.js

@@ -349,5 +349,17 @@ 'use strict';

if (custom) {
res.result = custom.result;
delete res.raw.res[Config.symbol];
res.request = custom.request;
delete res.raw.res[Config.symbol];
if (custom.result !== undefined) {
res.result = custom.result;
}
if (custom.statusCode !== undefined) {
res.statusCode = custom.statusCode;
}
if (custom.statusMessage !== undefined) {
res.statusMessage = custom.statusMessage;
}
}

@@ -354,0 +366,0 @@

3

lib/transmit.js

@@ -299,3 +299,4 @@ 'use strict';

if (request.raw.res[Config.symbol]) {
request.raw.res.statusCode = error.statusCode;
request.raw.res[Config.symbol].statusCode = error.statusCode;
request.raw.res[Config.symbol].statusMessage = error.source.error;
request.raw.res[Config.symbol].result = error.source; // Force injected response to error

@@ -302,0 +303,0 @@ }

@@ -5,3 +5,3 @@ {

"homepage": "https://hapi.dev",
"version": "20.0.2",
"version": "20.0.3",
"repository": "git://github.com/hapijs/hapi",

@@ -8,0 +8,0 @@ "main": "lib/index.js",

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