Comparing version 0.8.4 to 0.8.5
@@ -641,2 +641,3 @@ /** | ||
if (!filename) return false; | ||
if (prefix && !filename.match(prefixRegex)) return false; | ||
@@ -664,3 +665,4 @@ if (extension && !filename.match(extensionRegex)) return false; | ||
if (queryParameter && request.url) { | ||
var urlObj = url.parse(request.url, true); | ||
var urlAsString = typeof request.url === 'string' ? request.url : request.url.toString(); | ||
var urlObj = url.parse(urlAsString, true); | ||
if (urlObj.query[queryParameter]) { | ||
@@ -667,0 +669,0 @@ logDebug('Overriding locale from query: ' + urlObj.query[queryParameter]); |
{ | ||
"name": "i18n", | ||
"description": "lightweight translation module with dynamic json storage", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"homepage": "http://github.com/mashpie/i18n-node", | ||
@@ -33,3 +33,3 @@ "repository": { | ||
"jshint": "*", | ||
"mocha": "^6.2.2", | ||
"mocha": "^7.0.1", | ||
"should": "*", | ||
@@ -36,0 +36,0 @@ "sinon": "*", |
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
421866
27
4097