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

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.0.10 to 1.0.11

3

CHANGELOG.md

@@ -0,1 +1,4 @@

### 1.0.11
- check if the headers are sent before cookies set [PR145](https://github.com/i18next/i18next-express-middleware/pull/145)
### 1.0.10

@@ -2,0 +5,0 @@ - Use a named function for the middleware over an anonymous [PR144](https://github.com/i18next/i18next-express-middleware/pull/144)

2

lib/languageLookups/cookie.js

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

if (options.lookupCookie && req !== 'undefined') {
if (options.lookupCookie && req !== 'undefined' && !res._headerSent) {
var cookies = new _cookies2.default(req, res);

@@ -36,0 +36,0 @@

{
"name": "i18next-express-middleware",
"version": "1.0.10",
"version": "1.0.11",
"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