Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi - npm Package Compare versions

Comparing version 17.0.0 to 17.0.1

24

lib/auth.js

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

try {
auth._access(request, route);
return true;
return auth._access(request, route);
}

@@ -259,5 +258,3 @@ catch (err) {

const err = Boom.unauthorized('Missing authentication', errors);
if (config.mode !== 'optional' &&
config.mode !== 'try') {
if (config.mode === 'required') {
throw err;

@@ -275,10 +272,3 @@ }

const auth = request._core.auth;
try {
auth._access(request);
request.auth.isAuthorized = true;
}
catch (err) {
request.auth.isAuthorized = false;
throw err;
}
request.auth.isAuthorized = auth._access(request);
}

@@ -292,3 +282,3 @@

return;
return true;
}

@@ -298,2 +288,6 @@

if (!credentials) {
if (config.mode !== 'required') {
return false;
}
throw Boom.forbidden('Request is unauthenticated');

@@ -337,3 +331,3 @@ }

return;
return true;
}

@@ -340,0 +334,0 @@

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

"homepage": "http://hapijs.com",
"version": "17.0.0",
"version": "17.0.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -0,0 +0,0 @@ <img src="https://raw.github.com/hapijs/hapi/master/images/17.png" align="right"/>

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