i18next-http-middleware
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -43,2 +43,3 @@ "use strict"; | ||
if (req.ctx && req.ctx.queryParams) return req.ctx.queryParams; | ||
if (req.url && req.url.searchParams) return req.url.searchParams; | ||
var url = req.url || req.raw && req.raw.url; | ||
@@ -45,0 +46,0 @@ if (url && url.indexOf('?') < 0) return {}; |
@@ -33,2 +33,3 @@ export var getPath = function getPath(req) { | ||
if (req.ctx && req.ctx.queryParams) return req.ctx.queryParams; | ||
if (req.url && req.url.searchParams) return req.url.searchParams; | ||
var url = req.url || req.raw && req.raw.url; | ||
@@ -35,0 +36,0 @@ if (url && url.indexOf('?') < 0) return {}; |
@@ -38,2 +38,3 @@ export const getPath = (req) => { | ||
if (req.ctx && req.ctx.queryParams) return req.ctx.queryParams | ||
if (req.url && req.url.searchParams) return req.url.searchParams | ||
const url = req.url || (req.raw && req.raw.url) | ||
@@ -40,0 +41,0 @@ if (url && url.indexOf('?') < 0) return {} |
{ | ||
"name": "i18next-http-middleware", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
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
120360
2758