New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

resolve-accept-language

Package Overview
Dependencies
Maintainers
1
Versions
174
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 1.1.29 to 1.1.30

10

lib/resolve-accept-language.js

@@ -29,3 +29,6 @@ "use strict";

var topLocaleOrLanguage = lookupList.getTopLocaleOrLanguage();
if (topLocaleOrLanguage !== undefined) {
if (topLocaleOrLanguage === undefined) {
this.relatedLocaleBasedMatch = lookupList.getTopRelatedLocale();
}
else {
if (locale_1.default.isLocale(topLocaleOrLanguage)) {

@@ -38,5 +41,2 @@ this.localeBasedMatch = topLocaleOrLanguage;

}
else {
this.relatedLocaleBasedMatch = lookupList.getTopRelatedLocale();
}
}

@@ -82,3 +82,3 @@ /**

ResolveAcceptLanguage.prototype.hasMatch = function () {
return this.getBestMatch() !== undefined ? true : false;
return this.getBestMatch() === undefined ? false : true;
};

@@ -85,0 +85,0 @@ /**

{
"name": "resolve-accept-language",
"version": "1.1.29",
"version": "1.1.30",
"description": "Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.",

@@ -42,6 +42,6 @@ "author": "Avansai (https://avansai.com)",

"@types/jest": "^29.2.3",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"dotenv-cli": "^6.0.0",
"eslint": "^8.27.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",

@@ -51,9 +51,9 @@ "eslint-import-resolver-node": "^0.3.6",

"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-prefer-arrow-functions": "^3.1.4",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unicorn": "^44.0.2",
"eslint-plugin-unicorn": "^45.0.1",
"jest": "^29.3.1",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.2.0",
"prettier": "^2.8.0",
"prettier-plugin-organize-imports": "^3.2.1",
"prettier-plugin-sh": "^0.12.8",

@@ -60,0 +60,0 @@ "release-it": "^15.5.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