i18next-express-middleware
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -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) |
@@ -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", |
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
30554