Socket
Socket
Sign inDemoInstall

@ladjs/i18n

Package Overview
Dependencies
46
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.2.3 to 7.2.4

9

index.js

@@ -288,3 +288,10 @@ const { basename, extname, resolve } = require('path');

const asciiFile = toASCII(basename(ctx.path));
if (!punycodedTlds.some((tld) => asciiFile.endsWith(`.${tld}`)))
// do a speciality check for .js.map and .css.map
// since .map is in tlds
if (
!punycodedTlds.some((tld) => asciiFile.endsWith(`.${tld}`)) ||
asciiFile.endsWith('.js.map') ||
asciiFile.endsWith('.css.map')
)
return next();

@@ -291,0 +298,0 @@ }

2

package.json
{
"name": "@ladjs/i18n",
"description": "i18n wrapper and Koa middleware for Lad",
"version": "7.2.3",
"version": "7.2.4",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc