@ladjs/i18n
Advanced tools
Comparing version 3.0.10 to 3.0.11
@@ -51,2 +51,7 @@ "use strict"; | ||
cookie: 'locale', | ||
cookieOptions: { | ||
// Disable signed cookies in NODE_ENV=test | ||
signed: process.env.NODE_ENV !== 'test', | ||
expires: moment().add(1, 'year').toDate() | ||
}, | ||
indent: ' ', | ||
@@ -242,7 +247,3 @@ defaultLocale: 'en', | ||
ctx.cookies.set(_this.config.cookie, locale, { | ||
// Disable signed cookies in NODE_ENV=test | ||
signed: process.env.NODE_ENV !== 'test', | ||
expires: moment().add(1, 'year').toDate() | ||
}); | ||
ctx.cookies.set(_this.config.cookie, locale, _this.config.cookieOptions); | ||
debug('set cookies for locale "%s"', locale); // if the user is logged in and ctx.isAuthenticated() exists, | ||
@@ -249,0 +250,0 @@ // then save it as `last_locale` (variable based off lastLocaleField) |
{ | ||
"name": "@ladjs/i18n", | ||
"description": "i18n wrapper and Koa middleware for Lad", | ||
"version": "3.0.10", | ||
"version": "3.0.11", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "ava": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21750
213
0