resolve-accept-language
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -24,6 +24,8 @@ "use strict"; | ||
var localeObject = new locale_1.default(locale); | ||
_this.objects.push(localeObject); | ||
_this.locales.add(localeObject.identifier); | ||
_this.languages.add(localeObject.languageCode); | ||
_this.countries.add(localeObject.countryCode); | ||
if (!_this.locales.has(localeObject.identifier)) { | ||
_this.objects.push(localeObject); | ||
_this.locales.add(localeObject.identifier); | ||
_this.languages.add(localeObject.languageCode); | ||
_this.countries.add(localeObject.countryCode); | ||
} | ||
}); | ||
@@ -30,0 +32,0 @@ } |
{ | ||
"name": "resolve-accept-language", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.", | ||
@@ -5,0 +5,0 @@ "main": "lib/resolve-accept-language.js", |
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
25090
401