accept-language
Advanced tools
Comparing version 3.0.18 to 3.0.19
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var bcp47 = require("bcp47"); | ||
var stable = require("stable"); | ||
var AcceptLanguage = /** @class */ (function () { | ||
@@ -154,3 +153,3 @@ function AcceptLanguage() { | ||
} | ||
return result.length > 0 ? stable(result, function (a, b) { | ||
return result.length > 0 ? result.sort(function (a, b) { | ||
var quality = b.quality - a.quality; | ||
@@ -170,2 +169,3 @@ if (quality != 0) { | ||
}) | ||
// Filter non-defined language tags | ||
.filter(function (languageTag) { | ||
@@ -172,0 +172,0 @@ if (!languageTag) { |
@@ -0,0 +0,0 @@ |
{ | ||
"name": "accept-language", | ||
"version": "3.0.18", | ||
"version": "3.0.19", | ||
"description": "Accept-Language parser for nodejs", | ||
@@ -30,9 +30,8 @@ "main": "Build/Source/AcceptLanguage.js", | ||
"chai": "~1.9.1", | ||
"mocha": "^2.2.5", | ||
"mocha": "^10.7.3", | ||
"source-map-support": "^0.4.18" | ||
}, | ||
"dependencies": { | ||
"bcp47": "^1.1.2", | ||
"stable": "^0.1.6" | ||
"bcp47": "^1.1.2" | ||
} | ||
} |
@@ -0,0 +0,0 @@ accept-language [![Build Status](https://travis-ci.org/tinganho/node-accept-language.png)](https://travis-ci.org/tinganho/node-accept-language) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1
20467
6
211
- Removedstable@^0.1.6
- Removedstable@0.1.8(transitive)