Socket
Socket
Sign inDemoInstall

i18next-express-middleware

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-express-middleware - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 1.9.1
- only setHeader if lng has value
### 1.9.0

@@ -2,0 +6,0 @@

4

lib/index.js

@@ -51,3 +51,3 @@ 'use strict';

if (!res.headersSent) {
if (!res.headersSent && lng) {
res.setHeader('Content-Language', lng);

@@ -68,3 +68,3 @@ }

req.language = req.locale = req.lng = lng;
if (!res.headersSent) {
if (!res.headersSent && lng) {
res.setHeader('Content-Language', lng);

@@ -71,0 +71,0 @@ }

{
"name": "i18next-express-middleware",
"version": "1.9.0",
"version": "1.9.1",
"description": "express middleware for i18next",

@@ -5,0 +5,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