@ladjs/i18n
Advanced tools
Comparing version 7.2.3 to 7.2.4
@@ -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 @@ } |
{ | ||
"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": { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
24308
319
4
1