resolve-accept-language 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lookup-list.js +9 -9
- package/package.json +5 -5
package/lib/lookup-list.js
CHANGED
|
@@ -48,15 +48,15 @@ var LookupList = /** @class */ (function () {
|
|
|
48
48
|
directives.splice(es419DirectiveIndex, 1);
|
|
49
49
|
// Replace `es-419` by the common Latin American spanish variants supported by browsers.
|
|
50
50
|
var latinAmericanLocales = [
|
|
51
|
-
'es-AR',
|
|
52
|
-
'es-CL',
|
|
53
|
-
'es-CO',
|
|
54
|
-
'es-CR',
|
|
55
|
-
'es-HN',
|
|
56
|
-
'es-MX',
|
|
57
|
-
'es-PE',
|
|
58
|
-
'es-US',
|
|
59
|
-
'es-UY',
|
|
51
|
+
'es-AR', // Spanish Argentina
|
|
52
|
+
'es-CL', // Spanish Chile
|
|
53
|
+
'es-CO', // Spanish Colombia
|
|
54
|
+
'es-CR', // Spanish Costa Rica
|
|
55
|
+
'es-HN', // Spanish Honduras
|
|
56
|
+
'es-MX', // Spanish Mexico
|
|
57
|
+
'es-PE', // Spanish Peru
|
|
58
|
+
'es-US', // Spanish United States
|
|
59
|
+
'es-UY', // Spanish Uruguay
|
|
60
60
|
'es-VE', // Spanish Venezuela
|
|
61
61
|
];
|
|
62
62
|
latinAmericanLocales.forEach(function (locale) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resolve-accept-language",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accept-language",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@release-it/conventional-changelog": "8.0.1",
|
|
41
|
-
"@types/jest": "29.5.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
43
|
-
"@typescript-eslint/parser": "6.
|
|
41
|
+
"@types/jest": "29.5.10",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "6.12.0",
|
|
43
|
+
"@typescript-eslint/parser": "6.12.0",
|
|
44
44
|
"dotenv-cli": "7.3.0",
|
|
45
45
|
"eslint": "8.54.0",
|
|
46
46
|
"eslint-config-prettier": "9.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"release-it": "17.0.0",
|
|
61
61
|
"ts-jest": "29.1.1",
|
|
62
62
|
"ts-node": "10.9.1",
|
|
63
|
-
"typescript": "5.
|
|
63
|
+
"typescript": "5.3.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": "^14.18.1 || >=16.0.0"
|