Socket
Socket
Sign inDemoInstall

i18next-http-middleware

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-http-middleware - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

3

CHANGELOG.md

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

## [v3.1.1](https://github.com/i18next/i18next-http-middleware/compare/v3.1.0...v3.1.1)
- make sure no undefined language is detected
## [v3.1.0](https://github.com/i18next/i18next-http-middleware/compare/v3.0.6...v3.1.0)

@@ -2,0 +5,0 @@ - added types

@@ -95,2 +95,5 @@ "use strict";

if (!Array.isArray(detections)) detections = [detections];
detections = detections.filter(function (d) {
return d !== undefined && d !== null;
});

@@ -97,0 +100,0 @@ if (_this.services.languageUtils.getBestMatchFromCodes) {

@@ -74,2 +74,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

if (!Array.isArray(detections)) detections = [detections];
detections = detections.filter(function (d) {
return d !== undefined && d !== null;
});

@@ -76,0 +79,0 @@ if (_this.services.languageUtils.getBestMatchFromCodes) {

@@ -63,2 +63,4 @@ import * as utils from './utils.js'

detections = detections.filter((d) => d !== undefined && d !== null)
if (this.services.languageUtils.getBestMatchFromCodes) { // new i18next v19.5.0

@@ -65,0 +67,0 @@ found = this.services.languageUtils.getBestMatchFromCodes(detections)

2

package.json
{
"name": "i18next-http-middleware",
"version": "3.1.0",
"version": "3.1.1",
"private": false,

@@ -5,0 +5,0 @@ "type": "module",

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