i18next-http-middleware
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -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) |
{ | ||
"name": "i18next-http-middleware", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101449
2243