resolve-accept-language
Advanced tools
Comparing version 1.1.24 to 1.1.25
@@ -76,2 +76,3 @@ /** Resolve the preferred locale from an HTTP `Accept-Language` header. */ | ||
*/ | ||
export default function resolveAcceptLanguage(acceptLanguageHeader: string, locales: string[], defaultLocale: string): string; | ||
declare const resolveAcceptLanguage: (acceptLanguageHeader: string, locales: string[], defaultLocale: string) => string; | ||
export default resolveAcceptLanguage; |
@@ -113,3 +113,3 @@ "use strict"; | ||
*/ | ||
function resolveAcceptLanguage(acceptLanguageHeader, locales, defaultLocale) { | ||
var resolveAcceptLanguage = function (acceptLanguageHeader, locales, defaultLocale) { | ||
var localesIncludeDefault = false; | ||
@@ -136,3 +136,3 @@ locales.forEach(function (locale) { | ||
return new locale_1.default(defaultLocale).identifier; | ||
} | ||
}; | ||
exports.default = resolveAcceptLanguage; |
{ | ||
"name": "resolve-accept-language", | ||
"version": "1.1.24", | ||
"version": "1.1.25", | ||
"description": "Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.", | ||
@@ -41,5 +41,5 @@ "author": "Avansai (https://avansai.com)", | ||
"@release-it/conventional-changelog": "^5.1.1", | ||
"@types/jest": "^29.1.2", | ||
"@typescript-eslint/eslint-plugin": "^5.40.0", | ||
"@typescript-eslint/parser": "^5.40.0", | ||
"@types/jest": "^29.2.0", | ||
"@typescript-eslint/eslint-plugin": "^5.40.1", | ||
"@typescript-eslint/parser": "^5.40.1", | ||
"dotenv-cli": "^6.0.0", | ||
@@ -49,8 +49,9 @@ "eslint": "^8.25.0", | ||
"eslint-import-resolver-node": "^0.3.6", | ||
"eslint-import-resolver-typescript": "^3.5.1", | ||
"eslint-import-resolver-typescript": "^3.5.2", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^27.1.2", | ||
"eslint-plugin-jest": "^27.1.3", | ||
"eslint-plugin-prefer-arrow-functions": "^3.1.4", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-unicorn": "^44.0.2", | ||
"jest": "^29.2.0", | ||
"jest": "^29.2.1", | ||
"prettier": "^2.7.1", | ||
@@ -57,0 +58,0 @@ "prettier-plugin-organize-imports": "^3.1.1", |
35569
594
22