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

@ladjs/i18n

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/i18n - npm Package Compare versions

Comparing version 3.0.10 to 3.0.11

11

lib/index.js

@@ -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": {

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