Socket
Socket
Sign inDemoInstall

@ladjs/i18n

Package Overview
Dependencies
49
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.2 to 8.0.3

3

index.js

@@ -199,2 +199,3 @@ const process = require('process');

debug('locale was not available redirecting user');
ctx.status = 301;
return ctx.redirect(

@@ -326,3 +327,3 @@ `/${ctx.state.locale}${

if (!hasLang) {
ctx.status = 302;
ctx.status = 301;
let redirect = `/${ctx.request.locale}${ctx.path}`;

@@ -329,0 +330,0 @@ if (redirect === `/${ctx.request.locale}/`)

{
"name": "@ladjs/i18n",
"description": "i18n wrapper and Koa middleware for Lad",
"version": "8.0.2",
"version": "8.0.3",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -6,0 +6,0 @@ "bugs": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc