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

i18next-express-middleware

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-express-middleware - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

10

lib/LanguageDetector.js

@@ -100,4 +100,8 @@ 'use strict';

var lng = _this.detectors[detectorName].lookup(req, res, _this.options);
if (lng && typeof lng === 'string') {
var detections = _this.detectors[detectorName].lookup(req, res, _this.options);
if (typeof detection === 'string') detections = [detections];
detections.forEach(function (lng) {
if (found) return;
var cleanedLng = _this.services.languageUtils.formatLanguageCode(lng);

@@ -109,3 +113,3 @@

};
}
});
});

@@ -112,0 +116,0 @@

{
"name": "i18next-express-middleware",
"version": "0.1.0",
"version": "0.1.1",
"description": "express middleware for i18next",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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