Socket
Socket
Sign inDemoInstall

i18next

Package Overview
Dependencies
Maintainers
1
Versions
501
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next - npm Package Compare versions

Comparing version 1.5.11 to 1.5.12

8

lib/i18next.js

@@ -29,2 +29,3 @@ (function() {

options.forceDetectLngFromPath = options.forceDetectLngFromPath !== true ? false : options.forceDetectLngFromPath;
options.ignoreRoutes = options.ignoreRoutes || [];
resStore = options.resStore ? options.resStore : {};

@@ -64,2 +65,9 @@

i18n.handle = function(req, res, next) {
var ignore = i18n.options.ignoreRoutes;
for (var i = 0, len = ignore.length; i < len; i++) {
if (req.path.indexOf(ignore[i]) > -1) {
return next();
}
}
var locale = i18n.detectLanguage(req, res);

@@ -66,0 +74,0 @@

2

package.json

@@ -5,3 +5,3 @@ {

"description": "i18n made easy - full featured: middleware, template support plus clientside use",
"version": "1.5.11",
"version": "1.5.12",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -0,1 +1,4 @@

### v1.5.12
- ignore routes inside handler
### v1.5.11

@@ -2,0 +5,0 @@ - fixed bug for returning objTree in combination with namespace

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