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

i18next-http-middleware

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-http-middleware - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

cjs/index.js

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

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