Comparing version 1.5.12 to 1.5.13
@@ -105,3 +105,3 @@ (function() { | ||
i18n.setLng(locale, function() { | ||
i18n.persistCookie(req, res, i18n.lng()); | ||
if (i18n.useCookie) i18n.persistCookie(req, res, i18n.lng()); | ||
next(); | ||
@@ -108,0 +108,0 @@ }); |
(function() { | ||
// when updating i18next dep update version here | ||
var i18nVersion = '1.5.8pre'; | ||
var i18nVersion = '1.5.8'; | ||
@@ -43,3 +43,3 @@ var i18n = require('./dep/i18next-' + i18nVersion) | ||
if (!locale) { | ||
if (!locale && opts.useCookie) { | ||
cookies = new Cookies(req, res); | ||
@@ -46,0 +46,0 @@ locale = cookies.get('i18next'); |
@@ -5,3 +5,3 @@ { | ||
"description": "i18n made easy - full featured: middleware, template support plus clientside use", | ||
"version": "1.5.12", | ||
"version": "1.5.13", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -0,1 +1,6 @@ | ||
### v1.5.13 | ||
disable cookie usage by setting init option useCookie to false | ||
updated client | ||
updated webtranslate | ||
### v1.5.12 | ||
@@ -2,0 +7,0 @@ - ignore routes inside handler |
Sorry, the diff of this file is too big to display
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
875488
4739
0