resolve-accept-language
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "resolve-accept-language", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.", | ||
@@ -42,6 +42,6 @@ "keywords": [ | ||
"@types/jest": "29.5.1", | ||
"@typescript-eslint/eslint-plugin": "5.59.5", | ||
"@typescript-eslint/parser": "5.59.5", | ||
"@typescript-eslint/eslint-plugin": "5.59.6", | ||
"@typescript-eslint/parser": "5.59.6", | ||
"dotenv-cli": "7.2.1", | ||
"eslint": "8.40.0", | ||
"eslint": "8.41.0", | ||
"eslint-config-prettier": "8.8.0", | ||
@@ -48,0 +48,0 @@ "eslint-import-resolver-node": "0.3.7", |
# resolve-accept-language | ||
[![License](https://img.shields.io/npm/l/make-coverage-badge.svg)](https://opensource.org/licenses/MIT) | ||
[![npm download](https://img.shields.io/npm/dw/resolve-accept-language.svg)](https://www.npmjs.com/package/resolve-accept-language) | ||
[![License](https://img.shields.io/npm/l/make-coverage-badge.svg?color=brightgreen)](https://opensource.org/licenses/MIT) | ||
[![npm download](https://img.shields.io/npm/dw/resolve-accept-language.svg?color=brightgreen)](https://www.npmjs.com/package/resolve-accept-language) | ||
![Coverage](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg) | ||
![Dependencies](https://img.shields.io/badge/dependencies-0-green) | ||
![Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/Avansai/resolve-accept-language/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Avansai/resolve-accept-language?targetFile=package.json) | ||
@@ -62,9 +62,9 @@ | ||
if (resolveAcceptLanguage.getMatchType() !== MATCH_TYPES.localeBased) { | ||
if (resolveAcceptLanguage.getMatchType() === MATCH_TYPES.localeBased) { | ||
console.log('The match is locale-based') | ||
} else if (resolveAcceptLanguage.getMatchType() !== MATCH_TYPES.languageBased) { | ||
} else if (resolveAcceptLanguage.getMatchType() === MATCH_TYPES.languageBased) { | ||
console.log('The match is language-based') | ||
} else if (resolveAcceptLanguage.getMatchType() !== MATCH_TYPES.relatedLocaleBased) { | ||
} else if (resolveAcceptLanguage.getMatchType() === MATCH_TYPES.relatedLocaleBased) { | ||
console.log('The match is related-locale-based') | ||
} else if (resolveAcceptLanguage.getMatchType() !== MATCH_TYPES.defaultLocale) { | ||
} else if (resolveAcceptLanguage.getMatchType() === MATCH_TYPES.defaultLocale) { | ||
console.log('The match is the default locale') | ||
@@ -71,0 +71,0 @@ } |
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
35795