From 8c4b863905df5c836c4d9ffaaa20dfbc771fa8c5 Mon Sep 17 00:00:00 2001 From: Yulia Tenincheva Date: Mon, 27 Nov 2017 14:46:20 +0200 Subject: [PATCH] Updated dev dependencies for Hapi v17 --- lib/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 9661bf8..e51bccb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -110,7 +110,7 @@ internals.connectionInfo = function (server, routes, options, connectionInfo) { const route = routes[i]; const defaultStrategy = Hoek.reach(server, 'auth.settings.default.strategies'); - let authStrategy = typeof route.settings.auth === 'object' ? route.settings.auth.strategies.toString() : false; + let authStrategy = route.settings.auth ? route.settings.auth.strategies.toString() : false; if (route.settings.auth === undefined) { authStrategy = defaultStrategy ? String(defaultStrategy) : false; diff --git a/package.json b/package.json index 7a9a8fc..66cf4ac 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "devDependencies": { "code": "^5.1.2", "hapi": "^17.0.1", - "hapi-auth-basic": "4.2.x", + "hapi-auth-basic": "^5.0.0", "lab": "^15.1.2" } }