@formatjs/intl-datetimeformat 6.12.1 → 6.12.3
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/add-all-tz.js +135 -135
- package/add-golden-tz.js +7 -7
- package/lib/src/core.js +2 -2
- package/lib/src/data/all-tz.js +135 -135
- package/lib/src/data/links.d.ts +0 -1
- package/lib/src/data/links.js +0 -1
- package/package.json +5 -5
- package/polyfill.iife.js +2 -3
- package/src/core.js +2 -2
- package/src/data/all-tz.js +135 -135
- package/src/data/links.d.ts +0 -1
- package/src/data/links.js +0 -1
package/lib/src/data/links.d.ts
CHANGED
package/lib/src/data/links.js
CHANGED
|
@@ -88,7 +88,6 @@ export default {
|
|
|
88
88
|
"Antarctica/McMurdo": "Pacific/Auckland",
|
|
89
89
|
"Antarctica/South_Pole": "Pacific/Auckland",
|
|
90
90
|
"Antarctica/Syowa": "Asia/Riyadh",
|
|
91
|
-
"Antarctica/Vostok": "Asia/Urumqi",
|
|
92
91
|
"Arctic/Longyearbyen": "Europe/Berlin",
|
|
93
92
|
"Asia/Aden": "Asia/Riyadh",
|
|
94
93
|
"Asia/Ashkhabad": "Asia/Ashgabat",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-datetimeformat",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.3",
|
|
4
4
|
"description": "Intl.DateTimeFormat polyfill",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"homepage": "https://github.com/formatjs/formatjs#readme",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.4.0",
|
|
26
|
-
"@formatjs/ecma402-abstract": "1.18.
|
|
27
|
-
"@formatjs/intl-localematcher": "0.5.
|
|
26
|
+
"@formatjs/ecma402-abstract": "1.18.2",
|
|
27
|
+
"@formatjs/intl-localematcher": "0.5.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@formatjs/intl-
|
|
31
|
-
"@formatjs/intl-
|
|
30
|
+
"@formatjs/intl-locale": "3.4.5",
|
|
31
|
+
"@formatjs/intl-getcanonicallocales": "2.3.0"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/polyfill.iife.js
CHANGED
|
@@ -4564,8 +4564,8 @@
|
|
|
4564
4564
|
if (!result.distances[desired]) {
|
|
4565
4565
|
result.distances[desired] = {};
|
|
4566
4566
|
}
|
|
4567
|
-
supportedLocales2.forEach(function(supported
|
|
4568
|
-
var distance = findMatchingDistance(desired, supported) +
|
|
4567
|
+
supportedLocales2.forEach(function(supported) {
|
|
4568
|
+
var distance = findMatchingDistance(desired, supported) + 0 + i * 40;
|
|
4569
4569
|
result.distances[desired][supported] = distance;
|
|
4570
4570
|
if (distance < lowestDistance) {
|
|
4571
4571
|
lowestDistance = distance;
|
|
@@ -5999,7 +5999,6 @@
|
|
|
5999
5999
|
"Antarctica/McMurdo": "Pacific/Auckland",
|
|
6000
6000
|
"Antarctica/South_Pole": "Pacific/Auckland",
|
|
6001
6001
|
"Antarctica/Syowa": "Asia/Riyadh",
|
|
6002
|
-
"Antarctica/Vostok": "Asia/Urumqi",
|
|
6003
6002
|
"Arctic/Longyearbyen": "Europe/Berlin",
|
|
6004
6003
|
"Asia/Aden": "Asia/Riyadh",
|
|
6005
6004
|
"Asia/Ashkhabad": "Asia/Ashgabat",
|
package/src/core.js
CHANGED
|
@@ -74,7 +74,7 @@ var formatDescriptor = {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
catch (e) {
|
|
77
|
-
// In older browser (e.g Chrome 36 like polyfill.io)
|
|
77
|
+
// In older browser (e.g Chrome 36 like polyfill-fastly.io)
|
|
78
78
|
// TypeError: Cannot redefine property: name
|
|
79
79
|
}
|
|
80
80
|
internalSlots.boundFormat = boundFormat;
|
|
@@ -92,7 +92,7 @@ try {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
catch (e) {
|
|
95
|
-
// In older browser (e.g Chrome 36 like polyfill.io)
|
|
95
|
+
// In older browser (e.g Chrome 36 like polyfill-fastly.io)
|
|
96
96
|
// TypeError: Cannot redefine property: name
|
|
97
97
|
}
|
|
98
98
|
exports.DateTimeFormat = function (locales, options) {
|