Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resolve-accept-language

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-accept-language - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

8

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc