i18next-http-middleware
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -160,3 +160,3 @@ "use strict"; | ||
var middleware = handle(options.i18next, _objectSpread({}, options)); | ||
server.ext('onPreHandler', function (request, h) { | ||
server.ext('onPreAuth', function (request, h) { | ||
middleware(request, request.raw.res || h.response() || request.Response, function () { | ||
@@ -163,0 +163,0 @@ return h.continue; |
@@ -132,3 +132,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
var middleware = handle(options.i18next, _objectSpread({}, options)); | ||
server.ext('onPreHandler', function (request, h) { | ||
server.ext('onPreAuth', function (request, h) { | ||
middleware(request, request.raw.res || h.response() || request.Response, function () { | ||
@@ -135,0 +135,0 @@ return h.continue; |
@@ -130,3 +130,3 @@ import * as utils from './utils.js' | ||
}) | ||
server.ext('onPreHandler', (request, h) => { | ||
server.ext('onPreAuth', (request, h) => { | ||
middleware( | ||
@@ -133,0 +133,0 @@ request, |
{ | ||
"name": "i18next-http-middleware", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
107001